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);
291 program { name: "vbar_show";
292 signal: "elm,action,show,vbar";
294 action: STATE_SET "default" 0.0;
295 target: "sb_vbar_clip_master";
297 program { name: "vbar_hide";
298 signal: "elm,action,hide,vbar";
300 action: STATE_SET "hidden" 0.0;
301 target: "sb_vbar_clip_master";
303 program { name: "vbar_show_always";
304 signal: "elm,action,show_always,vbar";
308 v = get_int(sbvis_v);
309 v |= get_int(sbalways_v);
311 set_int(sbalways_v, 1);
312 emit("do-show-vbar", "");
317 program { name: "vbar_show_notalways";
318 signal: "elm,action,show_notalways,vbar";
322 v = get_int(sbalways_v);
324 set_int(sbalways_v, 0);
325 v = get_int(sbvis_v);
327 emit("do-hide-vbar", "");
333 program { name: "sb_vbar_show";
334 signal: "do-show-vbar";
336 action: STATE_SET "default" 0.0;
337 transition: LINEAR 0.5;
338 target: "sb_vbar_clip";
340 program { name: "sb_vbar_hide";
341 signal: "do-hide-vbar";
343 action: STATE_SET "hidden" 0.0;
344 transition: LINEAR 0.5;
345 target: "sb_vbar_clip";
348 program { name: "hbar_show";
349 signal: "elm,action,show,hbar";
351 action: STATE_SET "default" 0.0;
352 target: "sb_hbar_clip_master";
354 program { name: "hbar_hide";
355 signal: "elm,action,hide,hbar";
357 action: STATE_SET "hidden" 0.0;
358 target: "sb_hbar_clip_master";
360 program { name: "hbar_show_always";
361 signal: "elm,action,show_always,hbar";
365 v = get_int(sbvis_h);
366 v |= get_int(sbalways_h);
368 set_int(sbalways_h, 1);
369 emit("do-show-hbar", "");
374 program { name: "hbar_show_notalways";
375 signal: "elm,action,show_notalways,hbar";
379 v = get_int(sbalways_h);
381 set_int(sbalways_h, 0);
382 v = get_int(sbvis_h);
384 emit("do-hide-hbar", "");
390 program { name: "sb_hbar_show";
391 signal: "do-show-hbar";
393 action: STATE_SET "default" 0.0;
394 transition: LINEAR 0.5;
395 target: "sb_hbar_clip";
397 program { name: "sb_hbar_hide";
398 signal: "do-hide-hbar";
400 action: STATE_SET "hidden" 0.0;
401 transition: LINEAR 0.5;
402 target: "sb_hbar_clip";
405 program { name: "scroll";
406 signal: "elm,action,scroll";
410 v = get_int(sbvis_v);
411 v |= get_int(sbalways_v);
413 emit("do-show-vbar", "");
416 v = get_int(sbvis_h);
417 v |= get_int(sbalways_h);
419 emit("do-show-hbar", "");
422 v = get_int(sbvis_timer);
423 if (v > 0) cancel_timer(v);
424 v = timer(1.0, "timer0", 0);
425 set_int(sbvis_timer, v);
428 program { name: "disable";
429 signal: "elm,state,disabled";
431 action: STATE_SET "disabled" 0.0;
434 program { name: "enable";
435 signal: "elm,state,enabled";
437 action: STATE_SET "default" 0.0;
443 group { name: "elm/scroller/base/handler";
444 alias: "elm/carousel/base/handler";
447 item: "focus_highlight" "on";
450 public sbvis_v, sbvis_h, sbalways_v, sbalways_h, sbvis_timer;
451 public sh_timer, edge_timer;
454 v = get_int(sbvis_v);
456 v = get_int(sbalways_v);
458 emit("do-hide-vbar", "");
462 v = get_int(sbvis_h);
464 v = get_int(sbalways_h);
466 emit("do-hide-hbar", "");
470 set_int(sbvis_timer, 0);
474 emit("do-hide-vshadow", "");
475 emit("do-hide-hshadow", "");
476 set_int(sh_timer, 0);
480 emit("do-hide-vshadow", "");
481 emit("do-hide-hshadow", "");
482 set_int(edge_timer, 0);
487 image: "bt_sm_shine.png" COMP;
488 image: "bt_sm_hilight.png" COMP;
489 image: "sb_runnerh.png" COMP;
490 image: "00_scroll_bar_handler_top.png" COMP;
491 image: "00_scroll_bar_handler_middle.png" COMP;
492 image: "00_scroll_bar_handler_bottom.png" COMP;
493 image: "00_scroll_bar_handler_left.png" COMP;
494 image: "00_scroll_bar_handler_hor.png" COMP;
495 image: "00_scroll_bar_handler_right.png" COMP;
496 image: "sl_bt2_2.png" COMP;
497 image: "shelf_inset.png" COMP;
503 description { state: "default" 0.0;
506 color: 255 255 255 0;
509 part { name: "clipper";
513 description { state: "default" 0.0;
520 part { name: "elm.swallow.content";
524 description { state: "default" 0.0;
531 part { name: "conf_over";
534 description { state: "default" 0.0;
539 normal: "shelf_inset.png";
545 description { state: "enabled" 0.0;
546 inherit: "default" 0.0;
547 color: 200 155 0 255;
550 part { name: "focus_highlight";
553 description { state: "default" 0.0;
557 normal: "sl_bt2_2.png";
564 description { state: "enabled" 0.0;
565 inherit: "default" 0.0;
566 color: 200 155 0 255;
569 part { name: "sb_vbar_clip_master";
573 description { state: "default" 0.0;
575 description { state: "hidden" 0.0;
577 color: 255 255 255 0;
580 part { name: "sb_vbar_clip";
581 clip_to: "sb_vbar_clip_master";
585 description { state: "default" 0.0;
587 description { state: "hidden" 0.0;
589 color: 255 255 255 0;
592 part { name: "sb_vbar";
596 description { state: "default" 0.0;
599 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
603 to_y: "elm.swallow.content";
604 to_x: "elm.swallow.content";
609 to_x: "elm.swallow.content";
613 part { name: "elm.dragable.vbar";
615 clip_to: "sb_vbar_clip";
623 description { state: "default" 0.0;
626 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIN_SIZE_INC;
640 part { name: "scrollbar_handler_image_top";
641 clip_to: "sb_vbar_clip";
644 description { state: "default" 0.0;
646 rel1.relative: 0.0 0.0;
647 rel1.to: "elm.dragable.vbar";
648 rel2.relative: 1.0 0.0;
649 rel2.to: "scrollbar_handler_image_middle";
652 normal: "00_scroll_bar_handler_top.png";
658 part { name: "scrollbar_handler_image_middle";
659 clip_to: "sb_vbar_clip";
662 description { state: "default" 0.0;
664 rel1.relative: 0.5 0.5;
665 rel1.to: "elm.dragable.vbar";
666 rel2.relative: 0.5 0.5;
667 rel2.to: "elm.dragable.vbar";
669 min: SCROLLER_HANDLER_SCROLLBAR_VBAR_MIDDLE_MIN_SIZE_INC;
671 normal: "00_scroll_bar_handler_middle.png";
677 part { name: "scrollbar_handler_image_bottom";
678 clip_to: "sb_vbar_clip";
681 description { state: "default" 0.0;
683 rel1.relative: 0.0 1.0;
684 rel1.to: "scrollbar_handler_image_middle";
685 rel2.relative: 1.0 1.0;
686 rel2.to: "elm.dragable.vbar";
689 normal: "00_scroll_bar_handler_bottom.png";
695 part { name: "sb_vbar_over1";
696 clip_to: "sb_vbar_clip";
699 description { state: "default" 0.0;
700 rel1.to: "elm.dragable.vbar";
701 rel2.relative: 1.0 0.5;
702 rel2.to: "elm.dragable.vbar";
705 normal: "bt_sm_hilight.png";
711 part { name: "sb_vbar_over2";
712 clip_to: "sb_vbar_clip";
715 description { state: "default" 0.0;
716 rel1.to: "elm.dragable.vbar";
717 rel2.to: "elm.dragable.vbar";
720 normal: "bt_sm_shine.png";
726 part { name: "sb_hbar_clip_master";
730 description { state: "default" 0.0;
732 description { state: "hidden" 0.0;
734 color: 255 255 255 0;
737 part { name: "sb_hbar_clip";
738 clip_to: "sb_hbar_clip_master";
742 description { state: "default" 0.0;
744 description { state: "hidden" 0.0;
746 color: 255 255 255 0;
749 part { name: "sb_hbar";
753 description { state: "default" 0.0;
756 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
760 to_x: "elm.swallow.content";
761 to_y: "elm.swallow.content";
767 to_y: "elm.swallow.content";
771 part { name: "elm.dragable.hbar";
773 clip_to: "sb_hbar_clip";
781 description { state: "default" 0.0;
784 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIN_SIZE_INC;
798 part { name: "h_scrollbar_handler_image_left";
799 clip_to: "sb_hbar_clip";
802 description { state: "default" 0.0;
804 rel1.relative: 0.0 0.0;
805 rel1.to: "elm.dragable.hbar";
806 rel2.relative: 0.0 1.0;
807 rel2.to: "scrollbar_handler_image_hor";
810 normal: "00_scroll_bar_handler_left.png";
816 part { name: "scrollbar_handler_image_hor";
817 clip_to: "sb_hbar_clip";
820 description { state: "default" 0.0;
822 rel1.relative: 0.5 0.5;
823 rel1.to: "elm.dragable.hbar";
824 rel2.relative: 0.5 0.5;
825 rel2.to: "elm.dragable.hbar";
827 min: SCROLLER_HANDLER_SCROLLBAR_HBAR_MIDDLE_MIN_SIZE_INC;
829 normal: "00_scroll_bar_handler_hor.png";
835 part { name: "h_scrollbar_handler_image_right";
836 clip_to: "sb_hbar_clip";
839 description { state: "default" 0.0;
841 rel1.relative: 1.0 0.0;
842 rel1.to: "scrollbar_handler_image_hor";
843 rel2.relative: 1.0 1.0;
844 rel2.to: "elm.dragable.hbar";
847 normal: "00_scroll_bar_handler_right.png";
853 part { name: "sb_hbar_over1";
854 clip_to: "sb_hbar_clip";
857 description { state: "default" 0.0;
858 rel1.to: "elm.dragable.hbar";
859 rel2.relative: 1.0 0.5;
860 rel2.to: "elm.dragable.hbar";
863 normal: "bt_sm_hilight.png";
869 part { name: "sb_hbar_over2";
870 clip_to: "sb_hbar_clip";
873 description { state: "default" 0.0;
874 rel1.to: "elm.dragable.hbar";
875 rel2.to: "elm.dragable.hbar";
878 normal: "bt_sm_shine.png";
884 part { name: "disabler";
887 description { state: "default" 0.0;
893 description { state: "disabled" 0.0;
894 inherit: "default" 0.0;
896 color: 128 128 128 128;
901 program { name: "load";
905 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
906 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
909 set_int(sbalways_v, 0);
910 set_int(sbalways_h, 0);
911 set_int(sbvis_timer, 0);
914 program { name: "vbar_show";
915 signal: "elm,action,show,vbar";
917 action: STATE_SET "default" 0.0;
918 target: "sb_vbar_clip_master";
920 program { name: "vbar_hide";
921 signal: "elm,action,hide,vbar";
923 action: STATE_SET "hidden" 0.0;
924 target: "sb_vbar_clip_master";
926 program { name: "vbar_show_always";
927 signal: "elm,action,show_always,vbar";
931 v = get_int(sbvis_v);
932 v |= get_int(sbalways_v);
934 set_int(sbalways_v, 1);
935 emit("do-show-vbar", "");
940 program { name: "vbar_show_notalways";
941 signal: "elm,action,show_notalways,vbar";
945 v = get_int(sbalways_v);
947 set_int(sbalways_v, 0);
948 v = get_int(sbvis_v);
950 emit("do-hide-vbar", "");
956 program { name: "vbar_press";
957 signal: "mouse,down,1";
958 source: "elm.dragable.vbar";
959 action: SIGNAL_EMIT "elm,vbar,press" "elm";
961 program { name: "vbar_unpress";
962 signal: "mouse,up,1";
963 source: "elm.dragable.vbar";
964 action: SIGNAL_EMIT "elm,vbar,unpress" "elm";
966 program { name: "sb_vbar_show";
967 signal: "do-show-vbar";
969 action: STATE_SET "default" 0.0;
970 transition: LINEAR 0.5;
971 target: "sb_vbar_clip";
973 program { name: "sb_vbar_hide";
974 signal: "do-hide-vbar";
976 action: STATE_SET "hidden" 0.0;
977 transition: LINEAR 0.5;
978 target: "sb_vbar_clip";
980 program { name: "hbar_show";
981 signal: "elm,action,show,hbar";
983 action: STATE_SET "default" 0.0;
984 target: "sb_hbar_clip_master";
986 program { name: "hbar_hide";
987 signal: "elm,action,hide,hbar";
989 action: STATE_SET "hidden" 0.0;
990 target: "sb_hbar_clip_master";
992 program { name: "hbar_show_always";
993 signal: "elm,action,show_always,hbar";
997 v = get_int(sbvis_h);
998 v |= get_int(sbalways_h);
1000 set_int(sbalways_h, 1);
1001 emit("do-show-hbar", "");
1002 set_int(sbvis_h, 1);
1006 program { name: "hbar_show_notalways";
1007 signal: "elm,action,show_notalways,hbar";
1011 v = get_int(sbalways_h);
1013 set_int(sbalways_h, 0);
1014 v = get_int(sbvis_h);
1016 emit("do-hide-hbar", "");
1017 set_int(sbvis_h, 0);
1022 program { name: "hbar_press";
1023 signal: "mouse,down,1";
1024 source: "elm.dragable.hbar";
1025 action: SIGNAL_EMIT "elm,hbar,press" "elm";
1027 program { name: "hbar_unpress";
1028 signal: "mouse,up,1";
1029 source: "elm.dragable.hbar";
1030 action: SIGNAL_EMIT "elm,hbar,unpress" "elm";
1032 program { name: "sb_hbar_show";
1033 signal: "do-show-hbar";
1035 action: STATE_SET "default" 0.0;
1036 transition: LINEAR 0.5;
1037 target: "sb_hbar_clip";
1039 program { name: "sb_hbar_hide";
1040 signal: "do-hide-hbar";
1042 action: STATE_SET "hidden" 0.0;
1043 transition: LINEAR 0.5;
1044 target: "sb_hbar_clip";
1047 program { name: "scroll";
1048 signal: "elm,action,scroll";
1052 v = get_int(sbvis_v);
1053 v |= get_int(sbalways_v);
1055 emit("do-show-vbar", "");
1056 set_int(sbvis_v, 1);
1058 v = get_int(sbvis_h);
1059 v |= get_int(sbalways_h);
1061 emit("do-show-hbar", "");
1062 set_int(sbvis_h, 1);
1064 v = get_int(sbvis_timer);
1065 if (v > 0) cancel_timer(v);
1066 v = timer(1.0, "timer0", 0);
1067 set_int(sbvis_timer, v);
1071 program { name: "highlight_show";
1072 signal: "elm,action,focus_highlight,show";
1074 action: STATE_SET "enabled" 0.0;
1075 transition: ACCELERATE 0.3;
1076 target: "focus_highlight";
1077 target: "conf_over";
1079 program { name: "highlight_hide";
1080 signal: "elm,action,focus_highlight,hide";
1082 action: STATE_SET "default" 0.0;
1083 transition: DECELERATE 0.3;
1084 target: "focus_highlight";
1085 target: "conf_over";
1087 program { name: "disable";
1088 signal: "elm,state,disabled";
1090 action: STATE_SET "disabled" 0.0;
1093 program { name: "enable";
1094 signal: "elm,state,enabled";
1096 action: STATE_SET "default" 0.0;
1102 group { name: "elm/genlist/base/default";
1103 alias: "elm/genscroller/base/default";
1104 alias: "elm/gengrid/base/default";
1105 alias: "elm/list/base/default";
1106 inherit: "elm/scroller/base/default";
1109 image: "00_overscrolling_top.png" COMP;
1110 image: "00_overscrolling_bottom.png" COMP;
1111 image: "00_overscrolling_left.png" COMP;
1112 image: "00_overscrolling_right.png" COMP;
1116 part { name: "shadow_clip";
1120 description { state: "default" 0.0;
1122 description { state: "hidden" 0.0;
1124 color: 255 255 255 0;
1127 part { name: "shadow_top";
1128 clip_to: "shadow_clip";
1132 description { state: "default" 0.0;
1136 color: 255 255 255 100;
1137 rel1.relative: 0.0 0.0;
1138 rel2.relative: 1.0 0.0;
1139 rel1.to: "elm.swallow.content";
1140 rel2.to: "elm.swallow.content";
1141 image.normal: "00_overscrolling_top.png";
1143 description { state: "edge" 0.0;
1144 inherit: "default" 0.0;
1145 color: 255 255 255 255;
1148 part { name: "shadow_bottom";
1149 clip_to: "shadow_clip";
1153 description { state: "default" 0.0;
1157 color: 255 255 255 100;
1158 rel1.relative: 0.0 1.0;
1159 rel2.relative: 1.0 1.0;
1160 rel1.to: "elm.swallow.content";
1161 rel2.to: "elm.swallow.content";
1162 image.normal: "00_overscrolling_bottom.png";
1164 description { state: "edge" 0.0;
1165 inherit: "default" 0.0;
1166 color: 255 255 255 255;
1169 part { name: "shadow_left";
1170 clip_to: "shadow_clip";
1174 description { state: "default" 0.0;
1178 color: 255 255 255 100;
1179 rel1.relative: 0.0 0.0;
1180 rel2.relative: 0.0 1.0;
1181 rel1.to: "elm.swallow.content";
1182 rel2.to: "elm.swallow.content";
1183 image.normal: "00_overscrolling_left.png";
1185 description { state: "edge" 0.0;
1186 inherit: "default" 0.0;
1187 color: 255 255 255 255;
1190 part { name: "shadow_right";
1191 clip_to: "shadow_clip";
1195 description { state: "default" 0.0;
1199 color: 255 255 255 100;
1200 rel1.relative: 1.0 0.0;
1201 rel2.relative: 1.0 1.0;
1202 rel1.to: "elm.swallow.content";
1203 rel2.to: "elm.swallow.content";
1204 image.normal: "00_overscrolling_right.png";
1206 description { state: "edge" 0.0;
1207 inherit: "default" 0.0;
1208 color: 255 255 255 255;
1211 part { name: "padding_jump_to_top";
1214 description { state: "default" 0.0;
1215 min: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1216 max: BUTTON_JUMP_TOP_PADDING_TO_SCROLLER_MIN_MAX_INC;
1217 rel1.relative: 1.0 0.0;
1218 rel2.relative: 1.0 0.0;
1219 rel1.to: "elm.swallow.content";
1220 rel2.to: "elm.swallow.content";
1225 part { name: "elm.swallow.jump_to_top";
1228 description { state: "default" 0.0;
1230 to: "padding_jump_to_top";
1234 to: "padding_jump_to_top";
1241 part { name: "padding_jump_to_left";
1244 description { state: "default" 0.0;
1245 min: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1246 max: BUTTON_JUMP_LEFT_PADDING_TO_SCROLLER_MIN_MAX_INC;
1247 rel1.relative: 0.0 1.0;
1248 rel2.relative: 0.0 1.0;
1249 rel1.to: "elm.swallow.content";
1250 rel2.to: "elm.swallow.content";
1255 part { name: "elm.swallow.jump_to_left";
1258 description { state: "default" 0.0;
1260 to: "padding_jump_to_left";
1264 to: "padding_jump_to_left";
1273 program { name: "load";
1275 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1276 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1277 set_state(PART:"shadow_clip", "hidden", 0.0);
1278 set_int(sbvis_h, 0);
1279 set_int(sbvis_v, 0);
1280 set_int(sbalways_v, 0);
1281 set_int(sbalways_h, 0);
1282 set_int(sbvis_timer, 0);
1284 set_int(sh_timer, 0);
1285 set_int(edge_timer, 0);
1288 program { name: "vshadow_show";
1289 signal: "do-show-vshadow";
1291 action: STATE_SET "default" 0.0;
1292 transition: LINEAR 0.5;
1293 target: "shadow_clip";
1295 program { name: "vshadow_hide";
1296 signal: "do-hide-vshadow";
1298 action: STATE_SET "hidden" 0.0;
1299 transition: LINEAR 0.5;
1300 target: "shadow_clip";
1302 program { name: "scroll";
1303 signal: "elm,action,scroll";
1307 v = get_int(sbvis_v);
1308 v |= get_int(sbalways_v);
1310 emit("do-show-vbar", "");
1311 set_int(sbvis_v, 1);
1313 v = get_int(sbvis_h);
1314 v |= get_int(sbalways_h);
1316 emit("do-show-hbar", "");
1317 set_int(sbvis_h, 1);
1319 v = get_int(sbvis_timer);
1320 if (v > 0) cancel_timer(v);
1321 v = timer(1, "timer0", 0);
1322 set_int(sbvis_timer, v);
1324 v = get_int(edge_timer);
1326 set_state(PART:"shadow_top", "default", 0.0);
1327 set_state(PART:"shadow_bottom", "default", 0.0);
1328 set_state(PART:"shadow_left", "default", 0.0);
1329 set_state(PART:"shadow_right", "default", 0.0);
1330 emit("do-show-vshadow", "");
1331 v = get_int(sh_timer);
1332 if (v > 0) cancel_timer(v);
1333 v = timer(0.2, "timer1", 0);
1334 set_int(sh_timer, v);
1338 program { name: "edge_top";
1339 signal: "elm,edge,top";
1343 program { name: "edge_bottom";
1344 signal: "elm,edge,bottom";
1348 program { name: "edge_left";
1349 signal: "elm,edge,left";
1353 program { name: "edge_right";
1354 signal: "elm,edge,right";
1358 program { name: "edge";
1361 v = get_int(sh_timer);
1362 if (v > 0) cancel_timer(v);
1363 set_state(PART:"shadow_top", "edge", 0.0);
1364 set_state(PART:"shadow_bottom", "edge", 0.0);
1365 set_state(PART:"shadow_left", "edge", 0.0);
1366 set_state(PART:"shadow_right", "edge", 0.0);
1367 v = get_int(edge_timer);
1369 emit("do-show-vshadow", "");
1371 if (v > 0) cancel_timer(v);
1372 v = timer(0.2, "timer2", 0);
1373 set_int(edge_timer, v);
1376 program { name: "show";
1381 emit("do-show-vbar", "");
1382 set_int(sbvis_v, 1);
1383 v = get_int(sbalways_v);
1385 v = get_int(sbvis_timer);
1386 if (v > 0) cancel_timer(v);
1387 v = timer(1.0, "timer0", 0);
1388 set_int(sbvis_timer, v);
1390 emit("do-show-hbar", "");
1391 set_int(sbvis_h, 1);
1392 v = get_int(sbalways_h);
1394 v = get_int(sbvis_timer);
1395 if (v > 0) cancel_timer(v);
1396 v = timer(1.0, "timer0", 0);
1397 set_int(sbvis_timer, v);
1404 group { name: "elm/genlist/base/handler";
1405 alias: "elm/genscroller/base/handler";
1406 alias: "elm/gengrid/base/handler";
1407 alias: "elm/list/base/handler";
1408 inherit: "elm/scroller/base/handler";
1411 image: "00_overscrolling_top.png" COMP;
1412 image: "00_overscrolling_bottom.png" COMP;
1413 image: "00_overscrolling_left.png" COMP;
1414 image: "00_overscrolling_right.png" COMP;
1418 part { name: "shadow_clip";
1422 description { state: "default" 0.0;
1424 description { state: "hidden" 0.0;
1426 color: 255 255 255 0;
1429 part { name: "shadow_top";
1430 clip_to: "shadow_clip";
1434 description { state: "default" 0.0;
1438 color: 255 255 255 100;
1439 rel1.relative: 0.0 0.0;
1440 rel2.relative: 1.0 0.0;
1441 rel1.to: "elm.swallow.content";
1442 rel2.to: "elm.swallow.content";
1443 image.normal: "00_overscrolling_top.png";
1445 description { state: "edge" 0.0;
1446 inherit: "default" 0.0;
1447 color: 255 255 255 255;
1450 part { name: "shadow_bottom";
1451 clip_to: "shadow_clip";
1455 description { state: "default" 0.0;
1459 color: 255 255 255 100;
1460 rel1.relative: 0.0 1.0;
1461 rel2.relative: 1.0 1.0;
1462 rel1.to: "elm.swallow.content";
1463 rel2.to: "elm.swallow.content";
1464 image.normal: "00_overscrolling_bottom.png";
1466 description { state: "edge" 0.0;
1467 inherit: "default" 0.0;
1468 color: 255 255 255 255;
1471 part { name: "shadow_left";
1472 clip_to: "shadow_clip";
1476 description { state: "default" 0.0;
1480 color: 255 255 255 100;
1481 rel1.relative: 0.0 0.0;
1482 rel2.relative: 0.0 1.0;
1483 rel1.to: "elm.swallow.content";
1484 rel2.to: "elm.swallow.content";
1485 image.normal: "00_overscrolling_left.png";
1487 description { state: "edge" 0.0;
1488 inherit: "default" 0.0;
1489 color: 255 255 255 255;
1492 part { name: "shadow_right";
1493 clip_to: "shadow_clip";
1497 description { state: "default" 0.0;
1501 color: 255 255 255 100;
1502 rel1.relative: 1.0 0.0;
1503 rel2.relative: 1.0 1.0;
1504 rel1.to: "elm.swallow.content";
1505 rel2.to: "elm.swallow.content";
1506 image.normal: "00_overscrolling_right.png";
1508 description { state: "edge" 0.0;
1509 inherit: "default" 0.0;
1510 color: 255 255 255 255;
1515 program { name: "load";
1519 set_state(PART:"sb_hbar_clip", "hidden", 0.0);
1520 set_state(PART:"sb_vbar_clip", "hidden", 0.0);
1521 set_state(PART:"shadow_clip", "hidden", 0.0);
1522 set_int(sbvis_h, 0);
1523 set_int(sbvis_v, 0);
1524 set_int(sbalways_v, 0);
1525 set_int(sbalways_h, 0);
1526 set_int(sbvis_timer, 0);
1527 set_int(sh_timer, 0);
1528 set_int(edge_timer, 0);
1531 program { name: "vbar_show_always";
1532 signal: "elm,action,show_always,vbar";
1536 v = get_int(sbvis_v);
1537 v |= get_int(sbalways_v);
1539 set_int(sbalways_v, 1);
1540 emit("do-show-vbar", "");
1541 set_int(sbvis_v, 1);
1545 program { name: "vbar_show_notalways";
1546 signal: "elm,action,show_notalways,vbar";
1550 v = get_int(sbalways_v);
1552 set_int(sbalways_v, 0);
1553 v = get_int(sbvis_v);
1555 emit("do-hide-vbar", "");
1556 set_int(sbvis_v, 0);
1561 program { name: "hbar_show_always";
1562 signal: "elm,action,show_always,hbar";
1566 v = get_int(sbvis_h);
1567 v |= get_int(sbalways_h);
1569 set_int(sbalways_h, 1);
1570 emit("do-show-hbar", "");
1571 set_int(sbvis_h, 1);
1575 program { name: "hbar_show_notalways";
1576 signal: "elm,action,show_notalways,hbar";
1580 v = get_int(sbalways_h);
1582 set_int(sbalways_h, 0);
1583 v = get_int(sbvis_h);
1585 emit("do-hide-hbar", "");
1586 set_int(sbvis_h, 0);
1591 program { name: "vshadow_show";
1592 signal: "do-show-vshadow";
1594 action: STATE_SET "default" 0.0;
1595 transition: LINEAR 0.5;
1596 target: "shadow_clip";
1598 program { name: "vshadow_hide";
1599 signal: "do-hide-vshadow";
1601 action: STATE_SET "hidden" 0.0;
1602 transition: LINEAR 0.5;
1603 target: "shadow_clip";
1605 program { name: "scroll";
1606 signal: "elm,action,scroll";
1610 v = get_int(sbvis_v);
1611 v |= get_int(sbalways_v);
1613 emit("do-show-vbar", "");
1614 set_int(sbvis_v, 1);
1616 v = get_int(sbvis_h);
1617 v |= get_int(sbalways_h);
1619 emit("do-show-hbar", "");
1620 set_int(sbvis_h, 1);
1622 v = get_int(sbvis_timer);
1623 if (v > 0) cancel_timer(v);
1624 v = timer(1.0, "timer0", 0);
1625 set_int(sbvis_timer, v);
1627 v = get_int(edge_timer);
1629 set_state(PART:"shadow_top", "default", 0.0);
1630 set_state(PART:"shadow_bottom", "default", 0.0);
1631 set_state(PART:"shadow_left", "default", 0.0);
1632 set_state(PART:"shadow_right", "default", 0.0);
1633 emit("do-show-vshadow", "");
1634 v = get_int(sh_timer);
1635 if (v > 0) cancel_timer(v);
1636 v = timer(0.2, "timer1", 0);
1637 set_int(sh_timer, v);
1641 program { name: "edge_top";
1642 signal: "elm,edge,top";
1646 program { name: "edge_bottom";
1647 signal: "elm,edge,bottom";
1651 program { name: "edge_left";
1652 signal: "elm,edge,left";
1656 program { name: "edge_right";
1657 signal: "elm,edge,right";
1661 program { name: "edge";
1664 v = get_int(sh_timer);
1665 if (v > 0) cancel_timer(v);
1666 set_state(PART:"shadow_top", "edge", 0.0);
1667 set_state(PART:"shadow_bottom", "edge", 0.0);
1668 set_state(PART:"shadow_left", "edge", 0.0);
1669 set_state(PART:"shadow_right", "edge", 0.0);
1670 v = get_int(edge_timer);
1672 emit("do-show-vshadow", "");
1674 if (v > 0) cancel_timer(v);
1675 v = timer(0.2, "timer2", 0);
1676 set_int(edge_timer, v);
1679 program { name: "show";
1684 emit("do-show-vbar", "");
1685 set_int(sbvis_v, 1);
1686 v = get_int(sbalways_v);
1688 v = get_int(sbvis_timer);
1689 if (v > 0) cancel_timer(v);
1690 v = timer(1.0, "timer0", 0);
1691 set_int(sbvis_timer, v);
1693 emit("do-show-hbar", "");
1694 set_int(sbvis_h, 1);
1695 v = get_int(sbalways_h);
1697 v = get_int(sbvis_timer);
1698 if (v > 0) cancel_timer(v);
1699 v = timer(1.0, "timer0", 0);
1700 set_int(sbvis_timer, v);