summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_grid.eo
diff options
context:
space:
mode:
authorSangHyeon Jade Lee <sh10233.lee@samsung.com>2018-11-20 14:32:31 +0900
committerSangHyeon Jade Lee <sh10233.lee@samsung.com>2018-11-20 14:32:31 +0900
commit4b5304d7f2b400064c0896f7510f31850912e5af (patch)
tree88acf361371894c82f5753a1a200e076177a6994 /src/lib/elementary/efl_ui_grid.eo
parent4f9c8d524c77fdd9eed30dc9ce211e0037efb9d4 (diff)
efl_ui_grid : introduce new packable grid widget for Efl.Ui.Widget
Summary: Introduce new packable grid for Efl.Ui.Widget toolkits. most of parts are same as Efl.Ui.List, and it also support Efl.Pack_Linear, although it will not support Efl.Pack_Table, because item must be arranged sequential orders. Test Plan: We will make the tests on efl ui test suite. please test by make check. Reviewers: Hermet, cedric, felipealmeida, eagleeye, woohyun Reviewed By: Hermet, eagleeye Subscribers: CHAN, bu5hm4n, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D6985
Diffstat (limited to 'src/lib/elementary/efl_ui_grid.eo')
-rw-r--r--src/lib/elementary/efl_ui_grid.eo96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_grid.eo b/src/lib/elementary/efl_ui_grid.eo
new file mode 100644
index 0000000000..7f92c0dc9f
--- /dev/null
+++ b/src/lib/elementary/efl_ui_grid.eo
@@ -0,0 +1,96 @@
1import efl_ui_grid_item;
2
3class Efl.Ui.Grid (Efl.Ui.Layout,
4 Efl.Ui.Scrollable_Interactive,
5 Efl.Ui.Scrollbar,
6 Efl.Pack_Linear, Efl.Pack_Layout,
7 Efl.Ui.Direction,
8 Efl.Ui.Clickable,
9 Efl.Ui.Selectable,
10 Efl.Ui.Multi_Selectable)
11{
12 [[Simple grid widget with Pack interface.]]
13 methods {
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 @warn_unused; [[Iterator covered by selected items list.
47 user have to free the iterator after used.]]
48 }
49 }
50 implements {
51 //Efl.Object
52 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.Direction.direction { 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.Pack.pack_padding { get; set; }
88 Efl.Pack.pack_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}