This removes the APIs from the EO API.
Ref T5315
#include "elm_part_helper.h"
#define MY_CLASS EFL_UI_BUTTON_CLASS
+#define MY_CLASS_PFX efl_ui_button
#define MY_CLASS_NAME "Efl.Ui.Button"
#define MY_CLASS_NAME_LEGACY "elm_button"
CRI("Failed to set layout!");
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_button_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Button_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_button_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Button_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
EAPI Evas_Object *
elm_button_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_BUTTON_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_OPS(efl_ui_button)
#include "efl_ui_button.eo.c"
Elm.Widget.theme_apply;
Elm.Widget.sub_object_del;
Elm.Widget.widget_event;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
Efl.Part.part;
#include "efl_ui_check_private.h"
#define MY_CLASS EFL_UI_CHECK_CLASS
+#define MY_CLASS_PFX efl_ui_check
#define MY_CLASS_NAME "Efl.Ui.Check"
#define MY_CLASS_NAME_LEGACY "elm_check"
elm_layout_sizing_eval(obj);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_check_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Check_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
EOLIAN static Eina_Bool
_efl_ui_check_selected_get(Eo *obj, Efl_Ui_Check_Data *pd EINA_UNUSED)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_CHECK_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_OPS(efl_ui_check)
+ EFL_CANVAS_GROUP_ADD_OPS(efl_ui_check), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS()
#include "efl_ui_check.eo.c"
Elm.Widget.theme_apply;
Elm.Widget.sub_object_del;
Elm.Widget.widget_event;
- Elm.Layout.text_aliases { get; }
Efl.Ui.Nstate.count { set; }
Efl.Ui.Nstate.value { set; }
Elm.Interface.Atspi_Accessible.state_set { get; }
#include "elm_widget_layout.h"
#define MY_CLASS EFL_UI_FRAME_CLASS
+#define MY_CLASS_PFX efl_ui_frame
#define MY_CLASS_NAME "Efl.Ui.Frame"
#define MY_CLASS_NAME_LEGACY "elm_frame"
elm_layout_sizing_eval(obj);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_frame_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Frame_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_frame_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Frame_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
EAPI Evas_Object *
elm_frame_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_FRAME_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_OPS(efl_ui_frame)
+ EFL_CANVAS_GROUP_ADD_OPS(efl_ui_frame), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS()
#include "efl_ui_frame.eo.c"
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_next;
Elm.Widget.focus_direction_manager_is;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Efl.Text.text { get; set; }
}
}
#include "elm_part_helper.h"
#define MY_CLASS EFL_UI_PROGRESSBAR_CLASS
+#define MY_CLASS_PFX efl_ui_progressbar
#define MY_CLASS_NAME "Efl.Ui.Progressbar"
#define MY_CLASS_NAME_LEGACY "elm_progressbar"
efl_canvas_group_del(efl_super(obj, MY_CLASS));
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_progressbar_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_progressbar_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Progressbar_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EAPI Evas_Object *
elm_progressbar_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_PROGRESSBAR_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_progressbar)
#include "efl_ui_progressbar.eo.c"
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.sub_object_del;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Efl.Ui.Range.span_size { get; set; }
Efl.Ui.Range.range_value { get; set; }
#include "elm_widget_layout.h"
#define MY_CLASS EFL_UI_RADIO_CLASS
+#define MY_CLASS_PFX efl_ui_radio
#define MY_CLASS_NAME "Efl.Ui.Radio"
#define MY_CLASS_NAME_LEGACY "elm_radio"
efl_canvas_group_del(efl_super(obj, EFL_UI_CHECK_CLASS));
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_radio_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Radio_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
EAPI Evas_Object *
elm_radio_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_RADIO_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_radio)
+ EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_radio), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS()
#include "efl_ui_radio.eo.c"
Elm.Widget.theme_apply;
Elm.Widget.activate;
Elm.Widget.widget_event;
- Elm.Layout.text_aliases { get; }
Elm.Interface.Atspi_Accessible.state_set { get; }
Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
}
#include "elm_part_helper.h"
#define MY_CLASS EFL_UI_SLIDER_CLASS
+#define MY_CLASS_PFX efl_ui_slider
#define MY_CLASS_NAME "Efl.Ui.Slider"
#define MY_CLASS_NAME_LEGACY "elm_slider"
efl_canvas_group_del(efl_super(obj, MY_CLASS));
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_slider_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Slider_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_efl_ui_slider_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Slider_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EOLIAN static Eina_Bool
_efl_ui_slider_efl_ui_range_range_interval_enabled_get(Eo *obj EINA_UNUSED, Efl_Ui_Slider_Data *pd)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define EFL_UI_SLIDER_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_slider)
#include "efl_ui_slider.eo.c"
Elm.Widget.focus_direction_manager_is;
Elm.Widget.on_focus;
Elm.Widget.widget_event;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Efl.Ui.Range.span_size { get; set; }
Efl.Ui.Range.range_value { get; set; }
};
#define MY_CLASS EFL_UI_TEXT_CLASS
+#define MY_CLASS_PFX efl_ui_text
#define MY_CLASS_NAME "Efl.Ui.Text"
#define MY_CLASS_NAME_LEGACY "elm_entry"
evas_object_raise(sd->hit_rect);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description *
-_efl_ui_text_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EOLIAN static Eina_Bool
_efl_ui_text_elm_layout_theme_enable(Eo *obj EINA_UNUSED, Efl_Ui_Text_Data *sd EINA_UNUSED)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+
#define EFL_UI_TEXT_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_text)
+ EFL_CANVAS_GROUP_ADD_DEL_OPS(efl_ui_text), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS()
#include "efl_ui_text.eo.c"
Elm.Layout.signal_callback_add;
Elm.Layout.signal_callback_del;
Elm.Layout.signal_emit;
- Elm.Layout.content_aliases { get; }
Elm.Interface_Scrollable.policy { set; }
Elm.Interface_Scrollable.bounce_allow { set; }
Elm.Interface.Atspi_Accessible.state_set { get; }
#include "elm_part_helper.h"
#define MY_CLASS ELM_ACTIONSLIDER_CLASS
+#define MY_CLASS_FPX elm_actionslider
#define MY_CLASS_NAME "Elm_Actionslider"
#define MY_CLASS_NAME_LEGACY "elm_actionslider"
elm_layout_sizing_eval(obj);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_actionslider_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Actionslider_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
EAPI Evas_Object *
elm_actionslider_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define ELM_ACTIONSLIDER_EXTRA_OPS \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_OPS(elm_actionslider)
#include "elm_actionslider.eo.c"
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.theme_apply;
- Elm.Layout.text_aliases { get; }
Elm.Layout.sizing_eval;
Efl.Part.part;
}
#include "elm_widget_layout.h"
#define MY_CLASS ELM_BG_CLASS
+#define MY_CLASS_PFX elm_bg
#define MY_CLASS_NAME "Elm_Bg"
#define MY_CLASS_NAME_LEGACY "elm_bg"
CRI("Failed to set layout!");
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_bg_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Bg_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EAPI Evas_Object *
elm_bg_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+
#define ELM_BG_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_OPS(elm_bg)
#include "elm_bg.eo.c"
implements {
class.constructor;
Efl.Object.constructor;
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Efl.File.file { get; set; }
}
#include "elm_part_helper.h"
#define MY_CLASS ELM_BUBBLE_CLASS
+#define MY_CLASS_PFX elm_bubble
#define MY_CLASS_NAME "Elm_Bubble"
#define MY_CLASS_NAME_LEGACY "elm_bubble"
return EINA_TRUE;
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_bubble_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Bubble_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_bubble_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Bubble_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EOLIAN static void
_elm_bubble_class_constructor(Efl_Class *klass)
{
#include "elm_bubble_internal_part.eo.c"
/* Efl.Part end */
+
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define ELM_BUBBLE_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_OPS(elm_bubble)
#include "elm_bubble.eo.c"
Elm.Widget.focus_next;
Elm.Widget.focus_direction_manager_is;
Elm.Widget.access;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Efl.Part.part;
}
#include "elm_widget_layout.h"
#define MY_CLASS ELM_CONFORMANT_CLASS
-
+#define MY_CLASS_PFX elm_conformant
#define MY_CLASS_NAME "Elm_Conformant"
#define MY_CLASS_NAME_LEGACY "elm_conformant"
#endif
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_conformant_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Conformant_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EAPI Evas_Object *
elm_conformant_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+
#define ELM_CONFORMANT_EXTRA_OPS \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_conformant)
#include "elm_conformant.eo.c"
Efl.Object.constructor;
Elm.Widget.widget_parent { set; }
Elm.Widget.theme_apply;
- Elm.Layout.content_aliases { get; }
}
events {
virtualkeypad,state,on; [[Called when virtualkeypad was enabled]]
#include "elm_hoversel.eo.h"
#define MY_CLASS ELM_ENTRY_CLASS
+#define MY_CLASS_PFX elm_entry
#define MY_CLASS_NAME "Elm_Entry"
#define MY_CLASS_NAME_LEGACY "elm_entry"
evas_object_raise(sd->hit_rect);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_entry_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *_sd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description *
-_elm_entry_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EOLIAN static Eina_Bool
_elm_entry_elm_layout_theme_enable(Eo *obj EINA_UNUSED, Elm_Entry_Data *sd EINA_UNUSED)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define ELM_ENTRY_EXTRA_OPS \
ELM_PART_CONTENT_DEFAULT_OPS(elm_entry), \
- EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_entry)
+ EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_entry), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS()
#include "elm_entry.eo.c"
Elm.Layout.signal_callback_add;
Elm.Layout.signal_callback_del;
Elm.Layout.signal_emit;
- Elm.Layout.text_aliases { get; }
- Elm.Layout.content_aliases { get; }
Elm.Interface_Scrollable.policy { set; }
Elm.Interface_Scrollable.bounce_allow { set; }
Elm.Interface.Atspi_Accessible.state_set { get; }
#include "elm_part_helper.h"
#define MY_CLASS ELM_HOVER_CLASS
+#define MY_CLASS_PFX elm_hover
#define MY_CLASS_NAME "Elm_Hover"
#define MY_CLASS_NAME_LEGACY "elm_hover"
}
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_hover_elm_layout_content_aliases_get(Eo *obj, Elm_Hover_Data *_pd EINA_UNUSED)
+static const Elm_Layout_Part_Alias_Description*
+_elm_hover_content_aliases_get(Eo *obj, void *_pd EINA_UNUSED)
{
const char *style = elm_widget_style_get(obj);
/* Internal EO APIs and hidden overrides */
+// ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT() is overridden with an if()
+// ELM_LAYOUT_CONTENT_ALIASES_OPS() somehow doesn't compile!?
+
#define ELM_HOVER_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_hover)
+ EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_hover), \
+ _ELM_LAYOUT_ALIASES_OPS(elm_hover, content)
#include "elm_hover.eo.c"
Elm.Widget.sub_object_del;
Elm.Widget.focus_manager_factory;
Elm.Layout.sizing_eval;
- Elm.Layout.content_aliases { get; }
Elm.Interface.Atspi_Widget_Action.elm_actions { get; }
Efl.Part.part;
}
#include "elm_widget_layout.h"
#define MY_CLASS ELM_INWIN_CLASS
+#define MY_CLASS_PFX elm_inwin
#define MY_CLASS_NAME "Elm_Inwin"
#define MY_CLASS_NAME_LEGACY "elm_inwin"
elm_layout_sizing_eval(obj);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_inwin_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Inwin_Data *pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EAPI Evas_Object *
elm_win_inwin_add(Evas_Object *parent)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+
#define ELM_INWIN_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_OPS(elm_inwin)
+ EFL_CANVAS_GROUP_ADD_OPS(elm_inwin), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS()
#include "elm_inwin.eo.c"
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_next;
Elm.Widget.focus_manager_factory;
- Elm.Layout.content_aliases { get; }
Elm.Layout.sizing_eval;
Efl.Gfx.visible { set; }
Efl.Ui.Focus.Manager.move;
#include <Edje_Edit.h>
#define MY_CLASS ELM_LAYOUT_CLASS
+#define MY_CLASS_PFX elm_layout
#define MY_CLASS_NAME "Elm_Layout"
#define MY_CLASS_NAME_LEGACY "elm_layout"
esd->func(esd->data, esd->obj, emission, source);
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_layout_text_aliases_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
-{
- return _text_aliases;
-}
-
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
EOLIAN static Eina_Bool
_elm_layout_sub_object_add_enable(Eo *obj EINA_UNUSED, Elm_Layout_Smart_Data *_pd EINA_UNUSED)
{
const Elm_Layout_Part_Alias_Description *aliases = NULL;
if (is_text)
- aliases = elm_obj_layout_text_aliases_get(obj);
+ aliases = elm_layout_text_aliases_get(obj);
else
- aliases = elm_obj_layout_content_aliases_get(obj);
+ aliases = elm_layout_content_aliases_get(obj);
while (aliases && aliases->alias && aliases->real_part)
{
/* Internal EO APIs and hidden overrides */
+EFL_FUNC_BODY_CONST(elm_layout_text_aliases_get, const Elm_Layout_Part_Alias_Description *, NULL)
+EFL_FUNC_BODY_CONST(elm_layout_content_aliases_get, const Elm_Layout_Part_Alias_Description *, NULL)
+
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT()
+
#define ELM_LAYOUT_EXTRA_OPS \
EFL_CANVAS_GROUP_ADD_DEL_OPS(elm_layout), \
ELM_PART_CONTENT_DEFAULT_OPS(elm_layout), \
ELM_PART_TEXT_DEFAULT_OPS(elm_layout), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS(), \
+ ELM_LAYOUT_TEXT_ALIASES_OPS(), \
EFL_OBJECT_OP_FUNC(efl_dbg_info_get, _elm_layout_efl_object_dbg_info_get)
#include "elm_layout.eo.c"
style: string; [[The style to used.]]
}
}
- @property text_aliases @protected {
- [[Text aliases property]]
- get {
- legacy: null;
- }
- values {
- aliases: ptr(const(Elm.Layout_Part_Alias_Description)); [[Text aliases]]
- }
- }
- @property content_aliases @protected {
- [[Content aliases property]]
- get {
- legacy: null;
- }
- values {
- aliases: ptr(const(Elm.Layout_Part_Alias_Description)); [[Content aliases]]
- }
- }
@property edje {
get {
[[Get the edje layout
#include "elm_widget_panes.h"
#define MY_CLASS ELM_PANES_CLASS
+#define MY_CLASS_PFX elm_panes
#define MY_CLASS_NAME "Elm_Panes"
#define MY_CLASS_NAME_LEGACY "elm_panes"
return EINA_TRUE;
}
-EOLIAN static const Elm_Layout_Part_Alias_Description*
-_elm_panes_elm_layout_content_aliases_get(Eo *obj EINA_UNUSED, Elm_Panes_Data *_pd EINA_UNUSED)
-{
- return _content_aliases;
-}
-
static void
_elm_panes_class_constructor(Efl_Class *klass)
{
/* Internal EO APIs and hidden overrides */
+ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT()
+
#define ELM_PANES_EXTRA_OPS \
- EFL_CANVAS_GROUP_ADD_OPS(elm_panes)
+ EFL_CANVAS_GROUP_ADD_OPS(elm_panes), \
+ ELM_LAYOUT_CONTENT_ALIASES_OPS()
#include "elm_panes.eo.c"
Elm.Widget.focus_next_manager_is;
Elm.Widget.focus_next;
Elm.Widget.theme_apply;
- Elm.Layout.content_aliases { get; }
Efl.Orientation.orientation { get; set; }
}
events {
double _elm_atof(const char *s);
+/* Internal EO APIs */
+const Elm_Layout_Part_Alias_Description *elm_layout_content_aliases_get(const Eo *obj);
+const Elm_Layout_Part_Alias_Description *elm_layout_text_aliases_get(const Eo *obj);
+
+#define _ELM_LAYOUT_ALIASES_IMPLEMENT(_pfx, _typ) \
+ static const Elm_Layout_Part_Alias_Description * \
+ _##_pfx##_##_typ##_aliases_get(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED) \
+ { \
+ return _##_typ##_aliases; \
+ }
+
+#define _ELM_LAYOUT_ALIASES_OPS(_pfx, _typ) \
+ EFL_OBJECT_OP_FUNC(elm_layout_##_typ##_aliases_get, _##_pfx##_##_typ##_aliases_get)
+
+#define ELM_LAYOUT_CONTENT_ALIASES_IMPLEMENT() _ELM_LAYOUT_ALIASES_IMPLEMENT(MY_CLASS_PFX, content)
+#define ELM_LAYOUT_TEXT_ALIASES_IMPLEMENT() _ELM_LAYOUT_ALIASES_IMPLEMENT(MY_CLASS_PFX, text)
+
+#define ELM_LAYOUT_CONTENT_ALIASES_OPS() _ELM_LAYOUT_ALIASES_OPS(MY_CLASS_PFX, content)
+#define ELM_LAYOUT_TEXT_ALIASES_OPS() _ELM_LAYOUT_ALIASES_OPS(MY_CLASS_PFX, text)
+
#endif