Lines Matching refs:parent

100 A Widget's parent is set when the widget is created --- the parent is passed to the
103 To get a Widget's current parent, use :cpp:expr:`lv_obj_get_parent(widget)`.
105 You can move the Widget to a new parent with :cpp:expr:`lv_obj_set_parent(widget, new_parent)`.
107 To get a specific child of a parent use :cpp:expr:`lv_obj_get_child(parent, idx)`.
114 You can iterate through a parent Widget's children like this:
119 for(i = 0; i < lv_obj_get_child_count(parent); i++) {
120 lv_obj_t * child = lv_obj_get_child(parent, i);
124 :cpp:expr:`lv_obj_get_index(widget)` returns the index of the Widget in its parent.
125 It is equivalent to the number of older children in the parent.
130 You can change the index of a Widget in its parent using :cpp:expr:`lv_obj_move_to_index(widget, in…
134 To get a Widget's Screen (highest-level parent) use :cpp:expr:`lv_obj_get_screen(widget)`.
146 A parent Widget can be considered as the container of its children. Every Widget has
147 exactly one parent Widget (except Screens), but a parent Widget can have any number
148 of children. There is no limitation for the type of the parent but there are Widgets
149 which are typically a parent (e.g. button) or a child (e.g. label).
156 If the position of a parent changes, the children will move along with
157 it. Therefore, all positions are relative to the parent.
163 …lv_obj_t * parent = lv_obj_create(lv_screen_active()); /* Create a parent Widget on current scree…
164 lv_obj_set_size(parent, 100, 80); /* Set size of parent */
166 …lv_obj_t * obj1 = lv_obj_create(parent); /* Create a Widget on previously created p…
169 Modify the position of the parent:
175 lv_obj_set_pos(parent, 50, 50); /* Move the parent. The child will move with it. */
180 Visibility only on the parent
183 If a child is partially or fully outside its parent then the parts
190 lv_obj_set_x(widget1, -30); /* Move the child a little bit off the parent */
194 children to be drawn out of the parent. In addition to this, you must register
224 lv_obj_t * lv_<widget>_create(lv_obj_t * parent, <other parameters if any>);
226 Typically, the create functions only have a ``parent`` parameter telling
243 delete the parent of a Widget in the child's :cpp:enumerator:`LV_EVENT_DELETE`
286 without a parent (i.e. passing NULL for the ``parent`` argument during creation). As
501 … :cpp:enumerator:`LV_OBJ_FLAG_SCROLL_CHAIN_HOR` Allow propagating the horizontal scroll to a parent
502 - :cpp:enumerator:`LV_OBJ_FLAG_SCROLL_CHAIN_VER` Allow propagating the vertical scroll to a parent
506 - :cpp:enumerator:`LV_OBJ_FLAG_SNAPPABLE` If scroll snap is enabled on the parent it can snap to t…
508 - :cpp:enumerator:`LV_OBJ_FLAG_EVENT_BUBBLE` Propagate the events to the parent as well
509 - :cpp:enumerator:`LV_OBJ_FLAG_GESTURE_BUBBLE` Propagate the gestures to the parent
512 - :cpp:enumerator:`LV_OBJ_FLAG_FLOATING` Do not scroll the Widget when the parent scrolls and igno…
514 - :cpp:enumerator:`LV_OBJ_FLAG_OVERFLOW_VISIBLE` Do not clip the children's content to the parent'…