forked from enlightenment/efl
frame: Implement text set/get (EO only)
This is required for the default style which has a title.
This commit is contained in:
parent
1990104b5f
commit
a1509ab98d
|
@ -208,6 +208,18 @@ _efl_ui_frame_efl_object_constructor(Eo *obj, Efl_Ui_Frame_Data *_pd EINA_UNUSED
|
|||
return obj;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_efl_ui_frame_efl_text_text_set(Eo *obj, Efl_Ui_Frame_Data *pd EINA_UNUSED, const char *text)
|
||||
{
|
||||
efl_text_set(efl_part(obj, _text_aliases[0].real_part), text);
|
||||
}
|
||||
|
||||
EOLIAN static const char *
|
||||
_efl_ui_frame_efl_text_text_get(Eo *obj, Efl_Ui_Frame_Data *pd EINA_UNUSED)
|
||||
{
|
||||
return efl_text_get(efl_part(obj, _text_aliases[0].real_part));
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_efl_ui_frame_autocollapse_set(Eo *obj EINA_UNUSED, Efl_Ui_Frame_Data *sd, Eina_Bool autocollapse)
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class Efl.Ui.Frame (Elm.Layout, Efl.Ui.Clickable)
|
||||
class Efl.Ui.Frame (Elm.Layout, Efl.Ui.Clickable, Efl.Text)
|
||||
{
|
||||
[[Frame widget
|
||||
|
||||
|
@ -62,5 +62,6 @@ class Efl.Ui.Frame (Elm.Layout, Efl.Ui.Clickable)
|
|||
Elm.Widget.focus_direction_manager_is;
|
||||
Elm.Layout.text_aliases { get; }
|
||||
Elm.Layout.content_aliases { get; }
|
||||
Efl.Text.text { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue