lv_obj_private.h

API reference for lv_obj_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_obj.h

Functions

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)
Parameters
NameTypeDescription
objlv_obj_t *pointer to an object

Returns: lv_obj_spec_attr_t * — the spec_attr created or NULL if something went wrong

lv_obj_add_child

 
lv_result_t lv_obj_add_child(lv_obj_t *parent, lv_obj_t *child)
Parameters
NameType
parentlv_obj_t *
childlv_obj_t *

lv_obj_remove_child

 
void lv_obj_remove_child(lv_obj_t *parent, lv_obj_t *child)
Parameters
NameType
parentlv_obj_t *
childlv_obj_t *

Structs

struct

_lv_obj_spec_attr_t

Special, rarely used attributes. They are allocated automatically if any elements is set.

MemberTypeDescription
childrenlv_obj_t **Store the pointer of the children in an array.
group_plv_group_t *
event_listlv_event_list_t
nameconst char *Pointer to the name
scrolllv_point_tThe current X/Y scroll offset
ext_click_padint32_tExtra click padding in all direction
ext_draw_sizeint32_tEXTend the size in every direction for drawing.
child_cntuint16_tNumber of children
scrollbar_modeuint16_tHow to display scrollbars, see lv_scrollbar_mode_t
scroll_snap_xuint16_tWhere to align the snappable children horizontally, see lv_scroll_snap_t
scroll_snap_yuint16_tWhere to align the snappable children vertically
scroll_diruint16_tThe allowed scroll direction(s), see lv_dir_t
layer_typeuint16_tCache the layer type here. Element of lv_intermediate_layer_type_t
name_staticuint16_t1: name was not dynamically allocated
struct

_lv_obj_t

MemberTypeDescription
ext_datalv_ext_data_t
class_pconst lv_obj_class_t *
parentlv_obj_t *
spec_attrlv_obj_spec_attr_t *
styleslv_obj_style_t *
user_datavoid *
idvoid *
coordslv_area_t
flagslv_obj_flag_t
stateuint16_t
layout_invuint16_t
readjust_scroll_after_layoutuint16_t
scr_layout_invuint16_t
skip_transuint16_t
style_cntuint16_t
h_layoutuint16_t
w_layoutuint16_t
h_ignore_sizeuint16_t
w_ignore_sizeuint16_t
is_deletinguint16_t
radio_buttonuint16_tAllow only one RADIO_BUTTON sibling to be checked
rendereduint16_tThe widget is rendered at least once already. It's used to skip initial animations and transitions.
Used by 1 function
  • lv_screen_load — param scr

Typedefs

lv_obj_spec_attr_t

 
typedef struct _lv_obj_spec_attr_t lv_obj_spec_attr_t

Special, rarely used attributes. They are allocated automatically if any elements is set.

Dependencies

How is this guide?

Last updated on

On this page