aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-08-03 11:19:52 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-08-04 11:52:16 +0900
commit82e610032229b7d2cf71e7b8940fb5c10f67b8df (patch)
tree94172ee8dd23f21af89e9103c97a5e1c18ca48f6
parentlayout: Move edje_get to legacy only (diff)
downloadefl-82e610032229b7d2cf71e7b8940fb5c10f67b8df.tar.gz
layout: Move Part_Alias struct to legacy
Part aliases need to be handled differently in EO. Ref https://phab.enlightenment.org/T5315
-rw-r--r--src/lib/elementary/elm_layout.eo17
-rw-r--r--src/lib/elementary/elm_layout_legacy.h29
2 files changed, 29 insertions, 17 deletions
diff --git a/src/lib/elementary/elm_layout.eo b/src/lib/elementary/elm_layout.eo
index 4a13d85cb8..4e6695ff3d 100644
--- a/src/lib/elementary/elm_layout.eo
+++ b/src/lib/elementary/elm_layout.eo
@@ -1,22 +1,5 @@
import edje_types;
-struct Elm.Layout_Part_Alias_Description
-{
- [[
- Elementary Layout-based widgets may declare part proxies, i.e., aliases
- for real theme part names to expose to the API calls:
- - elm_layout_text_set()
- - elm_layout_text_get()
- - elm_layout_content_set()
- - elm_layout_content_get()
- - elm_layout_content_unset()
- and their equivalents. This list must be set on the "_smart_set_user()" function of inheriting widgets,
- so that part aliasing is handled automatically for them.
- ]]
- alias: string; [[Alternate name for a given (real) part. Calls receiving this string as a part name will be translated to the string at Elm.Layout_Part_Proxies_Description::real_part]]
- real_part: string; [[Target part name for the alias set on Elm.Layout_Part_Proxies_Description::real_part. An example of usage would be "default" on that field, with "elm.content.swallow" on this one]]
-}
-
class Elm.Layout (Elm.Widget, Efl.Part, Efl.Container, Efl.File,
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
Efl.Canvas.Layout_Calc)
diff --git a/src/lib/elementary/elm_layout_legacy.h b/src/lib/elementary/elm_layout_legacy.h
index 3fd1058a69..a7b61d038d 100644
--- a/src/lib/elementary/elm_layout_legacy.h
+++ b/src/lib/elementary/elm_layout_legacy.h
@@ -1,4 +1,33 @@
/**
+ * Elementary Layout-based widgets may declare part proxies, i.e., aliases for
+ * real theme part names to expose to the API calls:
+ * - elm_layout_text_set()
+ * - elm_layout_text_get()
+ * - elm_layout_content_set()
+ * - elm_layout_content_get()
+ * - elm_layout_content_unset()
+ * and their equivalents. This list must be set on the "_smart_set_user()"
+ * function of inheriting widgets, so that part aliasing is handled
+ * automatically for them.
+ *
+ * @deprecated Should not be used outside of EFL internal code.
+ */
+
+struct _Elm_Layout_Part_Alias_Description
+{
+ const char *alias; /**< Alternate name for a given (real) part. Calls
+ * receiving this string as a part name will be translated
+ * to the string at
+ * Elm.Layout_Part_Proxies_Description::real_part */
+ const char *real_part; /**< Target part name for the alias set on
+ * Elm.Layout_Part_Proxies_Description::real_part. An
+ * example of usage would be "default" on that field,
+ * with "elm.content.swallow" on this one */
+};
+
+typedef struct _Elm_Layout_Part_Alias_Description Elm_Layout_Part_Alias_Description;
+
+/**
* Add a new layout to the parent
*
* @param parent The parent object