Lines Matching refs:btnm

138     lv_obj_t * btnm = lv_event_get_target(e);  in tabs_click_event_cb()  local
139 lv_subject_set_int(&subject_mode, lv_buttonmatrix_get_selected_button(btnm)); in tabs_click_event_cb()
144 lv_obj_t * btnm = lv_buttonmatrix_create(parent); in tabs_create() local
146 lv_obj_set_size(btnm, lv_pct(100), 40); in tabs_create()
148 lv_obj_set_size(btnm, lv_pct(100), 24); in tabs_create()
150 lv_obj_set_style_bg_opa(btnm, 0, 0); in tabs_create()
151 lv_obj_set_style_bg_opa(btnm, 0, LV_PART_ITEMS); in tabs_create()
152 lv_obj_set_style_border_width(btnm, 1, LV_PART_ITEMS); in tabs_create()
153 lv_obj_set_style_border_width(btnm, 2, LV_PART_ITEMS | LV_STATE_FOCUSED); in tabs_create()
154 lv_obj_set_style_border_side(btnm, LV_BORDER_SIDE_BOTTOM, LV_PART_ITEMS); in tabs_create()
155 lv_obj_set_style_border_color(btnm, EBIKE_COLOR_TURQUOISE, LV_PART_ITEMS); in tabs_create()
156 lv_obj_set_style_border_opa(btnm, LV_OPA_20, LV_PART_ITEMS); in tabs_create()
157 lv_obj_set_style_border_opa(btnm, LV_OPA_COVER, LV_PART_ITEMS | LV_STATE_FOCUSED); in tabs_create()
158 lv_obj_set_style_text_font(btnm, EBIKE_FONT_SMALL, LV_PART_ITEMS); in tabs_create()
159 lv_obj_set_style_text_color(btnm, lv_color_white(), LV_PART_ITEMS); in tabs_create()
160 lv_obj_set_style_text_color(btnm, EBIKE_COLOR_TURQUOISE, LV_PART_ITEMS | LV_STATE_FOCUSED); in tabs_create()
166 lv_buttonmatrix_set_map(btnm, texts); in tabs_create()
168 lv_obj_add_event_cb(btnm, tabs_click_event_cb, LV_EVENT_VALUE_CHANGED, NULL); in tabs_create()
169 lv_buttonmatrix_set_selected_button(btnm, lv_subject_get_int(&subject_mode)); in tabs_create()
171 return btnm; in tabs_create()