Efl.Ui.Widget_Scrollable_Content (mixin)

Description

Mixin helper to add scrollable content to widgets.

This can be used to provide scrollable contents and text for widgets. When Efl.Ui.Widget_Scrollable_Content.scrollable_content or Efl.Ui.Widget_Scrollable_Content.scrollable_text is set, this mixin will create and manage an internal scroller object which will be the container of that text or content.

Only a single content or text can be set at any given time. Setting Efl.Ui.Widget_Scrollable_Content.scrollable_text will unset Efl.Ui.Widget_Scrollable_Content.scrollable_content.

Since 1.23

Members

destructor [Overridden from Efl.Object]

void efl_destructor(Eo *obj);


scrollable_content (get, set)

This is the content which will be placed in the internal scroller.
Efl_Canvas_Object *efl_ui_widget_scrollable_content_get(const Eo *obj);
Eina_Bool efl_ui_widget_scrollable_content_set(Eo *obj, Efl_Canvas_Object *content);


scrollable_text (get, set)

The text string to be displayed by the given text object. The text will use Efl.Text_Format_Wrap.mixed wrapping, and it will be scrollable depending on its size relative to the object's geometry.
const char *efl_ui_widget_scrollable_text_get(const Eo *obj);
void efl_ui_widget_scrollable_text_set(Eo *obj, const char *text);


scrollable_content_did_group_calc (get) protected

Eina_Bool efl_ui_widget_scrollable_content_did_group_calc_get(const Eo *obj);


Events

optimal_size,calc

The optimal size for the widget based on scrollable content.
EFL_UI_WIDGET_SCROLLABLE_CONTENT_EVENT_OPTIMAL_SIZE_CALC(Eina_Size2D)