Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 30) sorted by relevance

12

/lvgl-3.4.0/examples/scroll/
Dlv_example_scroll_1.py9 child = lv.obj(panel) variable
10 child.set_pos(0, 0)
11 label = lv.label(child)
15 child = lv.obj(panel) variable
16 child.set_pos(-40, 100)
17 label = lv.label(child)
21 child = lv.obj(panel) variable
22 child.set_pos(90, -30)
23 label = lv.label(child)
27 child = lv.obj(panel) variable
[all …]
Dlv_example_scroll_1.c14 lv_obj_t * child; in lv_example_scroll_1() local
17 child = lv_obj_create(panel); in lv_example_scroll_1()
18 lv_obj_set_pos(child, 0, 0); in lv_example_scroll_1()
19 lv_obj_set_size(child, 70, 70); in lv_example_scroll_1()
20 label = lv_label_create(child); in lv_example_scroll_1()
24 child = lv_obj_create(panel); in lv_example_scroll_1()
25 lv_obj_set_pos(child, 160, 80); in lv_example_scroll_1()
26 lv_obj_set_size(child, 80, 80); in lv_example_scroll_1()
28 lv_obj_t * child2 = lv_btn_create(child); in lv_example_scroll_1()
35 child = lv_obj_create(panel); in lv_example_scroll_1()
[all …]
Dlv_example_scroll_6.c16 lv_obj_t * child = lv_obj_get_child(cont, i); in scroll_event_cb() local
18 lv_obj_get_coords(child, &child_a); in scroll_event_cb()
39 lv_obj_set_style_translate_x(child, x, 0); in scroll_event_cb()
43 lv_obj_set_style_opa(child, LV_OPA_COVER - opa, 0); in scroll_event_cb()
Dlv_example_scroll_6.py13 child = cont.get_child(i)
15 child.get_coords(child_a)
35 child.set_style_translate_x(x, 0)
39 child.set_style_opa(lv.OPA.COVER - opa, 0)
/lvgl-3.4.0/src/extra/others/gridnav/
Dlv_gridnav.c208 lv_obj_t * child = lv_event_get_target(e); in gridnav_event_cb() local
209 if(lv_obj_get_parent(child) == obj) { in gridnav_event_cb()
211 dsc->focused_obj = child; in gridnav_event_cb()
213 lv_obj_add_state(child, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in gridnav_event_cb()
214 lv_obj_scroll_to_view(child, LV_ANIM_OFF); in gridnav_event_cb()
256 lv_obj_t * child = lv_obj_get_child(obj, i); in find_chid() local
257 if(child == start_child) continue; in find_chid()
258 if(obj_is_focuable(child) == false) continue; in find_chid()
264 x_err = get_x_center(child) - x_start; in find_chid()
265 y_err = get_y_center(child) - y_start; in find_chid()
[all …]
/lvgl-3.4.0/src/core/
Dlv_obj_pos.c783 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_move_children_by() local
784 if(ignore_floating && lv_obj_has_flag(child, LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_move_children_by()
785 child->coords.x1 += x_diff; in lv_obj_move_children_by()
786 child->coords.y1 += y_diff; in lv_obj_move_children_by()
787 child->coords.x2 += x_diff; in lv_obj_move_children_by()
788 child->coords.y2 += y_diff; in lv_obj_move_children_by()
790 lv_obj_move_children_by(child, x_diff, y_diff, false); in lv_obj_move_children_by()
967 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width() local
968 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_width()
970 if(!lv_obj_is_layout_positioned(child)) { in calc_content_width()
[all …]
Dlv_obj_scroll.c38 static void scroll_area_into_view(const lv_area_t * area, lv_obj_t * child, lv_point_t * scroll_val…
143 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_bottom() local
144 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_bottom()
145 child_res = LV_MAX(child_res, child->coords.y2); in lv_obj_get_scroll_bottom()
184 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_left() local
185 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_left()
186 x1 = LV_MIN(x1, child->coords.x1); in lv_obj_get_scroll_left()
221 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_right() local
222 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_right()
223 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right()
[all …]
Dlv_obj_tree.c91 lv_obj_t * child = lv_obj_get_child(obj, 0); in lv_obj_clean() local
92 while(child) { in lv_obj_clean()
93 obj_del_core(child); in lv_obj_clean()
94 child = lv_obj_get_child(obj, 0); in lv_obj_clean()
363 lv_obj_t * child = lv_obj_get_child(obj, 0); in obj_del_core() local
364 while(child) { in obj_del_core()
365 obj_del_core(child); in obj_del_core()
366 child = lv_obj_get_child(obj, 0); in obj_del_core()
Dlv_indev_scroll.c429 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_x() local
430 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_x()
431 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_x()
436 x_child = child->coords.x1; in find_snap_point_x()
440 x_child = child->coords.x2; in find_snap_point_x()
444 x_child = child->coords.x1 + lv_area_get_width(&child->coords) / 2; in find_snap_point_x()
484 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_y() local
485 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_y()
486 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_y()
491 y_child = child->coords.y1; in find_snap_point_y()
[all …]
Dlv_obj.c735 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local
736 lv_obj_mark_layout_as_dirty(child); in lv_obj_event()
835 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local
836 lv_obj_mark_layout_as_dirty(child); in lv_obj_event()
944 lv_obj_t * child = parent->spec_attr->children[i]; in obj_valid_child() local
945 if(child == obj_to_find) { in obj_valid_child()
950 bool found = obj_valid_child(child, obj_to_find); in obj_valid_child()
Dlv_refr.c179 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_obj() local
180 lv_refr_obj(draw_ctx, child); in lv_refr_obj()
686 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_get_top_obj() local
687 found_p = lv_refr_get_top_obj(area_p, child); in lv_refr_get_top_obj()
734 lv_obj_t * child = parent->spec_attr->children[i]; in lv_refr_obj_and_children() local
736 if(child == border_p) go = true; in lv_refr_obj_and_children()
740 lv_refr_obj(draw_ctx, child); in lv_refr_obj_and_children()
Dlv_obj_style.c641 lv_obj_t * child = obj->spec_attr->children[i]; in refresh_children_style() local
642 lv_obj_invalidate(child); in refresh_children_style()
643 lv_event_send(child, LV_EVENT_STYLE_CHANGED, NULL); in refresh_children_style()
644 lv_obj_invalidate(child); in refresh_children_style()
646 refresh_children_style(child); /*Check children too*/ in refresh_children_style()
Dlv_indev.c304 lv_obj_t * child = obj->spec_attr->children[i]; in lv_indev_search_obj() local
305 found_p = lv_indev_search_obj(child, point); in lv_indev_search_obj()
/lvgl-3.4.0/src/extra/widgets/list/
Dlv_list.c106 lv_obj_t * child = lv_obj_get_child(btn, i); in lv_list_get_btn_text() local
107 if(lv_obj_check_type(child, &lv_label_class)) { in lv_list_get_btn_text()
108 return lv_label_get_text(child); in lv_list_get_btn_text()
/lvgl-3.4.0/examples/widgets/list/
Dlv_example_list_2.c32 lv_obj_t* child = lv_obj_get_child(parent, i); in event_handler() local
33 if (child == currentButton) in event_handler()
35 lv_obj_add_state(child, LV_STATE_CHECKED); in event_handler()
39 lv_obj_clear_state(child, LV_STATE_CHECKED); in event_handler()
Dlv_example_list_2.py17 child = parent.get_child(i)
18 if child == currentButton:
19 child.add_state(lv.STATE.CHECKED)
21 child.clear_state(lv.STATE.CHECKED)
/lvgl-3.4.0/docs/widgets/extra/
Dspan.md22 ### Retrieving a span child
25 …ter to the child span at index `id`. In addition, `id` can be negative to index from the end of th…
27 …urn the first child of the spangroup. `lv_span_t* span = lv_spangroup_get_child(spangroup, -1)` wi…
/lvgl-3.4.0/docs/others/
Dgridnav.md7 Grid navigation (gridnav for short) is a feature that changes the currently focused child object as…
24 …e container is scrollable and the focused child is out of the view, gridnav will automatically scr…
/lvgl-3.4.0/docs/widgets/
Dobj.md54 To get a specific child of a parent use `lv_obj_get_child(parent, idx)`. Some examples for `idx`:
55 - `0` get the child created first
56 - `1` get the child created second
57 - `-1` get the child created last
63 lv_obj_t * child = lv_obj_get_child(parent, i);
64 /*Do something with child*/
/lvgl-3.4.0/docs/layouts/
Dflex.md73 … grow can be set on a child with `lv_obj_set_flex_grow(child, value)`. `value` needs to be > 1 …
105 You can force Flex to put an item into a new line with `lv_obj_add_flag(child, LV_OBJ_FLAG_FLEX_IN_…
Dgrid.md47 To do this call `lv_obj_set_grid_cell(child, column_align, column_pos, column_span, row_align, row_…
/lvgl-3.4.0/docs/overview/
Dobject.md54 ### Parent-child structure
57 …he parent but there are objects which are typically a parent (e.g. button) or a child (e.g. label).
79 lv_obj_set_pos(parent, 50, 50); /*Move the parent. The child will move with it.*/
86 If a child is partially or fully outside its parent then the parts outside will not be visible.
91 lv_obj_set_x(obj1, -30); /*Move the child a little bit off the parent*/
123 This is useful e.g. if you want to delete the parent of an object in the child's `LV_EVENT_DELETE` …
Dlayer.md12 …tton1 and then another button named button2. Then button1 (along with its child object(s)) will be…
/lvgl-3.4.0/src/extra/widgets/calendar/
Dlv_calendar.c162 lv_obj_t * child = lv_obj_get_child(obj, i); in lv_calendar_set_showed_date() local
163 if(child == calendar->btnm) continue; in lv_calendar_set_showed_date()
164 lv_event_send(child, LV_EVENT_VALUE_CHANGED, obj); in lv_calendar_set_showed_date()
/lvgl-3.4.0/docs/_static/css/
Dcustom.css14 span.pre:first-child

12