summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_relative_container.eo
blob: e4eb219d4f2dfdb4e3b40e69e65d3efdde6b2c7b (plain)
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
86
87
88
89
90
91
92
93
94
import efl_gfx_types;
class Efl.Ui.Relative_Container extends Efl.Ui.Widget implements Efl.Pack_Layout, Efl.Pack
{
   [[The relative container class.

     A relative container calculates the size and position of all the children
     based on their relationship to each other.]]
   methods {
      @property relation_left {
         [[Specifies the left side edge of the $child object relative to the $base object.
           When $relative_position is 0 the left edges of the two objects are aligned.
           When $relative_position is 1 the left edge of the $child object is aligned
           to the right edge of the $base object.]]
         keys {
            child: Efl.Gfx.Entity; [[The child object whose size and position is
                                     being changed.]]
         }
         values {
            base: Efl.Gfx.Entity; [[The object whose size and position is being used as reference.
                                    $NULL means that the container object is used
                                    (this is the default value).]]
            relative_position: Efl.Gfx.Align(0.0); [[The ratio between left and right of the base,
                                                     ranging from 0.0 to 1.0.]]
         }
      }
      @property relation_right {
         [[Specifies the right side edge of the $child object relative to the $base object.
           When $relative_position is 0 the right edge of the $child object is aligned
           to the left edge of the $base object.
           When $relative_position is 1 the right edges of the two objects are aligned.]]
         keys {
            child: Efl.Gfx.Entity; [[The child object whose size and position is
                                     being changed.]]
         }
         values {
            base: Efl.Gfx.Entity; [[The object whose size and position is being used as reference.
                                    $NULL means that the container object is used
                                    (this is the default value).]]
            relative_position: Efl.Gfx.Align(1.0); [[The ratio between left and right of the base,
                                                     ranging from 0.0 to 1.0.]]
         }
      }
      @property relation_top {
         [[Specifies the top side edge of the $child object relative to the $base object.
           When $relative_position is 0 the top edges of the two objects are aligned.
           When $relative_position is 1 the top edge of the $child object is aligned
           to the bottom edge of the $base object.]]
         keys {
            child: Efl.Gfx.Entity; [[The child object whose size and position is
                                     being changed.]]
         }
         values {
            base: Efl.Gfx.Entity; [[The object whose size and position is being used as reference.
                                    $NULL means that the container object is used
                                    (this is the default value).]]
            relative_position: Efl.Gfx.Align(0.0); [[The ratio between top and bottom of the base,
                                                     ranging from 0.0 to 1.0.]]
         }
      }
      @property relation_bottom {
         [[Specifies the bottom side edge of the $child object relative to the $base object.
           When $relative_position is 0 the bottom edge of the $child object is aligned
           to the top edge of the $base object.
           When $relative_position is 1 the bottom edges of the two objects are aligned.]]
         keys {
            child: Efl.Gfx.Entity; [[The child object whose size and position is
                                     being changed.]]
         }
         values {
            base: Efl.Gfx.Entity; [[The object whose size and position is being used as reference.
                                    $NULL means that the container object is used
                                    (this is the default value).]]
            relative_position: Efl.Gfx.Align(1.0); [[The ratio between top and bottom of the base,
                                                     ranging from 0.0 to 1.0.]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.invalidate;
      Efl.Object.destructor;
      Efl.Canvas.Group.group_calculate;
      Efl.Pack.pack_clear;
      Efl.Pack.unpack_all;
      Efl.Pack.unpack;
      Efl.Pack.pack;
      Efl.Container.content_iterate;
      Efl.Container.content_count;
      Efl.Gfx.Entity.position { set; }
      Efl.Gfx.Entity.size { set; }
      Efl.Pack_Layout.layout_update;
      Efl.Pack_Layout.layout_request;
   }
}