aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_box.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-09 22:36:29 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-10 14:42:08 +0900
commitb1488b98ded09ff510b56b4fe18a7a30f146167b (patch)
tree088addb73bd605d13bdb3e4a218f5d860b8d1635 /src/lib/elementary/efl_ui_box.eo
parentevas: Modify wheel events direction to bool (EO) (diff)
downloadefl-b1488b98ded09ff510b56b4fe18a7a30f146167b.tar.gz
efl.ui.box: Switch to Efl.Ui.Dir (EO)
This makes the default box vertical, just like in legacy. The flow box is horizontal by default. Ref https://phab.enlightenment.org/T5870
Diffstat (limited to 'src/lib/elementary/efl_ui_box.eo')
-rw-r--r--src/lib/elementary/efl_ui_box.eo19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_box.eo b/src/lib/elementary/efl_ui_box.eo
index 71d963af3a..b3440ac86e 100644
--- a/src/lib/elementary/efl_ui_box.eo
+++ b/src/lib/elementary/efl_ui_box.eo
@@ -1,7 +1,20 @@
class Efl.Ui.Box (Elm.Widget, Efl.Pack.Linear, Efl.Pack.Layout,
- Efl.Orientation)
+ Efl.Ui.Direction)
{
- [[Efl UI box class]]
+ [[The box widget.
+
+ A box arranges objects in a linear fashion, governed by a layout function
+ that defines the details of this arrangement.
+
+ By default, the box will use an internal function to set the layout to
+ a single row, either vertical or horizontal. This layout is affected
+ by a number of parameters. The values given by @Efl.Pack.pack_padding.set
+ and @Efl.Pack.pack_align.set and the hints set to each object in the box.
+
+ FIXME:
+ THIS CLASS NEEDS GOOD UP TO DATE DOCUMENTATION. LEGACY BOX AND UI BOX
+ BEHAVE SLIGHTLY DIFFERENTLY AND USE VASTLY DIFFERENT APIS.
+ ]]
implements {
Efl.Object.constructor;
Efl.Canvas.Group.group_calculate;
@@ -11,7 +24,7 @@ class Efl.Ui.Box (Elm.Widget, Efl.Pack.Linear, Efl.Pack.Layout,
Elm.Widget.focus_next;
Efl.Container.content_iterate;
Efl.Container.content_count;
- Efl.Orientation.orientation { get; set; }
+ Efl.Ui.Direction.direction { get; set; }
Efl.Pack.pack_clear;
Efl.Pack.unpack_all;
Efl.Pack.unpack;