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/entry";
26
image: "widget/entry/img_normal.png" COMP;
27
image: "widget/entry/img_focused.png" COMP;
28
image: "widget/entry/img_hovered.png" COMP;
39
if (get_int(isEnabled) == 1) {
40
set_state(PART:"entry", "default", 0.0);
41
if (get_int(isPressed) == 1)
42
set_state(PART:"entry", "pressed", 0.0);
43
if (get_int(isFocused) == 1)
44
set_state(PART:"entry", "focused", 0.0);
45
if (get_int(isHovered) == 1 && get_int(isFocused) == 0)
46
set_state(PART:"entry", "hovered", 0.0);
49
set_state(PART:"entry", "disabled", 0.0);
70
normal: "widget/entry/img_normal.png";
75
state: "disabled" 0.0;
76
inherit: "default" 0.0;
77
color: 255 255 255 150;
81
inherit: "default" 0.0;
83
normal: "widget/entry/img_focused.png";
89
inherit: "focused" 0.0;
93
inherit: "focused" 0.0;
95
normal: "widget/entry/img_hovered.png";
102
name: "text_confinement";
105
state: "default" 0.0;
107
rel1.offset: 4 6; // <- 6 because of the blink cursor
108
rel2.offset: -4 -5; // <- due to the image
118
set_int(isEnabled, 1);
126
set_int(isPressed, 1);
134
set_int(isChecked, 1);
142
set_int(isFocused, 1);
150
set_int(isHovered, 1);
158
set_int(isEnabled, 0);
159
set_int(isPressed, 0);
160
set_int(isChecked, 0);
161
set_int(isFocused, 0);
162
set_int(isHovered, 0);