forked from enlightenment/efl
34 lines
1.1 KiB
Plaintext
34 lines
1.1 KiB
Plaintext
function @beta EflFilterModel {
|
|
[[EflFilterModel function]]
|
|
params {
|
|
parent: Efl.Filter_Model; [[This object can be used to know when to cancel the future.]]
|
|
child: Efl.Model; [[You must reference this object for the duration of your use of it as the caller will not do
|
|
that for you.]]
|
|
}
|
|
return: future<bool>; [[$true if the model should be kept.]]
|
|
};
|
|
|
|
class @beta Efl.Filter_Model extends Efl.Composite_Model
|
|
{
|
|
[[Filtering data that @Efl.Model provides is the main feature of this class.
|
|
This class provides a filter function so only children that match it are returned.]]
|
|
methods {
|
|
filter_set {
|
|
[[Set a filter function that will catch children from the composited model.]]
|
|
params {
|
|
filter: EflFilterModel; [[Filter callback.]]
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.destructor;
|
|
Efl.Model.children_slice_get;
|
|
Efl.Model.children_count { get; }
|
|
Efl.Model.property { get; }
|
|
Efl.Composite_Model.index { get; }
|
|
}
|
|
constructors {
|
|
.filter_set;
|
|
}
|
|
}
|