lv_obj_private.h
API reference for lv_obj_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_obj.h
Summary
Functions
core/lv_obj_private.h:102function
lv_obj_allocate_spec_attr
Allocate special data for an object if not allocated yet.
lv_obj_spec_attr_t * lv_obj_allocate_spec_attr(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
Returns: lv_obj_spec_attr_t * — the spec_attr created or NULL if something went wrong
core/lv_obj_private.h:104function
lv_obj_add_child
lv_result_t lv_obj_add_child(lv_obj_t *parent, lv_obj_t *child)| Name | Type |
|---|---|
parent | lv_obj_t * |
child | lv_obj_t * |
core/lv_obj_private.h:105function
lv_obj_remove_child
void lv_obj_remove_child(lv_obj_t *parent, lv_obj_t *child)| Name | Type |
|---|---|
parent | lv_obj_t * |
child | lv_obj_t * |
Structs
struct
_lv_obj_spec_attr_t
Special, rarely used attributes. They are allocated automatically if any elements is set.
| Member | Type | Description |
|---|---|---|
children | lv_obj_t ** | Store the pointer of the children in an array. |
group_p | lv_group_t * | |
event_list | lv_event_list_t | |
name | const char * | Pointer to the name |
scroll | lv_point_t | The current X/Y scroll offset |
ext_click_pad | int32_t | Extra click padding in all direction |
ext_draw_size | int32_t | EXTend the size in every direction for drawing. |
child_cnt | uint16_t | Number of children |
scrollbar_mode | uint16_t | How to display scrollbars, see lv_scrollbar_mode_t |
scroll_snap_x | uint16_t | Where to align the snappable children horizontally, see lv_scroll_snap_t |
scroll_snap_y | uint16_t | Where to align the snappable children vertically |
scroll_dir | uint16_t | The allowed scroll direction(s), see lv_dir_t |
layer_type | uint16_t | Cache the layer type here. Element of lv_intermediate_layer_type_t |
name_static | uint16_t | 1: name was not dynamically allocated |
struct
_lv_obj_t
| Member | Type | Description |
|---|---|---|
ext_data | lv_ext_data_t | |
class_p | const lv_obj_class_t * | |
parent | lv_obj_t * | |
spec_attr | lv_obj_spec_attr_t * | |
styles | lv_obj_style_t * | |
user_data | void * | |
id | void * | |
coords | lv_area_t | |
flags | lv_obj_flag_t | |
state | uint16_t | |
layout_inv | uint16_t | |
readjust_scroll_after_layout | uint16_t | |
scr_layout_inv | uint16_t | |
skip_trans | uint16_t | |
style_cnt | uint16_t | |
h_layout | uint16_t | |
w_layout | uint16_t | |
h_ignore_size | uint16_t | |
w_ignore_size | uint16_t | |
is_deleting | uint16_t | |
radio_button | uint16_t | Allow only one RADIO_BUTTON sibling to be checked |
rendered | uint16_t | The widget is rendered at least once already. It's used to skip initial animations and transitions. |
Used by 1 function
lv_screen_load— paramscr
Typedefs
core/lv_obj_private.h:53typedef
lv_obj_spec_attr_t
typedef struct _lv_obj_spec_attr_t lv_obj_spec_attr_tSpecial, rarely used attributes. They are allocated automatically if any elements is set.
Dependencies
lv_file_explorer_private.hlv_3dtexture_private.hlv_arc_private.hlv_arclabel_private.hlv_bar_private.hlv_button_private.hlv_buttonmatrix_private.hlv_calendar_private.hlv_chart_private.hlv_checkbox_private.hlv_dropdown_private.hlv_image_private.hlv_imagebutton_private.hlv_ime_pinyin_private.hlv_label_private.hlv_led_private.hlv_line_private.hlv_menu_private.hlv_msgbox_private.hlv_roller_private.hlv_scale_private.hlv_span_private.hlv_switch_private.hlv_table_private.hlv_tabview_private.hlv_textarea_private.hlv_tileview_private.hlv_win_private.h
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on