3 * Copyright 2012 Samsung Electronics Co., Ltd
5 * Licensed under the Flora License, Version 1.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.tizenopensource.org/license
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 #define ICON_BUTTON(iName, img_default, img_focus)\
23 image: img_default COMP;\
24 image: img_focus COMP;\
25 image: "00_picker_btn_press.png" COMP;\
26 image: "00_picker_btn_normal.png" COMP;\
30 PART_BORDER_IMAGE("image_bg", "bg", "00_picker_btn_normal.png", 4, 4, 0, 0)\
31 PART_IMAGE("image_icon", "bg", img_default)\
32 PART_EVENT_RECT("event", "bg")\
41 SCRIPT_CUSTOM_PART("image_bg");\
42 SCRIPT_CUSTOM_PART("image_icon");\
50 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_press.png");\
51 SCRIPT_SET_IMAGE("image_icon", img_focus);\
59 SCRIPT_SET_IMAGE("image_bg", "00_picker_btn_normal.png");\
60 SCRIPT_SET_IMAGE("image_icon", img_default);\
66 ICON_BUTTON("tl_font_size", "P02_icon_font_size.png", "P02_icon_font_size_press.png")
67 ICON_BUTTON("tl_font_color", "P02_icon_font_color.png", "P02_icon_font_color_press.png")
68 ICON_BUTTON("tl_stroke_size", "P02_icon_stroke.png", "P02_icon_stroke_press.png")
69 ICON_BUTTON("tl_stroke_color", "P02_icon_color.png", "P02_icon_color_focus.png")
70 ICON_BUTTON("tl_stroke_eraser", "P02_icon_eraser.png", "P02_icon_eraser_press.png")