aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje/efl_canvas_layout_part.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-21 12:23:29 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-21 12:28:20 +0900
commit419f3935c613850f0b1e61ee7246c951ccd258dc (patch)
treecf1f99c5d6c215925f20f62f02f894a006f2c7e9 /src/lib/edje/efl_canvas_layout_part.eo
parenthover: Fix hover parts usage (diff)
downloadefl-419f3935c613850f0b1e61ee7246c951ccd258dc.tar.gz
edje: Add part_type_get API
For now I made this EO-only but this definitely could be expose in legacy API as well. This simply gives exact information about the type of part, after doing a recursive search. Edit Edit doesn't do a recursive search, only a direct one, which can yield invalid results (eg. RECT or NONE instead of TEXT in case of "elm.units.max" for a slider). @feature
Diffstat (limited to '')
-rw-r--r--src/lib/edje/efl_canvas_layout_part.eo16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/edje/efl_canvas_layout_part.eo b/src/lib/edje/efl_canvas_layout_part.eo
index 6417b795e0..87cacafbef 100644
--- a/src/lib/edje/efl_canvas_layout_part.eo
+++ b/src/lib/edje/efl_canvas_layout_part.eo
@@ -1,4 +1,5 @@
-/* FIXME: Rename to Efl.Canvas.Layout.Part */
+import edje_types;
+
class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx, Efl.Ui.Drag)
{
[[Common class for part proxy objects for $Efl.Canvas.Layout.
@@ -24,6 +25,16 @@ class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx, Efl.Ui.Drag)
val: double; [[The value of the state.]]
}
}
+ @property part_type {
+ [[Type of this part in the layout.]]
+ get {
+ [[Returns the type of the part.]]
+ }
+ values {
+ type: Efl.Canvas.Layout.Part_Type(Efl.Canvas.Layout.Part_Type.none);
+ [[One of the types or $none if not an existing part.]]
+ }
+ }
}
implements {
Efl.Object.finalize;
@@ -36,7 +47,4 @@ class Efl.Canvas.Layout.Part (Efl.Object, Efl.Gfx, Efl.Ui.Drag)
Efl.Ui.Drag.drag_page { set; get; }
Efl.Ui.Drag.drag_page_move;
}
- events {
- /* FIXME: Are there really no events? */
- }
}