summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-03-11 12:17:17 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-03-11 12:17:36 +0100
commitc043b11f467d2df38ed9dbfc78f20c493011ad4b (patch)
tree1d7977956a9830db93ee519e6af2d0f3ce067c6c /src
parent6524589e861639710d84e9f76e3ea9ea60d571a2 (diff)
ui.widget: enhance documentation of sub_object_add
Reviewers: segfaultxavi, bu5hm4n Reviewed By: segfaultxavi, bu5hm4n Subscribers: bu5hm4n, kimcinoo, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8281
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/efl_ui_widget.eo20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/lib/elementary/efl_ui_widget.eo b/src/lib/elementary/efl_ui_widget.eo
index c06587a533..d25174e810 100644
--- a/src/lib/elementary/efl_ui_widget.eo
+++ b/src/lib/elementary/efl_ui_widget.eo
@@ -253,7 +253,15 @@ abstract Efl.Ui.Widget extends Efl.Canvas.Group implements Efl.Access.Object,
253 253
254 /* Internal hooks. */ 254 /* Internal hooks. */
255 widget_sub_object_add @protected { 255 widget_sub_object_add @protected {
256 [[Virtual function handling sub objects being added. 256 [[Virtual function customizing sub objects being added.
257
258 When a widget is added as a sub-object of another widget (like list
259 elements inside a list container, for example) some of its properties
260 are automatically adapted to the parent's current values (like focus,
261 access, theme, scale, mirror, scrollable child get, translate,
262 display mode set, tree dump).
263 Override this method if you want to customize differently sub-objects
264 being added to this object.
257 265
258 Sub objects can be any canvas object, not necessarily widgets. 266 Sub objects can be any canvas object, not necessarily widgets.
259 267
@@ -266,11 +274,17 @@ abstract Efl.Ui.Widget extends Efl.Canvas.Group implements Efl.Access.Object,
266 return: bool; [[Indicates if the operation succeeded.]] 274 return: bool; [[Indicates if the operation succeeded.]]
267 } 275 }
268 widget_sub_object_del @protected { 276 widget_sub_object_del @protected {
269 [[Virtual function handling sub objects being removed. 277 [[Virtual function customizing sub objects being removed.
278
279 When a widget is removed as a sub-object from another widget
280 (@Efl.Pack.unpack, @Efl.Content.content_unset, for example) some of
281 its properties are automatically adjusted.(like focus, access, tree dump)
282 Override this method if you want to customize differently sub-objects
283 being removed to this object.
270 284
271 Sub objects can be any canvas object, not necessarily widgets. 285 Sub objects can be any canvas object, not necessarily widgets.
272 286
273 See also @.widget_parent. 287 See also @.widget_parent and @.widget_sub_object_add.
274 ]] 288 ]]
275 params { 289 params {
276 @in sub_obj: Efl.Canvas.Object; 290 @in sub_obj: Efl.Canvas.Object;