summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_list.eo
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-07-24 15:06:09 +0200
committerCedric BAIL <cedric.bail@free.fr>2019-07-24 12:05:08 -0700
commit59d684284b80f6ee56d39ceff34b7ad360877902 (patch)
treedc5c611aa7664fa71b85a91a59483044821898c1 /src/lib/elementary/efl_ui_list.eo
parenta6543fb68f411f98eb841ed922124d411e7e2a48 (diff)
efl_ui_list: make it work with item_container
This also refactors the example a little bit. Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D9385
Diffstat (limited to 'src/lib/elementary/efl_ui_list.eo')
-rw-r--r--src/lib/elementary/efl_ui_list.eo82
1 files changed, 1 insertions, 81 deletions
diff --git a/src/lib/elementary/efl_ui_list.eo b/src/lib/elementary/efl_ui_list.eo
index 72098a1..cf99aad 100644
--- a/src/lib/elementary/efl_ui_list.eo
+++ b/src/lib/elementary/efl_ui_list.eo
@@ -1,89 +1,9 @@
1import efl_ui_list_item; 1import efl_ui_list_item;
2 2
3class @beta Efl.Ui.List extends Efl.Ui.Layout_Base implements 3class @beta Efl.Ui.List extends Efl.Ui.Item_Container
4 Efl.Ui.Scrollable_Interactive,
5 Efl.Ui.Scrollbar,
6 Efl.Pack_Linear, Efl.Pack_Layout,
7 Efl.Ui.Selectable,
8 Efl.Ui.Multi_Selectable,
9 Efl.Gfx.Arrangement
10{ 4{
11 [[Simple list widget with Pack interface.]] 5 [[Simple list widget with Pack interface.]]
12 methods {
13 item_scroll {
14 [[scroll move the item to show in the viewport.]]
15 params {
16 @in item: Efl.Ui.List_Item; [[Target item.]]
17 @in animation: bool; [[Boolean value for animation of scroll move.]]
18 }
19 }
20 item_scroll_align {
21 [[scroll move the item to show at the align position of the viewport.]]
22 params {
23 @in item: Efl.Ui.List_Item; [[Target item.]]
24 @in align: double; [[align value in Viewport.]]
25 @in animation: bool; [[Boolean value for animation of scroll move.]]
26 }
27 }
28 @property last_selected_item {
29 [[Property data of last selected item.]]
30 get {}
31 values {
32 return: Efl.Ui.List_Item; [[last selected item of list.]]
33 }
34 }
35 selected_items_get {
36 [[Get the selected items iterator. The iterator sequence will be decided by selection.]]
37 return: iterator<Efl.Ui.List_Item> @owned @no_unused; [[Iterator covered by selected items list.
38 user have to free the iterator after used.]]
39 }
40 }
41 implements { 6 implements {
42 //Efl.Object
43 Efl.Object.constructor; 7 Efl.Object.constructor;
44 Efl.Object.finalize;
45 Efl.Object.invalidate;
46
47 //Efl.Canvas
48 Efl.Canvas.Group.group_calculate;
49
50 //Efl.Container
51 Efl.Container.content_iterate;
52 Efl.Container.content_count;
53
54 //Efl.Ui.Layout_Orientable.orientation { get; set; } //TODO
55
56 //Efl.Ui.Widget
57 Efl.Ui.Widget.theme_apply;
58
59 //Efl.Ui.Focus
60 //Efl.Ui.Focus.Object.on_focus_update;
61
62 //Efl.Pack
63 Efl.Pack.pack_clear;
64 Efl.Pack.unpack_all;
65 Efl.Pack.unpack;
66 Efl.Pack.pack;
67 Efl.Pack_Linear.pack_begin;
68 Efl.Pack_Linear.pack_end;
69 Efl.Pack_Linear.pack_before;
70 Efl.Pack_Linear.pack_after;
71 Efl.Pack_Linear.pack_at;
72 Efl.Pack_Linear.pack_content_get;
73 Efl.Pack_Linear.pack_unpack_at;
74 Efl.Pack_Linear.pack_index_get;
75 Efl.Pack_Layout.layout_update;
76 Efl.Pack_Layout.layout_request;
77 Efl.Gfx.Arrangement.content_padding { get; set; }
78
79 //Efl.Ui.Scrollable
80 Efl.Ui.Scrollable_Interactive.match_content { set; }
81
82 //Efl.Ui.Multi_Selectable
83 Efl.Ui.Multi_Selectable.select_mode {get; set;}
84 }
85 composite {
86 Efl.Ui.Scrollable_Interactive;
87 Efl.Ui.Scrollbar;
88 } 8 }
89} 9}