forked from enlightenment/efl
elm: Continue elm_layout renaming
This renames a few macros. Ref T5315
This commit is contained in:
parent
9a2d4928f0
commit
3add24fa45
|
@ -146,7 +146,7 @@ _on_frame_clicked(void *data,
|
|||
EOLIAN static void
|
||||
_efl_ui_frame_efl_canvas_group_group_calculate(Eo *obj, Efl_Ui_Frame_Data *sd)
|
||||
{
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
if (ld->needs_size_calc)
|
||||
{
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,13 +1,12 @@
|
|||
import edje_types;
|
||||
|
||||
class Efl.Ui.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, Efl.Canvas.Layout_Signal,
|
||||
Efl.Canvas.Layout_Group)
|
||||
Efl.Ui.View, Efl.Ui.Model.Connect, Efl.Ui.Model.Factory.Connect,
|
||||
Efl.Canvas.Layout_Calc, Efl.Canvas.Layout_Signal,
|
||||
Efl.Canvas.Layout_Group)
|
||||
{
|
||||
[[Elementary layout class]]
|
||||
legacy_prefix: elm_layout;
|
||||
data: Elm_Layout_Smart_Data;
|
||||
methods {
|
||||
@property theme {
|
||||
[[The theme of this widget, defines which edje group will be used.
|
||||
|
|
|
@ -18,15 +18,15 @@
|
|||
#include "../evas/canvas/evas_table.eo.h"
|
||||
|
||||
/* layout internals for box & table */
|
||||
Eina_Bool _efl_ui_layout_box_append(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_prepend(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_insert_before(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child, const Evas_Object *reference);
|
||||
Eina_Bool _efl_ui_layout_box_insert_at(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child, unsigned int pos);
|
||||
Evas_Object *_efl_ui_layout_box_remove(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_remove_all(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Eina_Bool clear);
|
||||
Eina_Bool _efl_ui_layout_table_pack(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
|
||||
Evas_Object *_efl_ui_layout_table_unpack(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_table_clear(Eo *obj, Elm_Layout_Smart_Data *sd, const char *part, Eina_Bool clear);
|
||||
Eina_Bool _efl_ui_layout_box_append(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_prepend(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_insert_before(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child, const Evas_Object *reference);
|
||||
Eina_Bool _efl_ui_layout_box_insert_at(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child, unsigned int pos);
|
||||
Evas_Object *_efl_ui_layout_box_remove(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_box_remove_all(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Eina_Bool clear);
|
||||
Eina_Bool _efl_ui_layout_table_pack(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child, unsigned short col, unsigned short row, unsigned short colspan, unsigned short rowspan);
|
||||
Evas_Object *_efl_ui_layout_table_unpack(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Evas_Object *child);
|
||||
Eina_Bool _efl_ui_layout_table_clear(Eo *obj, Efl_Ui_Layout_Data *sd, const char *part, Eina_Bool clear);
|
||||
|
||||
#define BOX_CLASS EFL_UI_LAYOUT_INTERNAL_BOX_CLASS
|
||||
#define TABLE_CLASS EFL_UI_LAYOUT_INTERNAL_TABLE_CLASS
|
||||
|
@ -38,7 +38,7 @@ typedef struct _Part_Item_Iterator Part_Item_Iterator;
|
|||
struct _Layout_Part_Data
|
||||
{
|
||||
Efl_Ui_Layout *obj; // no ref
|
||||
Elm_Layout_Smart_Data *sd; // data xref
|
||||
Efl_Ui_Layout_Data *sd; // data xref
|
||||
Eina_Stringshare *part;
|
||||
unsigned char temp;
|
||||
};
|
||||
|
|
|
@ -51,7 +51,7 @@ _efl_ui_panes_elm_widget_theme_apply(Eo *obj, Efl_Ui_Panes_Data *sd)
|
|||
Evas_Coord minw = 0, minh = 0;
|
||||
|
||||
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
if (sd->orientation == EFL_ORIENT_HORIZONTAL)
|
||||
eina_stringshare_replace(&ld->group, "horizontal");
|
||||
|
|
|
@ -194,7 +194,7 @@ EOLIAN static Elm_Theme_Apply
|
|||
_efl_ui_progressbar_elm_widget_theme_apply(Eo *obj, Efl_Ui_Progressbar_Data *sd)
|
||||
{
|
||||
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, ELM_THEME_APPLY_FAILED);
|
||||
|
||||
if (_is_horizontal(sd->orientation))
|
||||
|
|
|
@ -747,7 +747,7 @@ EOLIAN static Elm_Theme_Apply
|
|||
_efl_ui_slider_elm_widget_theme_apply(Eo *obj, Efl_Ui_Slider_Data *sd)
|
||||
{
|
||||
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, ELM_THEME_APPLY_FAILED);
|
||||
|
||||
if (_is_horizontal(sd->orientation))
|
||||
|
|
|
@ -243,7 +243,7 @@ EOLIAN static void
|
|||
_elm_bubble_pos_set(Eo *obj, Elm_Bubble_Data *sd, Elm_Bubble_Pos pos)
|
||||
{
|
||||
/* FIXME: Why is this dealing with layout data directly? */
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
if (pos < ELM_BUBBLE_POS_TOP_LEFT || pos > ELM_BUBBLE_POS_BOTTOM_RIGHT)
|
||||
return;
|
||||
|
|
|
@ -448,7 +448,7 @@ _elm_index_elm_widget_theme_apply(Eo *obj, Elm_Index_Data *sd)
|
|||
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
|
||||
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
_index_box_clear(obj, 0);
|
||||
_index_box_clear(obj, 1);
|
||||
|
|
|
@ -1020,7 +1020,7 @@ _elm_scroller_efl_object_constructor(Eo *obj, Elm_Scroller_Data *_pd EINA_UNUSED
|
|||
EOLIAN static void
|
||||
_elm_scroller_custom_widget_base_theme_set(Eo *obj, Elm_Scroller_Data *_pd EINA_UNUSED, const char *klass, const char *group)
|
||||
{
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(klass);
|
||||
EINA_SAFETY_ON_NULL_RETURN(group);
|
||||
|
|
|
@ -20,7 +20,7 @@ EOLIAN static Elm_Theme_Apply
|
|||
_elm_separator_elm_widget_theme_apply(Eo *obj, Elm_Separator_Data *sd EINA_UNUSED)
|
||||
{
|
||||
Elm_Theme_Apply int_ret = ELM_THEME_APPLY_FAILED;
|
||||
ELM_LAYOUT_DATA_GET(obj, ld);
|
||||
EFL_UI_LAYOUT_DATA_GET(obj, ld);
|
||||
|
||||
if (sd->orientation == EFL_ORIENT_HORIZONTAL)
|
||||
eina_stringshare_replace(&ld->group, "horizontal");
|
||||
|
|
|
@ -67,16 +67,16 @@ typedef struct _Elm_Layout_Smart_Data
|
|||
Eina_Bool destructed_is : 1; /**< This flag indicates if Efl.Ui.Layout destructor was called. This is needed to avoid unnecessary calculation of subobject deletion during layout object's deletion. */
|
||||
Eina_Bool file_set : 1; /**< This flag indicates if Efl.Ui.Layout source is set from a file*/
|
||||
Eina_Bool view_updated : 1; /**< This flag indicates to Efl.Ui.Layout don't update model in text_set */
|
||||
} Elm_Layout_Smart_Data;
|
||||
} Efl_Ui_Layout_Data;
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#define ELM_LAYOUT_DATA_GET(o, sd) \
|
||||
Elm_Layout_Smart_Data * sd = efl_data_scope_get(o, EFL_UI_LAYOUT_CLASS)
|
||||
#define EFL_UI_LAYOUT_DATA_GET(o, sd) \
|
||||
Efl_Ui_Layout_Data * sd = efl_data_scope_get(o, EFL_UI_LAYOUT_CLASS)
|
||||
|
||||
#define ELM_LAYOUT_CHECK(obj) \
|
||||
#define EFL_UI_LAYOUT_CHECK(obj) \
|
||||
if (EINA_UNLIKELY(!efl_isa(obj, EFL_UI_LAYOUT_CLASS))) \
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in New Issue