2019-01-18 05:22:23 -08:00
|
|
|
class Elm.Grid extends Efl.Ui.Widget implements Efl.Ui.Focus.Composition, Efl.Ui.Legacy
|
2014-03-23 02:46:17 -07:00
|
|
|
{
|
2016-11-24 02:44:04 -08:00
|
|
|
[[Elementary grid class]]
|
2016-05-12 09:06:04 -07:00
|
|
|
legacy_prefix: elm_grid;
|
2014-03-23 02:46:17 -07:00
|
|
|
eo_prefix: elm_obj_grid;
|
|
|
|
data: null;
|
2015-05-07 09:32:53 -07:00
|
|
|
methods {
|
2018-02-14 18:14:52 -08:00
|
|
|
@property grid_size {
|
2014-03-23 02:46:17 -07:00
|
|
|
set {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Set the virtual size of the grid]]
|
2018-02-14 18:14:52 -08:00
|
|
|
legacy: elm_grid_size_set;
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
get {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Get the virtual size of the grid]]
|
2018-02-14 18:14:52 -08:00
|
|
|
legacy: elm_grid_size_get;
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
values {
|
2017-05-15 01:23:11 -07:00
|
|
|
w: int; [[The virtual width of the grid]]
|
|
|
|
h: int; [[The virtual height of the grid]]
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 09:32:53 -07:00
|
|
|
@property children {
|
2014-03-23 02:46:17 -07:00
|
|
|
get {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Get the list of the children for the grid.
|
2014-03-23 02:46:17 -07:00
|
|
|
|
2015-07-31 07:46:21 -07:00
|
|
|
Note: This is a duplicate of the list kept by the grid internally.
|
|
|
|
It's up to the user to destroy it when it no longer needs it.
|
|
|
|
It's possible to remove objects from the grid when walking this
|
|
|
|
list, but these removals won't be reflected on it.
|
|
|
|
]]
|
2017-09-15 08:05:30 -07:00
|
|
|
return: list<Efl.Canvas.Object> @owned @warn_unused; [[List of children]]
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
clear {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Faster way to remove all child objects from a grid object.]]
|
2014-03-23 02:46:17 -07:00
|
|
|
params {
|
2016-11-24 02:44:04 -08:00
|
|
|
@in clear: bool; [[If $true, it will delete just removed children]]
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
unpack {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Unpack a child from a grid object]]
|
2014-03-23 02:46:17 -07:00
|
|
|
params {
|
2016-06-20 21:26:15 -07:00
|
|
|
@in subobj: Efl.Canvas.Object; [[The child to unpack]]
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
pack {
|
2015-07-31 07:46:21 -07:00
|
|
|
[[Pack child at given position and size]]
|
2014-03-23 02:46:17 -07:00
|
|
|
params {
|
2016-06-20 21:26:15 -07:00
|
|
|
@in subobj: Efl.Canvas.Object; [[The child to pack.]]
|
2017-05-15 01:23:11 -07:00
|
|
|
@in x: int; [[The virtual x coord at which to pack it.]]
|
|
|
|
@in y: int; [[The virtual y coord at which to pack it.]]
|
|
|
|
@in w: int; [[The virtual width at which to pack it.]]
|
|
|
|
@in h: int; [[The virtual height at which to pack it.]]
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 02:47:39 -07:00
|
|
|
class.constructor;
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
2018-01-07 20:55:35 -08:00
|
|
|
Efl.Ui.Widget.theme_apply;
|
2017-10-15 08:08:35 -07:00
|
|
|
Efl.Ui.Focus.Composition.prepare;
|
2014-03-23 02:46:17 -07:00
|
|
|
}
|
|
|
|
}
|