mikroSDK Reference Manual
lv_checkbox.h
1
6#ifndef LV_CHECKBOX_H
7#define LV_CHECKBOX_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../lv_conf_internal.h"
17#include "../core/lv_obj.h"
18
19#if LV_USE_CHECKBOX != 0
20
21/*********************
22 * DEFINES
23 *********************/
24
25/**********************
26 * TYPEDEFS
27 **********************/
28
29typedef struct {
30 lv_obj_t obj;
31 char * txt;
32 uint32_t static_txt : 1;
33} lv_checkbox_t;
34
35extern const lv_obj_class_t lv_checkbox_class;
36
41typedef enum {
42 LV_CHECKBOX_DRAW_PART_BOX,
43} lv_checkbox_draw_part_type_t;
44
45/**********************
46 * GLOBAL PROTOTYPES
47 **********************/
48
54lv_obj_t * lv_checkbox_create(lv_obj_t * parent);
55
56/*=====================
57 * Setter functions
58 *====================*/
59
66void lv_checkbox_set_text(lv_obj_t * obj, const char * txt);
67
74void lv_checkbox_set_text_static(lv_obj_t * obj, const char * txt);
75
76/*=====================
77 * Getter functions
78 *====================*/
79
85const char * lv_checkbox_get_text(const lv_obj_t * obj);
86
87/**********************
88 * MACROS
89 **********************/
90
91#endif /*LV_USE_CHECKBOX*/
92
93#ifdef __cplusplus
94} /*extern "C"*/
95#endif
96
97#endif /*LV_CHECKBOX_H*/
Definition lv_obj_class.h:49
Definition lv_obj.h:174