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
2018-11-19 21:32:31 -08:00
|
|
|
import efl_ui_grid_item;
|
|
|
|
|
2019-02-28 07:23:11 -08:00
|
|
|
class @beta Efl.Ui.Grid extends Efl.Ui.Layout_Base implements
|
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
2018-11-19 21:32:31 -08:00
|
|
|
Efl.Ui.Scrollable_Interactive,
|
|
|
|
Efl.Ui.Scrollbar,
|
|
|
|
Efl.Pack_Linear, Efl.Pack_Layout,
|
2019-05-24 09:30:31 -07:00
|
|
|
Efl.Ui.Layout_Orientable,
|
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
2018-11-19 21:32:31 -08:00
|
|
|
Efl.Ui.Selectable,
|
2019-04-24 06:41:39 -07:00
|
|
|
Efl.Ui.Multi_Selectable,
|
|
|
|
Efl.Gfx.Arrangement
|
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
2018-11-19 21:32:31 -08:00
|
|
|
{
|
|
|
|
[[Simple grid widget with Pack interface.]]
|
|
|
|
methods {
|
|
|
|
@property item_size {
|
|
|
|
[[Property data of item size.]]
|
|
|
|
set {}
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
size: Eina.Size2D; [[last selected item of grid.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
item_scroll {
|
|
|
|
[[scroll move the item to show in the viewport.]]
|
|
|
|
params {
|
|
|
|
@in item: Efl.Ui.Grid_Item; [[Target item.]]
|
|
|
|
@in animation: bool; [[Boolean value for animation of scroll move.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
item_scroll_align {
|
|
|
|
[[scroll move the item to show at the align position of the viewport.]]
|
|
|
|
params {
|
|
|
|
@in item: Efl.Ui.Grid_Item; [[Target item.]]
|
|
|
|
@in align: double; [[align value in Viewport.]]
|
|
|
|
@in animation: bool; [[Boolean value for animation of scroll move.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property last_selected_item {
|
|
|
|
[[Property data of last selected item.]]
|
|
|
|
get {}
|
|
|
|
values {
|
|
|
|
item: Efl.Ui.Grid_Item; [[last selected item of grid.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selected_items_get {
|
|
|
|
[[Get the selected items iterator. The iterator sequence will be decided by selection.]]
|
2019-05-26 08:41:22 -07:00
|
|
|
return: iterator<Efl.Ui.Grid_Item> @owned @no_unused; [[Iterator covered by selected items list.
|
|
|
|
user have to free the iterator after used.]]
|
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
2018-11-19 21:32:31 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
//Efl.Object
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.finalize;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
Efl.Object.invalidate;
|
|
|
|
|
|
|
|
//Efl.Canvas
|
|
|
|
Efl.Canvas.Group.group_calculate;
|
|
|
|
//Efl.Container
|
|
|
|
Efl.Container.content_iterate;
|
|
|
|
Efl.Container.content_count;
|
|
|
|
|
2019-05-24 09:30:31 -07:00
|
|
|
Efl.Ui.Layout_Orientable.orientation { get; set; }
|
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
2018-11-19 21:32:31 -08:00
|
|
|
|
|
|
|
//Efl.Ui.Widget
|
|
|
|
Efl.Ui.Widget.theme_apply;
|
|
|
|
|
|
|
|
//Efl.Ui.Focus
|
|
|
|
//Efl.Ui.Focus.Object.on_focus_update;
|
|
|
|
|
|
|
|
//Efl.Pack
|
|
|
|
Efl.Pack.pack_clear;
|
|
|
|
Efl.Pack.unpack_all;
|
|
|
|
Efl.Pack.unpack;
|
|
|
|
Efl.Pack.pack;
|
|
|
|
Efl.Pack_Linear.pack_end;
|
|
|
|
|
|
|
|
Efl.Pack_Linear.pack_begin;
|
|
|
|
Efl.Pack_Linear.pack_before;
|
|
|
|
Efl.Pack_Linear.pack_after;
|
|
|
|
Efl.Pack_Linear.pack_at;
|
|
|
|
Efl.Pack_Linear.pack_unpack_at;
|
|
|
|
Efl.Pack_Linear.pack_index_get;
|
|
|
|
Efl.Pack_Linear.pack_content_get;
|
|
|
|
Efl.Pack_Layout.layout_update;
|
|
|
|
Efl.Pack_Layout.layout_request;
|
2019-04-24 06:41:39 -07:00
|
|
|
Efl.Gfx.Arrangement.content_padding { get; set; }
|
|
|
|
Efl.Gfx.Arrangement.content_align { get; set; }
|
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
2018-11-19 21:32:31 -08:00
|
|
|
|
|
|
|
//Efl.Ui.Scrollable
|
|
|
|
Efl.Ui.Scrollable_Interactive.match_content { set; }
|
|
|
|
|
|
|
|
//Efl.Ui.Multi_Selectable
|
|
|
|
Efl.Ui.Multi_Selectable.select_mode {get; set;}
|
|
|
|
}
|
2019-01-23 11:55:44 -08:00
|
|
|
composite {
|
|
|
|
Efl.Ui.Scrollable_Interactive;
|
|
|
|
Efl.Ui.Scrollbar;
|
|
|
|
}
|
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
2018-11-19 21:32:31 -08:00
|
|
|
}
|