lv_obj_draw.h
Enums
Functions
-
void lv_obj_init_draw_rect_dsc(lv_obj_t *obj, lv_part_t part, lv_draw_rect_dsc_t *draw_dsc)
Initialize a rectangle draw descriptor from an object's styles in its current state
备注
Only the relevant fields will be set. E.g. if
border width == 0the other border properties won't be evaluated.- 参数:
obj -- pointer to an object
part -- part of the object, e.g.
LV_PART_MAIN,LV_PART_SCROLLBAR,LV_PART_KNOB, etcdraw_dsc -- the descriptor to initialize. If an
..._opafield is set toLV_OPA_TRANSPthe related properties won't be initialized. Should be initialized withlv_draw_rect_dsc_init(draw_dsc).
-
void lv_obj_init_draw_label_dsc(lv_obj_t *obj, lv_part_t part, lv_draw_label_dsc_t *draw_dsc)
Initialize a label draw descriptor from an object's styles in its current state
- 参数:
obj -- pointer to an object
part -- part of the object, e.g.
LV_PART_MAIN,LV_PART_SCROLLBAR,LV_PART_KNOB, etcdraw_dsc -- the descriptor to initialize. If the
opafield is set to or the property is equal toLV_OPA_TRANSPthe rest won't be initialized. Should be initialized withlv_draw_label_dsc_init(draw_dsc).
-
void lv_obj_init_draw_image_dsc(lv_obj_t *obj, lv_part_t part, lv_draw_image_dsc_t *draw_dsc)
Initialize an image draw descriptor from an object's styles in its current state
- 参数:
obj -- pointer to an object
part -- part of the object, e.g.
LV_PART_MAIN,LV_PART_SCROLLBAR,LV_PART_KNOB, etcdraw_dsc -- the descriptor to initialize. Should be initialized with
lv_draw_image_dsc_init(draw_dsc).
-
void lv_obj_init_draw_line_dsc(lv_obj_t *obj, lv_part_t part, lv_draw_line_dsc_t *draw_dsc)
Initialize a line draw descriptor from an object's styles in its current state
- 参数:
obj -- pointer to an object
part -- part of the object, e.g.
LV_PART_MAIN,LV_PART_SCROLLBAR,LV_PART_KNOB, etcdraw_dsc -- the descriptor to initialize. Should be initialized with
lv_draw_line_dsc_init(draw_dsc).
-
void lv_obj_init_draw_arc_dsc(lv_obj_t *obj, lv_part_t part, lv_draw_arc_dsc_t *draw_dsc)
Initialize an arc draw descriptor from an object's styles in its current state
- 参数:
obj -- pointer to an object
part -- part of the object, e.g.
LV_PART_MAIN,LV_PART_SCROLLBAR,LV_PART_KNOB, etcdraw_dsc -- the descriptor to initialize. Should be initialized with
lv_draw_arc_dsc_init(draw_dsc).