Home
last modified time | relevance | path

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

12

/lvgl-3.6.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()
40 lv_obj_set_style_translate_x(child, x, 0); in scroll_event_cb()
44 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.6.0/src/extra/others/gridnav/
Dlv_gridnav.c230 lv_obj_t * child = lv_event_get_target(e); in gridnav_event_cb() local
231 if(lv_obj_get_parent(child) == obj) { in gridnav_event_cb()
233 dsc->focused_obj = child; in gridnav_event_cb()
235 lv_obj_add_state(child, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in gridnav_event_cb()
236 lv_obj_scroll_to_view(child, LV_ANIM_OFF); in gridnav_event_cb()
278 lv_obj_t * child = lv_obj_get_child(obj, i); in find_chid() local
279 if(child == start_child) continue; in find_chid()
280 if(obj_is_focuable(child) == false) continue; in find_chid()
286 x_err = get_x_center(child) - x_start; in find_chid()
287 y_err = get_y_center(child) - y_start; in find_chid()
[all …]
/lvgl-3.6.0/tests/src/test_cases/
Dtest_style.c76 lv_obj_t * child = lv_obj_create(parent); in test_inherit_meta() local
77 lv_obj_t * grandchild = lv_label_create(child); in test_inherit_meta()
79 …lv_obj_set_local_style_prop_meta(child, LV_STYLE_TEXT_COLOR, LV_STYLE_PROP_META_INHERIT, LV_PART_M… in test_inherit_meta()
98 lv_obj_t * child = lv_obj_create(parent); in test_inherit_meta_with_lower_precedence_style() local
99 lv_obj_t * grandchild = lv_label_create(child); in test_inherit_meta_with_lower_precedence_style()
104 …lv_obj_set_local_style_prop_meta(child, LV_STYLE_TEXT_COLOR, LV_STYLE_PROP_META_INHERIT, LV_PART_M… in test_inherit_meta_with_lower_precedence_style()
105 lv_obj_add_style(child, &style, LV_PART_MAIN); in test_inherit_meta_with_lower_precedence_style()
/lvgl-3.6.0/src/core/
Dlv_obj_pos.c787 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_move_children_by() local
788 if(ignore_floating && lv_obj_has_flag(child, LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_move_children_by()
789 child->coords.x1 += x_diff; in lv_obj_move_children_by()
790 child->coords.y1 += y_diff; in lv_obj_move_children_by()
791 child->coords.x2 += x_diff; in lv_obj_move_children_by()
792 child->coords.y2 += y_diff; in lv_obj_move_children_by()
794 lv_obj_move_children_by(child, x_diff, y_diff, false); in lv_obj_move_children_by()
1011 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width() local
1012 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_width()
1014 if(!lv_obj_is_layout_positioned(child)) { in calc_content_width()
[all …]
Dlv_obj_scroll.c37 static void scroll_area_into_view(const lv_area_t * area, lv_obj_t * child, lv_point_t * scroll_val…
142 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_bottom() local
143 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_bottom()
144 child_res = LV_MAX(child_res, child->coords.y2); in lv_obj_get_scroll_bottom()
183 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_left() local
184 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_left()
185 x1 = LV_MIN(x1, child->coords.x1); in lv_obj_get_scroll_left()
220 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_get_scroll_right() local
221 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_get_scroll_right()
222 child_res = LV_MAX(child_res, child->coords.x2); in lv_obj_get_scroll_right()
[all …]
Dlv_obj_tree.c87 lv_obj_t * child = lv_obj_get_child(obj, 0); in lv_obj_clean() local
88 while(child) { in lv_obj_clean()
89 obj_del_core(child); in lv_obj_clean()
90 child = lv_obj_get_child(obj, 0); in lv_obj_clean()
360 lv_obj_t * child = lv_obj_get_child(obj, 0); in obj_del_core() local
361 while(child) { in obj_del_core()
362 obj_del_core(child); in obj_del_core()
363 child = lv_obj_get_child(obj, 0); in obj_del_core()
Dlv_indev_scroll.c468 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_x() local
469 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_x()
470 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_x()
475 x_child = child->coords.x1; in find_snap_point_x()
479 x_child = child->coords.x2; in find_snap_point_x()
483 x_child = child->coords.x1 + lv_area_get_width(&child->coords) / 2; in find_snap_point_x()
523 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_y() local
524 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_y()
525 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_y()
530 y_child = child->coords.y1; in find_snap_point_y()
[all …]
Dlv_obj.c752 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local
753 lv_obj_mark_layout_as_dirty(child); in lv_obj_event()
852 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local
853 lv_obj_mark_layout_as_dirty(child); in lv_obj_event()
964 lv_obj_t * child = parent->spec_attr->children[i]; in obj_valid_child() local
965 if(child == obj_to_find) { in obj_valid_child()
970 bool found = obj_valid_child(child, obj_to_find); in obj_valid_child()
Dlv_refr.c181 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_redraw() local
182 refr_obj(draw_ctx, child); in lv_obj_redraw()
825 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_get_top_obj() local
826 found_p = lv_refr_get_top_obj(area_p, child); in lv_refr_get_top_obj()
870 lv_obj_t * child = parent->spec_attr->children[i]; in refr_obj_and_children() local
872 if(child == border_p) go = true; in refr_obj_and_children()
876 refr_obj(draw_ctx, child); in refr_obj_and_children()
Dlv_obj_style.c704 lv_obj_t * child = obj->spec_attr->children[i]; in refresh_children_style() local
705 lv_obj_invalidate(child); in refresh_children_style()
706 lv_event_send(child, LV_EVENT_STYLE_CHANGED, NULL); in refresh_children_style()
707 lv_obj_invalidate(child); in refresh_children_style()
709 refresh_children_style(child); /*Check children too*/ in refresh_children_style()
/lvgl-3.6.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.6.0/examples/widgets/list/
Dlv_example_list_2.c28 lv_obj_t * child = lv_obj_get_child(parent, i); in event_handler() local
29 if(child == currentButton) { in event_handler()
30 lv_obj_add_state(child, LV_STATE_CHECKED); in event_handler()
33 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.6.0/docs/widgets/extra/
Dspan.md18 ### Retrieving a span child
21 …ter to the child span at index `id`. In addition, `id` can be negative to index from the end of th…
23 …urn the first child of the spangroup. `lv_span_t* span = lv_spangroup_get_child(spangroup, -1)` wi…
/lvgl-3.6.0/docs/others/
Dgridnav.md3 Grid navigation (gridnav for short) is a feature that changes the currently focused child object as…
20 …e container is scrollable and the focused child is out of the view, gridnav will automatically scr…
/lvgl-3.6.0/docs/widgets/
Dobj.md50 To get a specific child of a parent use `lv_obj_get_child(parent, idx)`. Some examples for `idx`:
51 - `0` get the child created first
52 - `1` get the child created second
53 - `-1` get the child created last
59 lv_obj_t * child = lv_obj_get_child(parent, i);
60 /*Do something with child*/
/lvgl-3.6.0/docs/layouts/
Dflex.md69 … grow can be set on a child with `lv_obj_set_flex_grow(child, value)`. `value` needs to be > 1 …
101 You can force Flex to put an item into a new line with `lv_obj_add_flag(child, LV_OBJ_FLAG_FLEX_IN_…
Dgrid.md43 To do this call `lv_obj_set_grid_cell(child, column_align, column_pos, column_span, row_align, row_…
/lvgl-3.6.0/docs/overview/
Dobject.md50 ### Parent-child structure
53 …he parent but there are objects which are typically a parent (e.g. button) or a child (e.g. label).
75 lv_obj_set_pos(parent, 50, 50); /*Move the parent. The child will move with it.*/
82 If a child is partially or fully outside its parent then the parts outside will not be visible.
87 lv_obj_set_x(obj1, -30); /*Move the child a little bit off the parent*/
119 This is useful e.g. if you want to delete the parent of an object in the child's `LV_EVENT_DELETE` …
Dlayer.md8 …tton1 and then another button named button2. Then button1 (along with its child object(s)) will be…
/lvgl-3.6.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.6.0/docs/_static/css/
Dcustom.css14 span.pre:first-child

12