2019-09-25 08:03:27 -07:00
|
|
|
class Efl.Composite_Model extends Efl.Loop_Model implements Efl.Ui.View
|
2017-10-25 15:17:28 -07:00
|
|
|
{
|
2019-01-03 14:54:18 -08:00
|
|
|
[[Efl model for all composite class which provide a unified API to set source of data.
|
|
|
|
|
2019-10-14 00:55:52 -07:00
|
|
|
This class also provide an @Efl.Model.property "child.index" that match the value of @.index.
|
|
|
|
|
|
|
|
@since 1.23
|
|
|
|
]]
|
2019-01-03 14:54:18 -08:00
|
|
|
methods {
|
|
|
|
@property index {
|
2019-07-31 05:24:53 -07:00
|
|
|
[[Position of this object in the parent model.
|
|
|
|
|
|
|
|
It can only be set before the object is finalized but after the Model it composes is set
|
|
|
|
(and only if that Model does not provide an index already).
|
|
|
|
It can only be retrieved after the object has been finalized.
|
|
|
|
]]
|
2019-01-03 14:54:18 -08:00
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2019-07-31 05:24:53 -07:00
|
|
|
index: uint; [[Index of the object in the parent model. The index is unique and starts from zero.]]
|
2019-01-03 14:54:18 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-10-25 15:17:28 -07:00
|
|
|
implements {
|
|
|
|
Efl.Object.destructor;
|
2019-02-27 18:17:30 -08:00
|
|
|
Efl.Object.invalidate;
|
2017-10-25 15:17:28 -07:00
|
|
|
Efl.Object.finalize;
|
|
|
|
Efl.Ui.View.model { set; get; }
|
|
|
|
Efl.Model.property { set; get; }
|
|
|
|
Efl.Model.properties { get; }
|
|
|
|
Efl.Model.children_count { get; }
|
|
|
|
Efl.Model.children_slice_get;
|
|
|
|
Efl.Model.child_add;
|
|
|
|
Efl.Model.child_del;
|
|
|
|
}
|
2019-01-03 14:54:18 -08:00
|
|
|
constructors {
|
2019-02-07 09:02:21 -08:00
|
|
|
.index @optional;
|
|
|
|
Efl.Ui.View.model;
|
2019-01-03 14:54:18 -08:00
|
|
|
}
|
2017-10-25 15:17:28 -07:00
|
|
|
}
|