2017-01-31 12:17:58 -08:00
|
|
|
interface Efl.Ui.Factory (Efl.Ui.Model.Connect)
|
|
|
|
{
|
2017-02-09 05:43:37 -08:00
|
|
|
[[Efl UI factory interface]]
|
2017-01-31 12:17:58 -08:00
|
|
|
methods {
|
|
|
|
create {
|
|
|
|
[[Create a UI object from the necessary properties in the specified model.]]
|
|
|
|
params {
|
2017-02-09 05:43:37 -08:00
|
|
|
model: Efl.Model; [[Efl model]]
|
2018-04-05 01:47:26 -07:00
|
|
|
parent: Efl.Gfx.Entity; [[Efl canvas]]
|
2017-01-31 12:17:58 -08:00
|
|
|
}
|
2018-12-07 02:26:54 -08:00
|
|
|
return: future<Efl.Gfx.Entity>; [[Created UI object]]
|
2017-01-31 12:17:58 -08:00
|
|
|
}
|
|
|
|
release {
|
2017-02-09 05:43:37 -08:00
|
|
|
[[Release a UI object and disconnect from models.]]
|
2017-01-31 12:17:58 -08:00
|
|
|
params {
|
2018-04-05 01:47:26 -07:00
|
|
|
ui_view: Efl.Gfx.Entity; [[Efl canvas]]
|
2017-01-31 12:17:58 -08:00
|
|
|
}
|
|
|
|
}
|
2018-02-14 18:14:52 -08:00
|
|
|
model_connect {
|
|
|
|
[[Connect factory to a model]]
|
|
|
|
params {
|
|
|
|
name: string; [[Model name]]
|
|
|
|
factory: Efl.Ui.Factory; [[Efl factory]]
|
|
|
|
}
|
|
|
|
}
|
2017-01-31 12:17:58 -08:00
|
|
|
}
|
|
|
|
}
|