Lines Matching refs:int32_t

39     int32_t * x;
40 int32_t * y;
41 int32_t * w;
42 int32_t * h;
45 int32_t grid_w;
46 int32_t grid_h;
62 static int32_t grid_align(int32_t cont_size, bool auto_size, lv_grid_align_t align, int32_t gap,
64 int32_t * size_array, int32_t * pos_array, bool reverse);
65 static uint32_t count_tracks(const int32_t * templ);
67 static inline const int32_t * get_col_dsc(lv_obj_t * obj) in get_col_dsc()
71 static inline const int32_t * get_row_dsc(lv_obj_t * obj) in get_row_dsc()
75 static inline int32_t get_col_pos(lv_obj_t * obj) in get_col_pos()
79 static inline int32_t get_row_pos(lv_obj_t * obj) in get_row_pos()
83 static inline int32_t get_col_span(lv_obj_t * obj) in get_col_span()
87 static inline int32_t get_row_span(lv_obj_t * obj) in get_row_span()
107 static inline int32_t get_margin_hor(lv_obj_t * obj) in get_margin_hor()
112 static inline int32_t get_margin_ver(lv_obj_t * obj) in get_margin_ver()
118 static inline int32_t lv_div_round_closest(int32_t dividend, int32_t divisor) in lv_div_round_closest()
150 void lv_obj_set_grid_dsc_array(lv_obj_t * obj, const int32_t col_dsc[], const int32_t row_dsc[]) in lv_obj_set_grid_dsc_array()
164 void lv_obj_set_grid_cell(lv_obj_t * obj, lv_grid_align_t x_align, int32_t col_pos, int32_t col_spa… in lv_obj_set_grid_cell()
165 lv_grid_align_t y_align, int32_t row_pos, int32_t row_span) in lv_obj_set_grid_cell()
178 int32_t lv_grid_fr(uint8_t x) in lv_grid_fr()
204 int32_t pad_left = lv_obj_get_style_space_left(cont, LV_PART_MAIN); in grid_update()
205 int32_t pad_top = lv_obj_get_style_space_top(cont, LV_PART_MAIN); in grid_update()
216 int32_t w_set = lv_obj_get_style_width(cont, LV_PART_MAIN); in grid_update()
217 int32_t h_set = lv_obj_get_style_height(cont, LV_PART_MAIN); in grid_update()
243 int32_t col_gap = lv_obj_get_style_pad_column(cont, LV_PART_MAIN); in calc()
244 int32_t row_gap = lv_obj_get_style_pad_row(cont, LV_PART_MAIN); in calc()
248 int32_t w_set = lv_obj_get_style_width(cont, LV_PART_MAIN); in calc()
249 int32_t h_set = lv_obj_get_style_height(cont, LV_PART_MAIN); in calc()
251 int32_t cont_w = lv_obj_get_content_width(cont); in calc()
256 int32_t cont_h = lv_obj_get_content_height(cont); in calc()
278 const int32_t * col_templ; in calc_cols()
289 int32_t pos = get_col_pos(cont); in calc_cols()
290 int32_t span = get_col_span(cont); in calc_cols()
292 int32_t * col_templ_sub = lv_malloc(sizeof(int32_t) * (span + 1)); in calc_cols()
293 lv_memcpy(col_templ_sub, &col_templ[pos], sizeof(int32_t) * span); in calc_cols()
299 int32_t cont_w = lv_obj_get_content_width(cont); in calc_cols()
302 c->x = lv_malloc(sizeof(int32_t) * c->col_num); in calc_cols()
303 c->w = lv_malloc(sizeof(int32_t) * c->col_num); in calc_cols()
308 int32_t size = LV_COORD_MIN; in calc_cols()
329 int32_t grid_w = 0; in calc_cols()
332 int32_t x = col_templ[i]; in calc_cols()
345 int32_t col_gap = lv_obj_get_style_pad_column(cont, LV_PART_MAIN); in calc_cols()
347 int32_t free_w = cont_w - grid_w; in calc_cols()
351 int32_t x = col_templ[i]; in calc_cols()
353 int32_t f = GET_FR(x); in calc_cols()
370 const int32_t * row_templ; in calc_rows()
381 int32_t pos = get_row_pos(cont); in calc_rows()
382 int32_t span = get_row_span(cont); in calc_rows()
384 int32_t * row_templ_sub = lv_malloc(sizeof(int32_t) * (span + 1)); in calc_rows()
385 lv_memcpy(row_templ_sub, &row_templ[pos], sizeof(int32_t) * span); in calc_rows()
392 c->y = lv_malloc(sizeof(int32_t) * c->row_num); in calc_rows()
393 c->h = lv_malloc(sizeof(int32_t) * c->row_num); in calc_rows()
397 int32_t size = LV_COORD_MIN; in calc_rows()
418 int32_t grid_h = 0; in calc_rows()
421 int32_t x = row_templ[i]; in calc_rows()
434 int32_t row_gap = lv_obj_get_style_pad_row(cont, LV_PART_MAIN); in calc_rows()
435 int32_t cont_h = lv_obj_get_content_height(cont) - row_gap * (c->row_num - 1); in calc_rows()
436 int32_t free_h = cont_h - grid_h; in calc_rows()
440 int32_t x = row_templ[i]; in calc_rows()
442 int32_t f = GET_FR(x); in calc_rows()
476 int32_t col_x1 = c->x[col_pos]; in item_repos()
477 int32_t col_x2 = c->x[col_pos + col_span - 1] + c->w[col_pos + col_span - 1]; in item_repos()
478 int32_t col_w = col_x2 - col_x1; in item_repos()
480 int32_t row_y1 = c->y[row_pos]; in item_repos()
481 int32_t row_y2 = c->y[row_pos + row_span - 1] + c->h[row_pos + row_span - 1]; in item_repos()
482 int32_t row_h = row_y2 - row_y1; in item_repos()
490 int32_t x; in item_repos()
491 int32_t y; in item_repos()
492 int32_t item_w = lv_area_get_width(&item->coords); in item_repos()
493 int32_t item_h = lv_area_get_height(&item->coords); in item_repos()
553 int32_t tr_x = lv_obj_get_style_translate_x(item, LV_PART_MAIN); in item_repos()
554 int32_t tr_y = lv_obj_get_style_translate_y(item, LV_PART_MAIN); in item_repos()
555 int32_t w = lv_obj_get_width(item); in item_repos()
556 int32_t h = lv_obj_get_height(item); in item_repos()
563 int32_t diff_x = hint->grid_abs.x + x - item->coords.x1; in item_repos()
564 int32_t diff_y = hint->grid_abs.y + y - item->coords.y1; in item_repos()
588 static int32_t grid_align(int32_t cont_size, bool auto_size, lv_grid_align_t align, int32_t gap, in grid_align()
590 int32_t * size_array, int32_t * pos_array, bool reverse) in grid_align()
592 int32_t grid_size = 0; in grid_align()
624 gap = (int32_t)(cont_size - grid_size) / (int32_t)(track_num - 1); in grid_align()
627 gap = (int32_t)(cont_size - grid_size) / (int32_t)(track_num); in grid_align()
631 gap = (int32_t)(cont_size - grid_size) / (int32_t)(track_num + 1); in grid_align()
644 int32_t total_gird_size = pos_array[track_num - 1] + size_array[track_num - 1] - pos_array[0]; in grid_align()
657 static uint32_t count_tracks(const int32_t * templ) in count_tracks()