Lines Matching refs:area_p
50 void lv_area_set(lv_area_t * area_p, lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2) in lv_area_set() argument
52 area_p->x1 = x1; in lv_area_set()
53 area_p->y1 = y1; in lv_area_set()
54 area_p->x2 = x2; in lv_area_set()
55 area_p->y2 = y2; in lv_area_set()
63 void lv_area_set_width(lv_area_t * area_p, lv_coord_t w) in lv_area_set_width() argument
65 area_p->x2 = area_p->x1 + w - 1; in lv_area_set_width()
73 void lv_area_set_height(lv_area_t * area_p, lv_coord_t h) in lv_area_set_height() argument
75 area_p->y2 = area_p->y1 + h - 1; in lv_area_set_height()
84 void lv_area_set_pos(lv_area_t * area_p, lv_coord_t x, lv_coord_t y) in lv_area_set_pos() argument
86 lv_coord_t w = lv_area_get_width(area_p); in lv_area_set_pos()
87 lv_coord_t h = lv_area_get_height(area_p); in lv_area_set_pos()
88 area_p->x1 = x; in lv_area_set_pos()
89 area_p->y1 = y; in lv_area_set_pos()
90 lv_area_set_width(area_p, w); in lv_area_set_pos()
91 lv_area_set_height(area_p, h); in lv_area_set_pos()
99 uint32_t lv_area_get_size(const lv_area_t * area_p) in lv_area_get_size() argument
103 size = (uint32_t)(area_p->x2 - area_p->x1 + 1) * (area_p->y2 - area_p->y1 + 1); in lv_area_get_size()