lv_checkbox.h
API reference for lv_checkbox.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_checkbox_private.h
Summary
Functions
public/widgets/lv_checkbox.h:56function
lv_checkbox_set_text
Set the text of a check box. txt will be copied and may be deallocated after this function returns.
void lv_checkbox_set_text(lv_obj_t *obj, const char *txt)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a check box |
txt | const char * | the text of the check box. May be NULL. When NULL the widget is only refreshed. |
public/widgets/lv_checkbox.h:64function
lv_checkbox_set_text_static
Set the text of a check box. txt must not be deallocated during the life of this checkbox.
void lv_checkbox_set_text_static(lv_obj_t *obj, const char *txt)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a check box |
txt | const char * | the text of the check box. |
public/widgets/lv_checkbox.h:75function
lv_checkbox_get_text
Get the text of a check box
const char * lv_checkbox_get_text(const lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | pointer to check box object |
Returns: const char * — pointer to the text of the check box
public/widgets/lv_checkbox.h:44function
lv_checkbox_create
Create a check box object
lv_obj_t * lv_checkbox_create(lv_obj_t *parent)| Name | Type | Description |
|---|---|---|
parent | lv_obj_t * | pointer to a parent widget May be NULL.. When NULL, the widget is created as a screen on the default display. |
Returns: lv_obj_t * — pointer to the created check box
Enums
_lv_property_checkbox_id_t
| Name | Value |
|---|---|
LV_PROPERTY_CHECKBOX_TEXT | (LV_PROPERTY_CHECKBOX_START + ((int) 0 )) | (( 7 ) << 28 ) |
LV_PROPERTY_CHECKBOX_END |
Variables
public/widgets/lv_checkbox.h:25variable
lv_checkbox_class
const lv_obj_class_t lv_checkbox_classDependencies
Indirect dependencies
lv_anim.hlv_area.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.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_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_layout.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_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_symbol_def.hlv_text.hlv_timer.hlv_types.h
Last updated on