summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_ui_factory.eo
blob: 45be8aab80bdb9c87181383d3dbbcb4ce0a87fe1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
struct Efl.Ui.Factory_Item_Created_Event {
   [[EFL Ui Factory event structure provided when an item was just created.]]
   model: Efl.Model; [[The model already set on the new item.]]
   item: Efl.Gfx.Entity; [[The item that was just created.]]
}

interface Efl.Ui.Factory extends Efl.Ui.Model.Connect
{
   [[Efl UI factory interface]]
   methods {
      create {
         [[Create a UI object from the necessary properties in the specified model.]]
         params {
            model: Efl.Model; [[Efl model]]
            parent: Efl.Gfx.Entity; [[Efl canvas]]
         }
         return: future<Efl.Gfx.Entity>; [[Created UI object]]
      }
      release {
         [[Release a UI object and disconnect from models.]]
         params {
            ui_view: Efl.Gfx.Entity; [[Efl canvas]]
         }
      }
      model_connect {
         [[Connect factory to a model]]
         params {
            name: string; [[Model name]]
            factory: Efl.Ui.Factory; [[Efl factory]]
         }
      }
   }
   events {
      created: Efl.Ui.Factory_Item_Created_Event; [[Event triggered when an item has been successfully created.]]
   }
}