lv_obj_class.h¶
Typedefs
-
typedef void (*lv_obj_class_event_cb_t)(lv_obj_class_t *class_p, lv_event_t *e)¶
Enums
-
enum lv_obj_class_editable_t¶
Values:
-
enumerator LV_OBJ_CLASS_EDITABLE_INHERIT¶
Check the base class. Must have 0 value to let zero initialized class inherit
-
enumerator LV_OBJ_CLASS_EDITABLE_TRUE¶
-
enumerator LV_OBJ_CLASS_EDITABLE_FALSE¶
-
enumerator LV_OBJ_CLASS_EDITABLE_INHERIT¶
Functions
-
lv_obj_t *lv_obj_class_create_obj(const lv_obj_class_t *class_p, lv_obj_t *parent)¶
Create an object form a class descriptor
- Parameters:
class_p – pointer to a class
parent – pointer to an object where the new object should be created
- Returns:
pointer to the created object
-
void lv_obj_class_init_obj(lv_obj_t *obj)¶
-
bool lv_obj_is_editable(lv_obj_t *obj)¶
-
bool lv_obj_is_group_def(lv_obj_t *obj)¶
-
void lv_obj_set_external_data(lv_obj_t *obj, void *data, void (*free_cb)(void *data))¶
Associates an array of external data pointers with an LVGL object.
Associates custom user data with an LVGL object and specifies a destructor function that will be automatically invoked when the object is deleted to properly clean up the associated resources.
- Parameters:
obj – Target LVGL object
data – User-defined data pointer to associate with a object
free_cb – Cleanup function called for each non-NULL data pointer during object deletion. Receives single data pointer as parameter. NULL means no automatic cleanup.