Virtual function customizing sub objects being added.

When a widget is added as a sub-object of another widget (like list elements inside a list container, for example) some of its properties are automatically adapted to the parent's current values (like focus, access, theme, scale, mirror, scrollable child get, translate, display mode set, tree dump). Override this method if you want to customize differently sub-objects being added to this object.

Sub objects can be any canvas object, not necessarily widgets.

See also Efl.Ui.Widget.widget_parent.

Since 1.22


widget_sub_object_add @protected {
    params {
        @in sub_obj: Efl.Canvas.Object;
    return: bool;

C signature

Eina_Bool efl_ui_widget_sub_object_add(Eo *obj, Efl_Canvas_Object *sub_obj);


  • sub_obj (in) - Sub object to be added. Not necessarily a widget itself.

Implemented by