efl/src/lib/eio/eio_model.eo

58 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-10-25 18:04:31 -07:00
import eina_types;
function EflIoFilter {
[[EflIoFilter function]]
params {
@in model: Eio.Model;
@in entry: ptr(Eina.File.Direct.Info);
}
return: int;
};
class Eio.Model (Efl.Object, Efl.Model)
2015-04-05 06:19:45 -07:00
{
[[Eio model class]]
2015-04-05 06:19:45 -07:00
methods {
children_filter_set {
[[Set children filter callback.
This function sets, along with user's private data userdata,
the Eio's Eio_Filter_Direct_Cb which is a mid-step before
receiving the real data. Once in filter callback we can decide,
by returning either EINA_FALSE, to abort the notification or
EINA_TRUE to keep it.
See also @Efl.Model.children_slice_get.
@since 1.11
]]
params {
2017-10-25 18:04:31 -07:00
filter: EflIoFilter; [[Filter callback]]
}
2015-04-05 06:19:45 -07:00
}
2017-10-25 18:04:31 -07:00
@property path {
[[ Define the root path of a model.
2015-04-05 06:19:45 -07:00
@since 1.11
]]
2017-10-25 18:04:31 -07:00
set { [[ Only possible during construction. ]] }
get { }
values {
path: string; [[ Root path of the model. ]]
2015-04-05 06:19:45 -07:00
}
}
}
implements {
2017-10-25 18:04:31 -07:00
Efl.Object.finalize;
Efl.Object.invalidate;
Efl.Object.destructor;
Efl.Model.properties { get; }
2017-10-25 18:04:31 -07:00
Efl.Model.property { set; get; }
Efl.Model.child_add;
Efl.Model.child_del;
Efl.Model.children_slice_get;
2017-10-25 18:04:31 -07:00
Efl.Model.children_count { get; }
2015-04-05 06:19:45 -07:00
}
}