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