aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_box.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-04-12 14:10:05 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-04-20 10:47:40 +0900
commitb18a993dc0a1f9aa762dbafcce63155fb73d7d7b (patch)
tree50d0f4ec10648b64e9472515175eed12928a5d9f /src/lib/elementary/efl_ui_box.eo
parentEfl: Add skeletton for new containers "Pack" API (diff)
downloadefl-b18a993dc0a1f9aa762dbafcce63155fb73d7d7b.tar.gz
Efl.Ui.Box: Add implementation of a simple box
This should be the only linear packing container. This replaces: evas box and elm box. Edje box needs to be kept around for compatibility, but it stays an EDC object only (for apps). Lots of things are still to be fleshed out in this box implementation: - Simplify smart object / elm widget code - Maybe stop using evas object box altogether - Implement other layout strategies @feature
Diffstat (limited to 'src/lib/elementary/efl_ui_box.eo')
-rw-r--r--src/lib/elementary/efl_ui_box.eo39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_box.eo b/src/lib/elementary/efl_ui_box.eo
new file mode 100644
index 0000000000..4cc7e8ed7b
--- /dev/null
+++ b/src/lib/elementary/efl_ui_box.eo
@@ -0,0 +1,39 @@
+class Efl.Ui.Box (Elm.Widget, Efl.Pack_Linear)
+{
+ legacy_prefix: null;
+ implements {
+ Eo.Base.constructor;
+
+ // smart obj
+ Evas.Object_Smart.add;
+ Evas.Object_Smart.del;
+ Evas.Object_Smart.calculate;
+
+ // Focus
+ Elm.Widget.focus_direction;
+ Elm.Widget.focus_next_manager_is;
+ Elm.Widget.focus_direction_manager_is;
+ Elm.Widget.focus_next;
+
+ Efl.Pack.contents_iterate;
+ Efl.Pack.contents_count;
+ Efl.Pack.clear;
+ Efl.Pack.unpack_all;
+ Efl.Pack.unpack;
+ Efl.Pack.pack;
+ Efl.Pack.padding.get;
+ Efl.Pack.padding.set;
+ Efl.Pack.layout_update;
+ Efl.Pack.layout_request;
+ Efl.Pack_Linear.pack_begin;
+ Efl.Pack_Linear.pack_end;
+ Efl.Pack_Linear.pack_before;
+ Efl.Pack_Linear.pack_after;
+ Efl.Pack_Linear.child_at.get;
+ Efl.Pack_Linear.child_at.set;
+ //Efl.Pack_Linear.child_index.get;
+ //Efl.Pack_Linear.child_index.set;
+ Efl.Pack_Linear.direction.set;
+ Efl.Pack_Linear.direction.get;
+ }
+}