3 * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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.
23 group { name: "elm/scroller/base/default";
24 alias: "elm/carousel/base/default";
25 alias: "elm/scroller/base/map_bubble";
26 alias: "elm/gengrid/base/no_effect";
27 alias: "elm/genlist/base/no_effect";
30 item: "focus_highlight" "on";
34 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
35 public sh_v, sh_h, sh_timer, edge_timer;
40 v = get_int(sbalways_v);
42 emit("do-hide-vbar", "");
48 v = get_int(sbalways_h);
50 emit("do-hide-hbar", "");
54 set_int(sbvis_timer, 0);
58 emit("do-hide-vshadow", "");
59 emit("do-hide-hshadow", "");
64 emit("do-hide-vshadow", "");
65 emit("do-hide-hshadow", "");
66 set_int(edge_timer, 0);
71 image: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE COMP;
72 image: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE COMP;
78 description { state: "default" 0.0;
84 part { name: "clipper";
88 description { state: "default" 0.0;
95 part { name: "elm.swallow.content";
99 description { state: "default" 0.0;
106 part { name: "sb_vbar_clip_master";
110 description { state: "default" 0.0;
112 description { state: "hidden" 0.0;
114 color: 255 255 255 0;
117 part { name: "sb_vbar_clip";
118 clip_to: "sb_vbar_clip_master";
122 description { state: "default" 0.0;
124 description { state: "hidden" 0.0;
126 color: 255 255 255 0;
129 part { name: "sb_vbar";
133 description { state: "default" 0.0;
136 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
141 to_y: "elm.swallow.content";
142 to_x: "elm.swallow.content";
147 to_y: "elm.swallow.content";
148 to_x: "elm.swallow.content";
152 part { name: "elm.dragable.vbar";
153 clip_to: "sb_vbar_clip";
161 description { state: "default" 0.0;
163 min: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MIN_SIZE_INC;
164 max: SCROLLER_DEFAULT_SCROLLBAR_VBAR_MAX_SIZE_INC;
176 normal: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE;
177 border: SCROLLER_DEFAULT_SCROLLBAR_VBAR_IMAGE_BORDER;
183 part { name: "sb_hbar_clip_master";
187 description { state: "default" 0.0;
189 description { state: "hidden" 0.0;
191 color: 255 255 255 0;
194 part { name: "sb_hbar_clip";
195 clip_to: "sb_hbar_clip_master";
199 description { state: "default" 0.0;
201 description { state: "hidden" 0.0;
203 color: 255 255 255 0;
206 part { name: "sb_hbar";
210 description { state: "default" 0.0;
213 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
218 to_x: "elm.swallow.content";
219 to_y: "elm.swallow.content";
224 to_x: "elm.swallow.content";
225 to_y: "elm.swallow.content";
229 part { name: "elm.dragable.hbar";
230 clip_to: "sb_hbar_clip";
238 description { state: "default" 0.0;
240 min: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MIN_SIZE_INC;
241 max: SCROLLER_DEFAULT_SCROLLBAR_HBAR_MAX_SIZE_INC;
253 normal: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE;
254 border: SCROLLER_DEFAULT_SCROLLBAR_HBAR_IMAGE_BORDER;
260 part { name: "disabler";
263 description { state: "default" 0.0;
269 description { state: "disabled" 0.0;
270 inherit: "default" 0.0;
272 color: 128 128 128 128;
277 program { name: "load";
281 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
282 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
285 set_int(sbalways_v, 0);
286 set_int(sbalways_h, 0);
287 set_int(sbvis_timer, 0);
288 emit("reload", "elm");
292 program { name: "vbar_show";
293 signal: "elm,action,show,vbar";
295 action: STATE_SET "default" 0.0;
296 target: "sb_vbar_clip_master";
298 program { name: "vbar_hide";
299 signal: "elm,action,hide,vbar";
301 action: STATE_SET "hidden" 0.0;
302 target: "sb_vbar_clip_master";
304 program { name: "vbar_show_always";
305 signal: "elm,action,show_always,vbar";
309 v = get_int(sbvis_v);
310 v |= get_int(sbalways_v);
312 set_int(sbalways_v, 1);
313 emit("do-show-vbar", "");
318 program { name: "vbar_show_notalways";
319 signal: "elm,action,show_notalways,vbar";
323 v = get_int(sbalways_v);
325 set_int(sbalways_v, 0);
326 v = get_int(sbvis_v);
328 emit("do-hide-vbar", "");
334 program { name: "sb_vbar_show";
335 signal: "do-show-vbar";
337 action: STATE_SET "default" 0.0;
338 transition: LINEAR 0.5;
339 target: "sb_vbar_clip";
341 program { name: "sb_vbar_hide";
342 signal: "do-hide-vbar";
344 action: STATE_SET "hidden" 0.0;
345 transition: LINEAR 0.5;
346 target: "sb_vbar_clip";
349 program { name: "hbar_show";
350 signal: "elm,action,show,hbar";
352 action: STATE_SET "default" 0.0;
353 target: "sb_hbar_clip_master";
355 program { name: "hbar_hide";
356 signal: "elm,action,hide,hbar";
358 action: STATE_SET "hidden" 0.0;
359 target: "sb_hbar_clip_master";
361 program { name: "hbar_show_always";
362 signal: "elm,action,show_always,hbar";
366 v = get_int(sbvis_h);
367 v |= get_int(sbalways_h);
369 set_int(sbalways_h, 1);
370 emit("do-show-hbar", "");
375 program { name: "hbar_show_notalways";
376 signal: "elm,action,show_notalways,hbar";
380 v = get_int(sbalways_h);
382 set_int(sbalways_h, 0);
383 v = get_int(sbvis_h);
385 emit("do-hide-hbar", "");
391 program { name: "sb_hbar_show";
392 signal: "do-show-hbar";
394 action: STATE_SET "default" 0.0;
395 transition: LINEAR 0.5;
396 target: "sb_hbar_clip";
398 program { name: "sb_hbar_hide";
399 signal: "do-hide-hbar";
401 action: STATE_SET "hidden" 0.0;
402 transition: LINEAR 0.5;
403 target: "sb_hbar_clip";
406 program { name: "scroll";
407 signal: "elm,action,scroll";
411 v = get_int(sbvis_v);
412 v |= get_int(sbalways_v);
414 emit("do-show-vbar", "");
417 v = get_int(sbvis_h);
418 v |= get_int(sbalways_h);
420 emit("do-show-hbar", "");
423 v = get_int(sbvis_timer);
424 if (v > 0) cancel_timer(v);
425 v = timer(1.0, "timer0", 0);
426 set_int(sbvis_timer, v);
429 program { name: "disable";
430 signal: "elm,state,disabled";
432 action: STATE_SET "disabled" 0.0;
435 program { name: "enable";
436 signal: "elm,state,enabled";
438 action: STATE_SET "default" 0.0;
444 group { name: "elm/scroller/base/handler";
445 alias: "elm/carousel/base/handler";
448 item: "focus_highlight" "on";
451 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
452 public sh_timer, edge_timer;
455 v = get_int(sbvis_v);
457 v = get_int(sbalways_v);
459 emit("do-hide-vbar", "");
463 v = get_int(sbvis_h);
465 v = get_int(sbalways_h);
467 emit("do-hide-hbar", "");
471 set_int(sbvis_timer, 0);
475 emit("do-hide-vshadow", "");
476 emit("do-hide-hshadow", "");
477 set_int(sh_timer, 0);
481 emit("do-hide-vshadow", "");
482 emit("do-hide-hshadow", "");
483 set_int(edge_timer, 0);
488 image: "bt_sm_shine.png" COMP;
489 image: "bt_sm_hilight.png" COMP;
490 image: "sb_runnerh.png" COMP;
491 image: "00_fast_scroll_handler_top.png" COMP;
492 image: "00_fast_scroll_handler_middle.png" COMP;
493 image: "00_fast_scroll_handler_bottom.png" COMP;
494 image: "00_fast_scroll_handler_h_left.png" COMP;
495 image: "00_fast_scroll_handler_h_center.png" COMP;
496 image: "00_fast_scroll_handler_h_right.png" COMP;
497 image: "sl_bt2_2.png" COMP;
498 image: "shelf_inset.png" COMP;
504 description { state: "default" 0.0;
507 color: 255 255 255 0;
510 part { name: "clipper";
514 description { state: "default" 0.0;
521 part { name: "elm.swallow.content";
525 description { state: "default" 0.0;
532 part { name: "conf_over";
535 description { state: "default" 0.0;
540 normal: "shelf_inset.png";
546 description { state: "enabled" 0.0;
547 inherit: "default" 0.0;
548 color: 200 155 0 255;
551 part { name: "focus_highlight";
554 description { state: "default" 0.0;
558 normal: "sl_bt2_2.png";
565 description { state: "enabled" 0.0;
566 inherit: "default" 0.0;
567 color: 200 155 0 255;
570 part { name: "sb_vbar_clip_master";
574 description { state: "default" 0.0;
576 description { state: "hidden" 0.0;
578 color: 255 255 255 0;
581 part { name: "sb_vbar_clip";
582 clip_to: "sb_vbar_clip_master";
586 description { state: "default" 0.0;
588 description { state: "hidden" 0.0;
590 color: 255 255 255 0;
593 part { name: "sb_vbar";
597 description { state: "default" 0.0;
600 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
604 to_y: "elm.swallow.content";
605 to_x: "elm.swallow.content";
610 to_x: "elm.swallow.content";
614 part { name: "elm.dragable.vbar";
616 clip_to: "sb_vbar_clip";
624 description { state: "default" 0.0;
627 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
641 part { name: "scrollbar_handler_image_top";
642 clip_to: "sb_vbar_clip";
645 description { state: "default" 0.0;
647 rel1.relative: 0.0 0.0;
648 rel1.to: "elm.dragable.vbar";
649 rel2.relative: 1.0 0.0;
650 rel2.to: "scrollbar_handler_image_middle";
653 normal: "00_fast_scroll_handler_top.png";
659 part { name: "scrollbar_handler_image_middle";
660 clip_to: "sb_vbar_clip";
663 description { state: "default" 0.0;
665 rel1.relative: 0.5 0.5;
666 rel1.to: "elm.dragable.vbar";
667 rel2.relative: 0.5 0.5;
668 rel2.to: "elm.dragable.vbar";
670 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIDDLE_MIN_SIZE_INC;
672 normal: "00_fast_scroll_handler_middle.png";
678 part { name: "scrollbar_handler_image_bottom";
679 clip_to: "sb_vbar_clip";
682 description { state: "default" 0.0;
684 rel1.relative: 0.0 1.0;
685 rel1.to: "scrollbar_handler_image_middle";
686 rel2.relative: 1.0 1.0;
687 rel2.to: "elm.dragable.vbar";
690 normal: "00_fast_scroll_handler_bottom.png";
696 part { name: "sb_vbar_over1";
697 clip_to: "sb_vbar_clip";
700 description { state: "default" 0.0;
701 rel1.to: "elm.dragable.vbar";
702 rel2.relative: 1.0 0.5;
703 rel2.to: "elm.dragable.vbar";
706 normal: "bt_sm_hilight.png";
712 part { name: "sb_vbar_over2";
713 clip_to: "sb_vbar_clip";
716 description { state: "default" 0.0;
717 rel1.to: "elm.dragable.vbar";
718 rel2.to: "elm.dragable.vbar";
721 normal: "bt_sm_shine.png";
727 part { name: "sb_hbar_clip_master";
731 description { state: "default" 0.0;
733 description { state: "hidden" 0.0;
735 color: 255 255 255 0;
738 part { name: "sb_hbar_clip";
739 clip_to: "sb_hbar_clip_master";
743 description { state: "default" 0.0;
745 description { state: "hidden" 0.0;
747 color: 255 255 255 0;
750 part { name: "sb_hbar";
754 description { state: "default" 0.0;
757 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
761 to_x: "elm.swallow.content";
762 to_y: "elm.swallow.content";
768 to_y: "elm.swallow.content";
772 part { name: "elm.dragable.hbar";
774 clip_to: "sb_hbar_clip";
782 description { state: "default" 0.0;
785 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
799 part { name: "h_scrollbar_handler_image_left";
800 clip_to: "sb_hbar_clip";
803 description { state: "default" 0.0;
805 rel1.relative: 0.0 0.0;
806 rel1.to: "elm.dragable.hbar";
807 rel2.relative: 0.0 1.0;
808 rel2.to: "scrollbar_handler_image_hor";
811 normal: "00_fast_scroll_handler_h_left.png";
817 part { name: "scrollbar_handler_image_hor";
818 clip_to: "sb_hbar_clip";
821 description { state: "default" 0.0;
823 rel1.relative: 0.5 0.5;
824 rel1.to: "elm.dragable.hbar";
825 rel2.relative: 0.5 0.5;
826 rel2.to: "elm.dragable.hbar";
828 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIDDLE_MIN_SIZE_INC;
830 normal: "00_fast_scroll_handler_h_center.png";
836 part { name: "h_scrollbar_handler_image_right";
837 clip_to: "sb_hbar_clip";
840 description { state: "default" 0.0;
842 rel1.relative: 1.0 0.0;
843 rel1.to: "scrollbar_handler_image_hor";
844 rel2.relative: 1.0 1.0;
845 rel2.to: "elm.dragable.hbar";
848 normal: "00_fast_scroll_handler_h_right.png";
854 part { name: "sb_hbar_over1";
855 clip_to: "sb_hbar_clip";
858 description { state: "default" 0.0;
859 rel1.to: "elm.dragable.hbar";
860 rel2.relative: 1.0 0.5;
861 rel2.to: "elm.dragable.hbar";
864 normal: "bt_sm_hilight.png";
870 part { name: "sb_hbar_over2";
871 clip_to: "sb_hbar_clip";
874 description { state: "default" 0.0;
875 rel1.to: "elm.dragable.hbar";
876 rel2.to: "elm.dragable.hbar";
879 normal: "bt_sm_shine.png";
885 part { name: "disabler";
888 description { state: "default" 0.0;
894 description { state: "disabled" 0.0;
895 inherit: "default" 0.0;
897 color: 128 128 128 128;
902 program { name: "load";
906 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
907 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
910 set_int(sbalways_v, 0);
911 set_int(sbalways_h, 0);
912 set_int(sbvis_timer, 0);
913 emit("reload", "elm");
916 program { name: "vbar_show";
917 signal: "elm,action,show,vbar";
919 action: STATE_SET "default" 0.0;
920 target: "sb_vbar_clip_master";
922 program { name: "vbar_hide";
923 signal: "elm,action,hide,vbar";
925 action: STATE_SET "hidden" 0.0;
926 target: "sb_vbar_clip_master";
928 program { name: "vbar_show_always";
929 signal: "elm,action,show_always,vbar";
933 v = get_int(sbvis_v);
934 v |= get_int(sbalways_v);
936 set_int(sbalways_v, 1);
937 emit("do-show-vbar", "");
942 program { name: "vbar_show_notalways";
943 signal: "elm,action,show_notalways,vbar";
947 v = get_int(sbalways_v);
949 set_int(sbalways_v, 0);
950 v = get_int(sbvis_v);
952 emit("do-hide-vbar", "");
958 program { name: "vbar_press";
959 signal: "mouse,down,1";
960 source: "elm.dragable.vbar";
961 action: SIGNAL_EMIT "elm,vbar,press" "elm";
963 program { name: "vbar_unpress";
964 signal: "mouse,up,1";
965 source: "elm.dragable.vbar";
966 action: SIGNAL_EMIT "elm,vbar,unpress" "elm";
968 program { name: "sb_vbar_show";
969 signal: "do-show-vbar";
971 action: STATE_SET "default" 0.0;
972 transition: LINEAR 0.5;
973 target: "sb_vbar_clip";
975 program { name: "sb_vbar_hide";
976 signal: "do-hide-vbar";
978 action: STATE_SET "hidden" 0.0;
979 transition: LINEAR 0.5;
980 target: "sb_vbar_clip";
982 program { name: "hbar_show";
983 signal: "elm,action,show,hbar";
985 action: STATE_SET "default" 0.0;
986 target: "sb_hbar_clip_master";
988 program { name: "hbar_hide";
989 signal: "elm,action,hide,hbar";
991 action: STATE_SET "hidden" 0.0;
992 target: "sb_hbar_clip_master";
994 program { name: "hbar_show_always";
995 signal: "elm,action,show_always,hbar";
999 v = get_int(sbvis_h);
1000 v |= get_int(sbalways_h);
1002 set_int(sbalways_h, 1);
1003 emit("do-show-hbar", "");
1004 set_int(sbvis_h, 1);
1008 program { name: "hbar_show_notalways";
1009 signal: "elm,action,show_notalways,hbar";
1013 v = get_int(sbalways_h);
1015 set_int(sbalways_h, 0);
1016 v = get_int(sbvis_h);
1018 emit("do-hide-hbar", "");
1019 set_int(sbvis_h, 0);
1024 program { name: "hbar_press";
1025 signal: "mouse,down,1";
1026 source: "elm.dragable.hbar";
1027 action: SIGNAL_EMIT "elm,hbar,press" "elm";
1029 program { name: "hbar_unpress";
1030 signal: "mouse,up,1";
1031 source: "elm.dragable.hbar";
1032 action: SIGNAL_EMIT "elm,hbar,unpress" "elm";
1034 program { name: "sb_hbar_show";
1035 signal: "do-show-hbar";
1037 action: STATE_SET "default" 0.0;
1038 transition: LINEAR 0.5;
1039 target: "sb_hbar_clip";
1041 program { name: "sb_hbar_hide";
1042 signal: "do-hide-hbar";
1044 action: STATE_SET "hidden" 0.0;
1045 transition: LINEAR 0.5;
1046 target: "sb_hbar_clip";
1049 program { name: "scroll";
1050 signal: "elm,action,scroll";
1054 v = get_int(sbvis_v);
1055 v |= get_int(sbalways_v);
1057 emit("do-show-vbar", "");
1058 set_int(sbvis_v, 1);
1060 v = get_int(sbvis_h);
1061 v |= get_int(sbalways_h);
1063 emit("do-show-hbar", "");
1064 set_int(sbvis_h, 1);
1066 v = get_int(sbvis_timer);
1067 if (v > 0) cancel_timer(v);
1068 v = timer(1.0, "timer0", 0);
1069 set_int(sbvis_timer, v);
1073 program { name: "highlight_show";
1074 signal: "elm,action,focus_highlight,show";
1076 action: STATE_SET "enabled" 0.0;
1077 transition: ACCELERATE 0.3;
1078 target: "focus_highlight";
1079 target: "conf_over";
1081 program { name: "highlight_hide";
1082 signal: "elm,action,focus_highlight,hide";
1084 action: STATE_SET "default" 0.0;
1085 transition: DECELERATE 0.3;
1086 target: "focus_highlight";
1087 target: "conf_over";
1089 program { name: "disable";
1090 signal: "elm,state,disabled";
1092 action: STATE_SET "disabled" 0.0;
1095 program { name: "enable";
1096 signal: "elm,state,enabled";
1098 action: STATE_SET "default" 0.0;
1104 group { name: "elm/genlist/base/default";
1105 alias: "elm/genscroller/base/default";
1106 alias: "elm/list/base/default";
1107 inherit: "elm/scroller/base/default";
1110 image: "00_overscrolling_top.png" COMP;
1111 image: "00_overscrolling_bottom.png" COMP;
1112 image: "00_overscrolling_left.png" COMP;
1113 image: "00_overscrolling_right.png" COMP;
1117 part { name: "vshadow_clip";
1121 description { state: "default" 0.0;
1123 description { state: "hidden" 0.0;
1125 color: 255 255 255 0;
1128 part { name: "hshadow_clip";
1132 description { state: "default" 0.0;
1134 description { state: "hidden" 0.0;
1136 color: 255 255 255 0;
1139 part { name: "shadow_top";
1140 clip_to: "vshadow_clip";
1144 description { state: "default" 0.0;
1148 color: 255 255 255 100;
1149 rel1.relative: 0.0 0.0;
1150 rel2.relative: 1.0 0.0;
1151 rel1.to: "elm.swallow.content";
1152 rel2.to: "elm.swallow.content";
1153 image.normal: "00_overscrolling_top.png";
1155 description { state: "edge" 0.0;
1156 inherit: "default" 0.0;
1157 color: 255 255 255 255;
1159 description { state: "edge_op" 0.0;
1160 inherit: "default" 0.0;
1161 color: 255 255 255 65;
1164 part { name: "shadow_bottom";
1165 clip_to: "vshadow_clip";
1169 description { state: "default" 0.0;
1173 color: 255 255 255 100;
1174 rel1.relative: 0.0 1.0;
1175 rel2.relative: 1.0 1.0;
1176 rel1.to: "elm.swallow.content";
1177 rel2.to: "elm.swallow.content";
1178 image.normal: "00_overscrolling_bottom.png";
1180 description { state: "edge" 0.0;
1181 inherit: "default" 0.0;
1182 color: 255 255 255 255;
1184 description { state: "edge_op" 0.0;
1185 inherit: "default" 0.0;
1186 color: 255 255 255 65;
1189 part { name: "shadow_left";
1190 clip_to: "hshadow_clip";
1194 description { state: "default" 0.0;
1198 color: 255 255 255 100;
1199 rel1.relative: 0.0 0.0;
1200 rel2.relative: 0.0 1.0;
1201 rel1.to: "elm.swallow.content";
1202 rel2.to: "elm.swallow.content";
1203 image.normal: "00_overscrolling_left.png";
1205 description { state: "edge" 0.0;
1206 inherit: "default" 0.0;
1207 color: 255 255 255 255;
1209 description { state: "edge_op" 0.0;
1210 inherit: "default" 0.0;
1211 color: 255 255 255 65;
1214 part { name: "shadow_right";
1215 clip_to: "hshadow_clip";
1219 description { state: "default" 0.0;
1223 color: 255 255 255 100;
1224 rel1.relative: 1.0 0.0;
1225 rel2.relative: 1.0 1.0;
1226 rel1.to: "elm.swallow.content";
1227 rel2.to: "elm.swallow.content";
1228 image.normal: "00_overscrolling_right.png";
1230 description { state: "edge" 0.0;
1231 inherit: "default" 0.0;
1232 color: 255 255 255 255;
1234 description { state: "edge_op" 0.0;
1235 inherit: "default" 0.0;
1236 color: 255 255 255 65;
1239 part { name: "padding_jump_to_top";
1242 description { state: "default" 0.0;
1243 min: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1244 max: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1245 rel1.relative: 1.0 0.0;
1246 rel2.relative: 1.0 0.0;
1247 rel1.to: "elm.swallow.content";
1248 rel2.to: "elm.swallow.content";
1253 part { name: "elm.swallow.jump_to_top";
1256 description { state: "default" 0.0;
1258 to: "padding_jump_to_top";
1262 to: "padding_jump_to_top";
1269 part { name: "padding_jump_to_left";
1272 description { state: "default" 0.0;
1273 min: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1274 max: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1275 rel1.relative: 0.0 1.0;
1276 rel2.relative: 0.0 1.0;
1277 rel1.to: "elm.swallow.content";
1278 rel2.to: "elm.swallow.content";
1283 part { name: "elm.swallow.jump_to_left";
1286 description { state: "default" 0.0;
1288 to: "padding_jump_to_left";
1292 to: "padding_jump_to_left";
1301 program { name: "load";
1303 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1304 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1305 set_state(PART:"vshadow_clip", "hidden", 0.0);
1306 set_state(PART:"hshadow_clip", "hidden", 0.0);
1307 set_int(sbvis_h, 0);
1308 set_int(sbvis_v, 0);
1309 set_int(sbalways_v, 0);
1310 set_int(sbalways_h, 0);
1311 set_int(sbvis_timer, 0);
1313 set_int(sh_timer, 0);
1314 set_int(edge_timer, 0);
1315 emit("reload", "elm");
1318 program { name: "vshadow_show";
1319 signal: "do-show-vshadow";
1321 action: STATE_SET "default" 0.0;
1322 transition: LINEAR 0.5;
1323 target: "vshadow_clip";
1325 program { name: "vshadow_hide";
1326 signal: "do-hide-vshadow";
1328 action: STATE_SET "hidden" 0.0;
1329 transition: LINEAR 0.5;
1330 target: "vshadow_clip";
1332 program { name: "hshadow_show";
1333 signal: "do-show-hshadow";
1335 action: STATE_SET "default" 0.0;
1336 transition: LINEAR 0.5;
1337 target: "hshadow_clip";
1339 program { name: "hshadow_hide";
1340 signal: "do-hide-hshadow";
1342 action: STATE_SET "hidden" 0.0;
1343 transition: LINEAR 0.5;
1344 target: "hshadow_clip";
1346 program { name: "scroll";
1347 signal: "elm,action,scroll";
1351 v = get_int(sbvis_v);
1352 v |= get_int(sbalways_v);
1354 emit("do-show-vbar", "");
1355 set_int(sbvis_v, 1);
1357 v = get_int(sbvis_h);
1358 v |= get_int(sbalways_h);
1360 emit("do-show-hbar", "");
1361 set_int(sbvis_h, 1);
1363 v = get_int(sbvis_timer);
1364 if (v > 0) cancel_timer(v);
1365 v = timer(1, "timer0", 0);
1366 set_int(sbvis_timer, v);
1369 program { name: "scroll_up";
1370 signal: "elm,action,scroll,up";
1372 after: "scroll_vertical";
1374 program { name: "scroll_down";
1375 signal: "elm,action,scroll,down";
1377 after: "scroll_vertical";
1379 program { name: "scroll_vertical";
1382 v = get_int(edge_timer);
1384 set_state(PART:"shadow_top", "default", 0.0);
1385 set_state(PART:"shadow_bottom", "default", 0.0);
1386 emit("do-show-vshadow", "");
1387 v = get_int(sh_timer);
1388 if (v > 0) cancel_timer(v);
1389 v = timer(0.2, "timer1", 0);
1390 set_int(sh_timer, v);
1394 program { name: "scroll_left";
1395 signal: "elm,action,scroll,left";
1397 after: "scroll_horizontal";
1399 program { name: "scroll_right";
1400 signal: "elm,action,scroll,right";
1402 after: "scroll_horizontal";
1404 program { name: "scroll_horizontal";
1407 v = get_int(edge_timer);
1409 set_state(PART:"shadow_left", "default", 0.0);
1410 set_state(PART:"shadow_right", "default", 0.0);
1411 emit("do-show-hshadow", "");
1412 v = get_int(sh_timer);
1413 if (v > 0) cancel_timer(v);
1414 v = timer(0.2, "timer1", 0);
1415 set_int(sh_timer, v);
1419 program { name: "edge_top";
1420 signal: "elm,edge,top";
1423 set_state(PART:"shadow_top", "edge", 0.0);
1424 set_state(PART:"shadow_bottom", "edge_op", 0.0);
1426 after: "edge_vertical";
1428 program { name: "edge_bottom";
1429 signal: "elm,edge,bottom";
1432 set_state(PART:"shadow_top", "edge_op", 0.0);
1433 set_state(PART:"shadow_bottom", "edge", 0.0);
1435 after: "edge_vertical";
1437 program { name: "edge_left";
1438 signal: "elm,edge,left";
1441 set_state(PART:"shadow_left", "edge", 0.0);
1442 set_state(PART:"shadow_right", "edge_op", 0.0);
1444 after: "edge_horizontal";
1446 program { name: "edge_right";
1447 signal: "elm,edge,right";
1450 set_state(PART:"shadow_left", "edge_op", 0.0);
1451 set_state(PART:"shadow_right", "edge", 0.0);
1453 after: "edge_horizontal";
1455 program { name: "edge_vertical";
1458 v = get_int(sh_timer);
1459 if (v > 0) cancel_timer(v);
1460 v = get_int(edge_timer);
1462 emit("do-show-vshadow", "");
1464 if (v > 0) cancel_timer(v);
1465 v = timer(0.2, "timer2", 0);
1466 set_int(edge_timer, v);
1469 program { name: "edge_horizontal";
1472 v = get_int(sh_timer);
1473 if (v > 0) cancel_timer(v);
1474 v = get_int(edge_timer);
1476 emit("do-show-hshadow", "");
1478 if (v > 0) cancel_timer(v);
1479 v = timer(0.2, "timer2", 0);
1480 set_int(edge_timer, v);
1483 program { name: "show";
1488 emit("do-show-vbar", "");
1489 set_int(sbvis_v, 1);
1490 v = get_int(sbalways_v);
1492 v = get_int(sbvis_timer);
1493 if (v > 0) cancel_timer(v);
1494 v = timer(1.0, "timer0", 0);
1495 set_int(sbvis_timer, v);
1497 emit("do-show-hbar", "");
1498 set_int(sbvis_h, 1);
1499 v = get_int(sbalways_h);
1501 v = get_int(sbvis_timer);
1502 if (v > 0) cancel_timer(v);
1503 v = timer(1.0, "timer0", 0);
1504 set_int(sbvis_timer, v);
1511 group { name: "elm/genlist/base/handler";
1512 alias: "elm/genscroller/base/handler";
1513 alias: "elm/list/base/handler";
1514 inherit: "elm/scroller/base/handler";
1517 image: "00_overscrolling_top.png" COMP;
1518 image: "00_overscrolling_bottom.png" COMP;
1519 image: "00_overscrolling_left.png" COMP;
1520 image: "00_overscrolling_right.png" COMP;
1524 part { name: "vshadow_clip";
1528 description { state: "default" 0.0;
1530 description { state: "hidden" 0.0;
1532 color: 255 255 255 0;
1535 part { name: "hshadow_clip";
1539 description { state: "default" 0.0;
1541 description { state: "hidden" 0.0;
1543 color: 255 255 255 0;
1546 part { name: "shadow_top";
1547 clip_to: "vshadow_clip";
1551 description { state: "default" 0.0;
1555 color: 255 255 255 100;
1556 rel1.relative: 0.0 0.0;
1557 rel2.relative: 1.0 0.0;
1558 rel1.to: "elm.swallow.content";
1559 rel2.to: "elm.swallow.content";
1560 image.normal: "00_overscrolling_top.png";
1562 description { state: "edge" 0.0;
1563 inherit: "default" 0.0;
1564 color: 255 255 255 255;
1566 description { state: "hidden" 0.0;
1567 inherit: "default" 0.0;
1571 part { name: "shadow_bottom";
1572 clip_to: "vshadow_clip";
1576 description { state: "default" 0.0;
1580 color: 255 255 255 100;
1581 rel1.relative: 0.0 1.0;
1582 rel2.relative: 1.0 1.0;
1583 rel1.to: "elm.swallow.content";
1584 rel2.to: "elm.swallow.content";
1585 image.normal: "00_overscrolling_bottom.png";
1587 description { state: "edge" 0.0;
1588 inherit: "default" 0.0;
1589 color: 255 255 255 255;
1591 description { state: "hidden" 0.0;
1592 inherit: "default" 0.0;
1596 part { name: "shadow_left";
1597 clip_to: "hshadow_clip";
1601 description { state: "default" 0.0;
1605 color: 255 255 255 100;
1606 rel1.relative: 0.0 0.0;
1607 rel2.relative: 0.0 1.0;
1608 rel1.to: "elm.swallow.content";
1609 rel2.to: "elm.swallow.content";
1610 image.normal: "00_overscrolling_left.png";
1612 description { state: "edge" 0.0;
1613 inherit: "default" 0.0;
1614 color: 255 255 255 255;
1616 description { state: "hidden" 0.0;
1617 inherit: "default" 0.0;
1621 part { name: "shadow_right";
1622 clip_to: "hshadow_clip";
1626 description { state: "default" 0.0;
1630 color: 255 255 255 100;
1631 rel1.relative: 1.0 0.0;
1632 rel2.relative: 1.0 1.0;
1633 rel1.to: "elm.swallow.content";
1634 rel2.to: "elm.swallow.content";
1635 image.normal: "00_overscrolling_right.png";
1637 description { state: "edge" 0.0;
1638 inherit: "default" 0.0;
1639 color: 255 255 255 255;
1641 description { state: "hidden" 0.0;
1642 inherit: "default" 0.0;
1648 program { name: "load";
1652 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1653 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1654 set_state(PART:"vshadow_clip", "hidden", 0.0);
1655 set_state(PART:"hshadow_clip", "hidden", 0.0);
1656 set_int(sbvis_h, 0);
1657 set_int(sbvis_v, 0);
1658 set_int(sbalways_v, 0);
1659 set_int(sbalways_h, 0);
1660 set_int(sbvis_timer, 0);
1661 set_int(sh_timer, 0);
1662 set_int(edge_timer, 0);
1663 emit("reload", "elm");
1666 program { name: "vbar_show_always";
1667 signal: "elm,action,show_always,vbar";
1671 v = get_int(sbvis_v);
1672 v |= get_int(sbalways_v);
1674 set_int(sbalways_v, 1);
1675 emit("do-show-vbar", "");
1676 set_int(sbvis_v, 1);
1680 program { name: "vbar_show_notalways";
1681 signal: "elm,action,show_notalways,vbar";
1685 v = get_int(sbalways_v);
1687 set_int(sbalways_v, 0);
1688 v = get_int(sbvis_v);
1690 emit("do-hide-vbar", "");
1691 set_int(sbvis_v, 0);
1696 program { name: "hbar_show_always";
1697 signal: "elm,action,show_always,hbar";
1701 v = get_int(sbvis_h);
1702 v |= get_int(sbalways_h);
1704 set_int(sbalways_h, 1);
1705 emit("do-show-hbar", "");
1706 set_int(sbvis_h, 1);
1710 program { name: "hbar_show_notalways";
1711 signal: "elm,action,show_notalways,hbar";
1715 v = get_int(sbalways_h);
1717 set_int(sbalways_h, 0);
1718 v = get_int(sbvis_h);
1720 emit("do-hide-hbar", "");
1721 set_int(sbvis_h, 0);
1726 program { name: "vshadow_show";
1727 signal: "do-show-vshadow";
1729 action: STATE_SET "default" 0.0;
1730 transition: LINEAR 0.5;
1731 target: "vshadow_clip";
1733 program { name: "vshadow_hide";
1734 signal: "do-hide-vshadow";
1736 action: STATE_SET "hidden" 0.0;
1737 transition: LINEAR 0.5;
1738 target: "vshadow_clip";
1740 program { name: "hshadow_show";
1741 signal: "do-show-hshadow";
1743 action: STATE_SET "default" 0.0;
1744 transition: LINEAR 0.5;
1745 target: "hshadow_clip";
1747 program { name: "hshadow_hide";
1748 signal: "do-hide-hshadow";
1750 action: STATE_SET "hidden" 0.0;
1751 transition: LINEAR 0.5;
1752 target: "hshadow_clip";
1754 program { name: "scroll";
1755 signal: "elm,action,scroll";
1759 v = get_int(sbvis_v);
1760 v |= get_int(sbalways_v);
1762 emit("do-show-vbar", "");
1763 set_int(sbvis_v, 1);
1765 v = get_int(sbvis_h);
1766 v |= get_int(sbalways_h);
1768 emit("do-show-hbar", "");
1769 set_int(sbvis_h, 1);
1771 v = get_int(sbvis_timer);
1772 if (v > 0) cancel_timer(v);
1773 v = timer(1, "timer0", 0);
1774 set_int(sbvis_timer, v);
1777 program { name: "scroll_up";
1778 signal: "elm,action,scroll,up";
1780 after: "scroll_vertical";
1782 program { name: "scroll_down";
1783 signal: "elm,action,scroll,down";
1785 after: "scroll_vertical";
1787 program { name: "scroll_vertical";
1790 v = get_int(edge_timer);
1792 set_state(PART:"shadow_top", "default", 0.0);
1793 set_state(PART:"shadow_bottom", "default", 0.0);
1794 emit("do-show-vshadow", "");
1795 v = get_int(sh_timer);
1796 if (v > 0) cancel_timer(v);
1797 v = timer(0.2, "timer1", 0);
1798 set_int(sh_timer, v);
1802 program { name: "scroll_left";
1803 signal: "elm,action,scroll,left";
1805 after: "scroll_horizontal";
1807 program { name: "scroll_right";
1808 signal: "elm,action,scroll,right";
1810 after: "scroll_horizontal";
1812 program { name: "scroll_horizontal";
1815 v = get_int(edge_timer);
1817 set_state(PART:"shadow_left", "default", 0.0);
1818 set_state(PART:"shadow_right", "default", 0.0);
1819 emit("do-show-hshadow", "");
1820 v = get_int(sh_timer);
1821 if (v > 0) cancel_timer(v);
1822 v = timer(0.2, "timer1", 0);
1823 set_int(sh_timer, v);
1827 program { name: "edge_top";
1828 signal: "elm,edge,top";
1831 set_state(PART:"shadow_top", "edge", 0.0);
1832 set_state(PART:"shadow_bottom", "hidden", 0.0);
1834 after: "edge_vertical";
1836 program { name: "edge_bottom";
1837 signal: "elm,edge,bottom";
1840 set_state(PART:"shadow_top", "hidden", 0.0);
1841 set_state(PART:"shadow_bottom", "edge", 0.0);
1843 after: "edge_vertical";
1845 program { name: "edge_left";
1846 signal: "elm,edge,left";
1849 set_state(PART:"shadow_left", "edge", 0.0);
1850 set_state(PART:"shadow_right", "hidden", 0.0);
1852 after: "edge_horizontal";
1854 program { name: "edge_right";
1855 signal: "elm,edge,right";
1858 set_state(PART:"shadow_left", "hidden", 0.0);
1859 set_state(PART:"shadow_right", "edge", 0.0);
1861 after: "edge_horizontal";
1863 program { name: "edge_vertical";
1866 v = get_int(sh_timer);
1867 if (v > 0) cancel_timer(v);
1868 v = get_int(edge_timer);
1870 emit("do-show-vshadow", "");
1872 if (v > 0) cancel_timer(v);
1873 v = timer(0.2, "timer2", 0);
1874 set_int(edge_timer, v);
1877 program { name: "edge_horizontal";
1880 v = get_int(sh_timer);
1881 if (v > 0) cancel_timer(v);
1882 v = get_int(edge_timer);
1884 emit("do-show-hshadow", "");
1886 if (v > 0) cancel_timer(v);
1887 v = timer(0.2, "timer2", 0);
1888 set_int(edge_timer, v);
1891 program { name: "show";
1896 emit("do-show-vbar", "");
1897 set_int(sbvis_v, 1);
1898 v = get_int(sbalways_v);
1900 v = get_int(sbvis_timer);
1901 if (v > 0) cancel_timer(v);
1902 v = timer(1.0, "timer0", 0);
1903 set_int(sbvis_timer, v);
1905 emit("do-show-hbar", "");
1906 set_int(sbvis_h, 1);
1907 v = get_int(sbalways_h);
1909 v = get_int(sbvis_timer);
1910 if (v > 0) cancel_timer(v);
1911 v = timer(1.0, "timer0", 0);
1912 set_int(sbvis_timer, v);
1919 group { name: "elm/gengrid/base/default";
1920 inherit: "elm/genlist/base/default";
1923 image: "00_grid_overscrolling_top.png" COMP;
1924 image: "00_grid_overscrolling_bottom.png" COMP;
1925 image: "00_grid_overscrolling_left.png" COMP;
1926 image: "00_grid_overscrolling_right.png" COMP;
1930 part { name: "shadow_top";
1931 description { state: "default" 0.0;
1933 image.normal: "00_grid_overscrolling_top.png";
1935 description { state: "edge" 0.0;
1936 inherit: "default" 0.0;
1937 color: 255 255 255 255;
1940 part { name: "shadow_bottom";
1941 description { state: "default" 0.0;
1943 image.normal: "00_grid_overscrolling_bottom.png";
1945 description { state: "edge" 0.0;
1946 inherit: "default" 0.0;
1947 color: 255 255 255 255;
1950 part { name: "shadow_left";
1951 description { state: "default" 0.0;
1953 image.normal: "00_grid_overscrolling_left.png";
1955 description { state: "edge" 0.0;
1956 inherit: "default" 0.0;
1957 color: 255 255 255 255;
1960 part { name: "shadow_right";
1961 description { state: "default" 0.0;
1963 image.normal: "00_grid_overscrolling_right.png";
1965 description { state: "edge" 0.0;
1966 inherit: "default" 0.0;
1967 color: 255 255 255 255;
1973 group { name: "elm/gengrid/base/handler";
1974 inherit: "elm/genlist/base/handler";
1977 part { name: "shadow_top";
1978 description { state: "default" 0.0;
1980 image.normal: "00_grid_overscrolling_top.png";
1982 description { state: "edge" 0.0;
1983 inherit: "default" 0.0;
1984 color: 255 255 255 255;
1987 part { name: "shadow_bottom";
1988 description { state: "default" 0.0;
1990 image.normal: "00_grid_overscrolling_bottom.png";
1992 description { state: "edge" 0.0;
1993 inherit: "default" 0.0;
1994 color: 255 255 255 255;
1997 part { name: "shadow_left";
1998 description { state: "default" 0.0;
2000 image.normal: "00_grid_overscrolling_left.png";
2002 description { state: "edge" 0.0;
2003 inherit: "default" 0.0;
2004 color: 255 255 255 255;
2007 part { name: "shadow_right";
2008 description { state: "default" 0.0;
2010 image.normal: "00_grid_overscrolling_right.png";
2012 description { state: "edge" 0.0;
2013 inherit: "default" 0.0;
2014 color: 255 255 255 255;