lv_obj_tree.h
API reference for lv_obj_tree.h
Functions
lv_obj_set_parent
Move the parent of an object. The relative coordinates will be kept.
void lv_obj_set_parent(lv_obj_t *obj, lv_obj_t *parent)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object whose parent needs to be changed |
parent | lv_obj_t * | pointer to the new parent |
lv_obj_set_name
Set a name for a widget. The name will be allocated and freed when the widget is deleted or a new name is set.
void lv_obj_set_name(lv_obj_t *obj, const char *name)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
name | const char * | the name to set. If set to NULL the default "<widget_type>_#" name will be used. |
If the name ends with a #, older siblings with the same name will be counted, and the # will be replaced by the index of the given widget. For example, creating multiple widgets with the name "mybtn_#" will result in resolved names like "mybtn_0", "mybtn_1", "mybtn_2", etc. The name is resolved when lv_obj_get_name_resolved is called, so the result reflects the currently existing widgets at that time.
lv_obj_set_name_static
Set a name for a widget. Only a pointer will be saved.
void lv_obj_set_name_static(lv_obj_t *obj, const char *name)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
name | const char * | the name to set. If set to NULL the default "<widget_type>_#" name will be used. |
If the name ends with a #, older siblings with the same name will be counted, and the # will be replaced by the index of the given widget. For example, creating multiple widgets with the name "mybtn_#" will result in resolved names like "mybtn_0", "mybtn_1", "mybtn_2", etc. The name is resolved when lv_obj_get_name_resolved is called, so the result reflects the currently existing widgets at that time.
Enums
lv_obj_tree_walk_res_t
| Name |
|---|
LV_OBJ_TREE_WALK_NEXT |
LV_OBJ_TREE_WALK_SKIP_CHILDREN |
LV_OBJ_TREE_WALK_END |
Typedefs
lv_obj_tree_walk_cb_t
typedef lv_obj_tree_walk_res_t(* lv_obj_tree_walk_cb_t) (lv_obj_t *, void *)Used by 1 function
lv_obj_tree_walk— paramcb
Dependencies
How is this guide?
Last updated on