aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/elm_grid.eo
blob: db3397cfe9d0a83d6af39d367e5229d9bf16f9ce (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
class Elm.Grid (Elm.Widget)
{
   legacy_prefix: elm_grid;
   eo_prefix: elm_obj_grid;
   data: null;
   methods {
      @property size {
         set {
            [[Set the virtual size of the grid]]
         }
         get {
            [[Get the virtual size of the grid]]
         }
         values {
            w: Evas.Coord; [[The virtual width of the grid]]
            h: Evas.Coord; [[The virtual height of the grid]]
         }
      }
      @property children {
         get {
            [[Get the list of the children for the grid.

              Note: This is a duplicate of the list kept by the grid internally.
              It's up to the user to destroy it when it no longer needs it.
              It's possible to remove objects from the grid when walking this
              list, but these removals won't be reflected on it.
            ]]
            return: free(own(list<Evas.Object>), eina_list_free) @warn_unused;
         }
      }
      clear {
         [[Faster way to remove all child objects from a grid object.]]
         params {
            @in clear: bool; [[If true, it will delete just removed children]]
         }
      }
      unpack {
         [[Unpack a child from a grid object]]
         params {
            @in subobj: Evas.Object; [[The child to unpack]]
         }
      }
      pack {
         [[Pack child at given position and size]]
         params {
            @in subobj: Evas.Object; [[The child to pack.]]
            @in x: Evas.Coord; [[The virtual x coord at which to pack it.]]
            @in y: Evas.Coord; [[The virtual y coord at which to pack it.]]
            @in w: Evas.Coord; [[The virtual width at which to pack it.]]
            @in h: Evas.Coord; [[The virtual height at which to pack it.]]
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Efl.Canvas.Group.group_add;
      Efl.Canvas.Group.group_del;
      Elm.Widget.focus_direction;
      Elm.Widget.focus_next_manager_is;
      Elm.Widget.focus_next;
      Elm.Widget.focus_direction_manager_is;
      Elm.Widget.theme_apply;
   }

}