16 #ifdef LV_CONF_INCLUDE_SIMPLE 19 #include "../../../lv_conf.h" 24 #include "../lv_core/lv_obj.h" 31 #define LV_BTNM_WIDTH_MASK 0x0007 32 #define LV_BTNM_BTN_NONE 0xFFFF 40 LV_BTNM_CTRL_HIDDEN = 0x0008,
41 LV_BTNM_CTRL_NO_REPEAT = 0x0010,
42 LV_BTNM_CTRL_INACTIVE = 0x0020,
43 LV_BTNM_CTRL_TGL_ENABLE = 0x0040,
44 LV_BTNM_CTRL_TGL_STATE = 0x0080,
45 LV_BTNM_CTRL_CLICK_TRIG = 0x0100,
47 typedef uint16_t lv_btnm_ctrl_t;
56 lv_btnm_ctrl_t * ctrl_bits;
57 const lv_style_t * styles_btn[_LV_BTN_STATE_NUM];
62 uint8_t one_toggle : 1;
67 LV_BTNM_STYLE_BTN_REL,
69 LV_BTNM_STYLE_BTN_TGL_REL,
70 LV_BTNM_STYLE_BTN_TGL_PR,
71 LV_BTNM_STYLE_BTN_INA,
73 typedef uint8_t lv_btnm_style_t;
99 void lv_btnm_set_map(
const lv_obj_t * btnm,
const char * map[]);
113 void lv_btnm_set_ctrl_map(
const lv_obj_t * btnm,
const lv_btnm_ctrl_t ctrl_map[]);
121 void lv_btnm_set_pressed(
const lv_obj_t * btnm, uint16_t
id);
129 void lv_btnm_set_style(
lv_obj_t * btnm, lv_btnm_style_t type,
const lv_style_t * style);
136 void lv_btnm_set_recolor(
const lv_obj_t * btnm,
bool en);
143 void lv_btnm_set_btn_ctrl(
const lv_obj_t * btnm, uint16_t btn_id, lv_btnm_ctrl_t ctrl);
150 void lv_btnm_clear_btn_ctrl(
const lv_obj_t * btnm, uint16_t btn_id, lv_btnm_ctrl_t ctrl);
157 void lv_btnm_set_btn_ctrl_all(
lv_obj_t * btnm, lv_btnm_ctrl_t ctrl);
165 void lv_btnm_clear_btn_ctrl_all(
lv_obj_t * btnm, lv_btnm_ctrl_t ctrl);
176 void lv_btnm_set_btn_width(
const lv_obj_t * btnm, uint16_t btn_id, uint8_t width);
187 void lv_btnm_set_one_toggle(
lv_obj_t * btnm,
bool one_toggle);
198 const char ** lv_btnm_get_map_array(
const lv_obj_t * btnm);
205 bool lv_btnm_get_recolor(
const lv_obj_t * btnm);
213 uint16_t lv_btnm_get_active_btn(
const lv_obj_t * btnm);
221 const char * lv_btnm_get_active_btn_text(
const lv_obj_t * btnm);
229 uint16_t lv_btnm_get_pressed_btn(
const lv_obj_t * btnm);
238 const char * lv_btnm_get_btn_text(
const lv_obj_t * btnm, uint16_t btn_id);
248 bool lv_btnm_get_btn_ctrl(
lv_obj_t * btnm, uint16_t btn_id, lv_btnm_ctrl_t ctrl);
263 bool lv_btnm_get_one_toggle(
const lv_obj_t * btnm);
struct _lv_obj_t * par
Definition: lv_obj.h:186
Definition: lv_style.h:57