forked from enlightenment/efl
efl_ui_scroller: support the complete efl.content API
content_get and content_unset was not added. ref T5719 Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D7756
This commit is contained in:
parent
4c44c44e1a
commit
2dacf8a69b
|
@ -64,6 +64,26 @@ _efl_ui_scroller_efl_content_content_set(Eo *obj,
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EOLIAN static Efl_Gfx_Entity*
|
||||
_efl_ui_scroller_efl_content_content_get(const Eo *obj EINA_UNUSED, Efl_Ui_Scroller_Data *pd)
|
||||
{
|
||||
return pd->content;
|
||||
}
|
||||
|
||||
EOLIAN static Efl_Gfx_Entity*
|
||||
_efl_ui_scroller_efl_content_content_unset(Eo *obj EINA_UNUSED, Efl_Ui_Scroller_Data *pd)
|
||||
{
|
||||
Efl_Gfx_Entity *old_content = pd->content;
|
||||
|
||||
pd->content = NULL;
|
||||
if (pd->smanager)
|
||||
{
|
||||
efl_ui_scrollbar_bar_visibility_update(pd->smanager);
|
||||
}
|
||||
|
||||
return old_content;
|
||||
}
|
||||
|
||||
static void
|
||||
_efl_ui_scroller_bar_read_and_update(Eo *obj)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,8 @@ class Efl.Ui.Scroller extends Efl.Ui.Layout implements
|
|||
Efl.Object.constructor;
|
||||
Efl.Object.finalize;
|
||||
Efl.Object.destructor;
|
||||
Efl.Content.content { set; }
|
||||
Efl.Content.content { get; set; }
|
||||
Efl.Content.content_unset;
|
||||
Efl.Ui.Widget.theme_apply;
|
||||
Efl.Ui.Scrollable_Interactive.match_content { set; }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue