2 Copyright (C) 2008,2009 INdT - Instituto Nokia de Tecnologia
3 Copyright (C) 2009,2010 ProFUSION embedded systems
4 Copyright (C) 2009,2010 Samsung Electronics
6 This file is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
11 This file is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
23 name: "webkit/widget/button";
26 image: "widget/button/img_button_normal.png" COMP;
27 image: "widget/button/img_button_press.png" COMP;
28 image: "widget/button/img_button_hover.png" COMP;
29 image: "widget/button/img_button_focus.png" COMP;
41 if (get_int(isEnabled) == 1) {
42 set_state(PART:"button", "default", 0.0);
43 if (get_int(isFocused) == 1) {
44 set_state(PART:"button", "focused", 0.0);
45 if (get_int(isPressed) == 1)
46 set_state(PART:"button", "pressed", 0.0);
48 else if (get_int(isHovered) == 1) {
49 set_state(PART:"button", "hovered", 0.0);
50 if (get_int(isPressed) == 1)
51 set_state(PART:"button", "pressed", 0.0);
56 set_state(PART:"button", "disabled", 0.0);
69 normal: "widget/button/img_button_normal.png";
75 inherit: "default" 0.0;
77 normal: "widget/button/img_button_press.png";
82 state: "disabled" 0.0;
83 inherit: "default" 0.0;
84 color: 255 255 255 150;
88 inherit: "default" 0.0;
90 normal: "widget/button/img_button_hover.png";
96 inherit: "default" 0.0;
98 normal: "widget/button/img_button_focus.png";
105 name: "text_confinement";
108 state: "default" 0.0;
127 set_int(isEnabled, 1);
135 set_int(isPressed, 1);
143 set_int(isChecked, 1);
151 set_int(isFocused, 1);
159 set_int(isHovered, 1);
167 set_int(isEnabled, 0);
168 set_int(isPressed, 0);
169 set_int(isChecked, 0);
170 set_int(isFocused, 0);
171 set_int(isHovered, 0);