/lvgl-3.7.0/examples/scroll/ |
D | lv_example_scroll_1.py | 9 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 …]
|
D | lv_example_scroll_1.c | 14 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 …]
|
D | lv_example_scroll_6.c | 16 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()
|
D | lv_example_scroll_6.py | 13 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.7.0/src/extra/others/gridnav/ |
D | lv_gridnav.c | 230 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.7.0/src/extra/widgets/calendar/ |
D | lv_calendar_header_dropdown.c | 73 lv_obj_t * child = NULL; in lv_calendar_header_dropdown_set_year_list() local 79 child = lv_obj_get_child(parent, idx); in lv_calendar_header_dropdown_set_year_list() 80 if(lv_obj_check_type(child, &lv_calendar_header_dropdown_class)) { in lv_calendar_header_dropdown_set_year_list() 89 const uint32_t header_child_count = lv_obj_get_child_cnt(child); in lv_calendar_header_dropdown_set_year_list() 93 child = lv_obj_get_child(child, idx); in lv_calendar_header_dropdown_set_year_list() 94 if(lv_obj_check_type(child, &lv_dropdown_class)) { in lv_calendar_header_dropdown_set_year_list() 102 lv_dropdown_clear_options(child); in lv_calendar_header_dropdown_set_year_list() 103 lv_dropdown_set_options(child, years_list); in lv_calendar_header_dropdown_set_year_list()
|
D | lv_calendar.c | 162 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.7.0/tests/src/test_cases/ |
D | test_style.c | 76 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.7.0/docs/_static/js/ |
D | custom.js | 47 children.forEach(child => { 49 if (child.id) { 51 child.id = 'docs-' + child.id;
|
/lvgl-3.7.0/src/core/ |
D | lv_obj_pos.c | 785 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_move_children_by() local 786 if(ignore_floating && lv_obj_has_flag(child, LV_OBJ_FLAG_FLOATING)) continue; in lv_obj_move_children_by() 787 child->coords.x1 += x_diff; in lv_obj_move_children_by() 788 child->coords.y1 += y_diff; in lv_obj_move_children_by() 789 child->coords.x2 += x_diff; in lv_obj_move_children_by() 790 child->coords.y2 += y_diff; in lv_obj_move_children_by() 792 lv_obj_move_children_by(child, x_diff, y_diff, false); in lv_obj_move_children_by() 1005 lv_obj_t * child = obj->spec_attr->children[i]; in calc_content_width() local 1006 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in calc_content_width() 1008 if(!lv_obj_is_layout_positioned(child)) { in calc_content_width() [all …]
|
D | lv_obj_scroll.c | 37 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 …]
|
D | lv_obj_tree.c | 87 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()
|
D | lv_indev_scroll.c | 465 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_x() local 466 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_x() 467 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_x() 472 x_child = child->coords.x1; in find_snap_point_x() 476 x_child = child->coords.x2; in find_snap_point_x() 480 x_child = child->coords.x1 + lv_area_get_width(&child->coords) / 2; in find_snap_point_x() 520 lv_obj_t * child = obj->spec_attr->children[i]; in find_snap_point_y() local 521 if(lv_obj_has_flag_any(child, LV_OBJ_FLAG_HIDDEN | LV_OBJ_FLAG_FLOATING)) continue; in find_snap_point_y() 522 if(lv_obj_has_flag(child, LV_OBJ_FLAG_SNAPPABLE)) { in find_snap_point_y() 527 y_child = child->coords.y1; in find_snap_point_y() [all …]
|
D | lv_obj.c | 751 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local 752 lv_obj_mark_layout_as_dirty(child); in lv_obj_event() 851 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_event() local 852 lv_obj_mark_layout_as_dirty(child); in lv_obj_event() 963 lv_obj_t * child = parent->spec_attr->children[i]; in obj_valid_child() local 964 if(child == obj_to_find) { in obj_valid_child() 969 bool found = obj_valid_child(child, obj_to_find); in obj_valid_child()
|
D | lv_refr.c | 181 lv_obj_t * child = obj->spec_attr->children[i]; in lv_obj_redraw() local 182 refr_obj(draw_ctx, child); in lv_obj_redraw() 823 lv_obj_t * child = obj->spec_attr->children[i]; in lv_refr_get_top_obj() local 824 found_p = lv_refr_get_top_obj(area_p, child); in lv_refr_get_top_obj() 868 lv_obj_t * child = parent->spec_attr->children[i]; in refr_obj_and_children() local 870 if(child == border_p) go = true; in refr_obj_and_children() 874 refr_obj(draw_ctx, child); in refr_obj_and_children()
|
D | lv_obj_style.c | 699 lv_obj_t * child = obj->spec_attr->children[i]; in refresh_children_style() local 700 lv_obj_invalidate(child); in refresh_children_style() 701 lv_event_send(child, LV_EVENT_STYLE_CHANGED, NULL); in refresh_children_style() 702 lv_obj_invalidate(child); in refresh_children_style() 704 refresh_children_style(child); /*Check children too*/ in refresh_children_style()
|
/lvgl-3.7.0/src/extra/widgets/list/ |
D | lv_list.c | 106 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.7.0/examples/widgets/list/ |
D | lv_example_list_2.c | 27 lv_obj_t * child = lv_obj_get_child(parent, i); in event_handler() local 28 if(child == currentButton) { in event_handler() 29 lv_obj_add_state(child, LV_STATE_CHECKED); in event_handler() 32 lv_obj_clear_state(child, LV_STATE_CHECKED); in event_handler()
|
D | lv_example_list_2.py | 17 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.7.0/docs/widgets/extra/ |
D | span.md | 18 ### 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.7.0/docs/others/ |
D | gridnav.md | 3 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.7.0/docs/widgets/ |
D | obj.md | 50 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.7.0/docs/layouts/ |
D | flex.md | 69 … 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_…
|
/lvgl-3.7.0/docs/overview/ |
D | object.md | 50 ### 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` …
|
/lvgl-3.7.0/docs/_static/css/ |
D | custom.css | 14 span.pre:first-child
|