Lines Matching refs:button_areas
95 ext->button_areas = NULL; in lv_btnmatrix_create()
240 … lv_area_set(&ext->button_areas[btn_i], ext->button_areas[btn_i - 1].x2, act_y, act_x + act_unit_w, in lv_btnmatrix_set_map()
244 … lv_area_set(&ext->button_areas[btn_i], act_x, act_y, act_x + act_unit_w, act_y + btn_h); in lv_btnmatrix_set_map()
689 lv_area_copy(&area_tmp, &ext->button_areas[btn_i]); in lv_btnmatrix_design()
839 lv_mem_free(ext->button_areas); in lv_btnmatrix_signal()
1029 …ext->button_areas[ext->btn_id_focused].x1 + (lv_area_get_width(&ext->button_areas[ext->btn_id_focu… in lv_btnmatrix_signal()
1032 … if(ext->button_areas[area_below].y1 > ext->button_areas[ext->btn_id_focused].y1 && in lv_btnmatrix_signal()
1033 pr_center >= ext->button_areas[area_below].x1 && in lv_btnmatrix_signal()
1034 pr_center <= ext->button_areas[area_below].x2 + pad_inner && in lv_btnmatrix_signal()
1055 …ext->button_areas[ext->btn_id_focused].x1 + (lv_area_get_width(&ext->button_areas[ext->btn_id_focu… in lv_btnmatrix_signal()
1058 … if(ext->button_areas[area_above].y1 < ext->button_areas[ext->btn_id_focused].y1 && in lv_btnmatrix_signal()
1059 pr_center >= ext->button_areas[area_above].x1 - pad_inner && in lv_btnmatrix_signal()
1060 pr_center <= ext->button_areas[area_above].x2 && in lv_btnmatrix_signal()
1129 if(ext->button_areas != NULL) { in allocate_btn_areas_and_controls()
1130 lv_mem_free(ext->button_areas); in allocate_btn_areas_and_controls()
1131 ext->button_areas = NULL; in allocate_btn_areas_and_controls()
1138 ext->button_areas = lv_mem_alloc(sizeof(lv_area_t) * btn_cnt); in allocate_btn_areas_and_controls()
1139 LV_ASSERT_MEM(ext->button_areas); in allocate_btn_areas_and_controls()
1142 if(ext->button_areas == NULL || ext->ctrl_bits == NULL) btn_cnt = 0; in allocate_btn_areas_and_controls()
1221 lv_area_copy(&btn_area, &ext->button_areas[i]); in get_button_from_point()
1254 lv_area_copy(&btn_area, &ext->button_areas[btn_idx]); in invalidate_button_area()