2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Boolean_Model extends Efl.Composite_Model
|
2016-06-20 14:50:38 -07:00
|
|
|
{
|
2019-09-13 05:04:46 -07:00
|
|
|
[[@Efl.Model that efficiently stores boolean properties (they can only be $true or $false).
|
|
|
|
|
|
|
|
Internally the values are stored in a compact bit buffer, taking up minimum memory.
|
|
|
|
An example usage is @Efl.Ui.Select_Model.
|
|
|
|
]]
|
2016-06-20 14:50:38 -07:00
|
|
|
methods {
|
2017-10-25 18:02:01 -07:00
|
|
|
boolean_add {
|
2019-09-13 05:04:46 -07:00
|
|
|
[[Adds a new named boolean property with a default value.]]
|
2016-06-20 14:50:38 -07:00
|
|
|
params {
|
2019-09-13 05:04:46 -07:00
|
|
|
@in name: string; [[The name of the new boolean property.]]
|
|
|
|
@in default_value: bool; [[Default value for new boolean property.]]
|
2019-10-29 06:56:01 -07:00
|
|
|
}
|
2017-10-25 18:02:01 -07:00
|
|
|
}
|
|
|
|
boolean_del {
|
2019-09-13 05:04:46 -07:00
|
|
|
[[Deletes an existing named boolean property.]]
|
2017-10-25 18:02:01 -07:00
|
|
|
params {
|
2019-09-13 05:04:46 -07:00
|
|
|
@in name: string; [[Name of the property to be deleted.]]
|
2019-10-29 06:56:01 -07:00
|
|
|
}
|
2016-06-20 14:50:38 -07:00
|
|
|
}
|
2019-04-03 14:23:01 -07:00
|
|
|
boolean_iterator_get {
|
2019-09-13 05:04:46 -07:00
|
|
|
[[Gets an iterator that will quickly find all the indices with the requested value for a specific property.]]
|
2019-04-03 14:23:01 -07:00
|
|
|
params {
|
2019-09-13 05:04:46 -07:00
|
|
|
@in name: string; [[The name of the property to examine.]]
|
|
|
|
@in request: bool; [[The value to look for.]]
|
2019-04-03 14:23:01 -07:00
|
|
|
}
|
2019-11-29 05:48:09 -08:00
|
|
|
return: iterator<uint64> @move; [[The iterator that is valid until any change is made on the model.]]
|
2019-04-03 14:23:01 -07:00
|
|
|
}
|
2016-06-20 14:50:38 -07:00
|
|
|
}
|
|
|
|
implements {
|
2019-01-03 14:54:18 -08:00
|
|
|
Efl.Model.properties { get; }
|
|
|
|
Efl.Model.property { get; set; }
|
2017-10-25 18:02:01 -07:00
|
|
|
Efl.Object.constructor;
|
2016-06-20 14:50:38 -07:00
|
|
|
Efl.Object.destructor;
|
|
|
|
}
|
|
|
|
}
|