summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_pack_grid.eo
blob: 9b2b184ca04446c579628808a6887f0d53532386 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import efl_gfx_types;

interface Efl.Pack_Grid (Efl.Pack_Linear)
{
   [[2D containers aligned on a grid with rows and columns]]
   legacy_prefix: null;
   eo_prefix: efl_pack;
   methods {
      pack_grid {
         params {
            subobj: own(Efl.Gfx.Base *);
            col: int;
            row: int;
            colspan: int @optional; [[0 means 1, -1 means @.grid_columns]]
            rowspan: int @optional; [[0 means 1, -1 means @.grid_rows]]
         }
         return: bool;
      }
      grid_contents_get {
         [[Returns all objects at a given position in this grid.]]
         return: free(own(iterator<Efl.Gfx.Base *> *), eina_iterator_free);
         params {
            @in col: int;
            @in row: int;
            @in below: bool @optional; [[If $true get objects spanning over this cell.]]
         }
      }
      grid_content_get {
         [[Returns a child at a given position, see @.grid_contents_get.]]
         return: Efl.Gfx.Base*;
         params {
            @in col: int;
            @in row: int;
         }
      }
      @property grid_position {
         [[position and span of the $subobj in this container, may be modified to move the $subobj]]
         get { return: bool; [[returns false if item is not a child]] }
         keys {
            subobj: Efl.Gfx.Base*;
         }
         values {
            col: int;
            row: int;
            colspan: int;
            rowspan: int;
         }
      }
      @property grid_size {
         [[Combines @.grid_columns and @.grid_rows]]
         set {}
         get {}
         values {
            cols: int;
            rows: int;
         }
      }
      @property grid_columns {
         set { [[Specifies limit for linear adds - if direction is horizontal]] }
         get {}
         values {
            cols: int;
         }
      }
      @property grid_rows {
         set { [[Specifies limit for linear adds - if direction is vertical]] }
         get {}
         values {
            rows: int;
         }
      }
      @property grid_directions {
         [[Primary and secondary up/left/right/down orientations for linear apis.

           Default is right and down. Overrides @Efl.Pack_Linear.pack_direction.
         ]]
         set {}
         get {}
         values {
            primary: Efl.Orient;
            secondary: Efl.Orient;
         }
      }
   }
}