Searched refs:rects (Results 1 – 2 of 2) sorted by relevance
/lvgl-3.6.0/src/extra/libs/tiny_ttf/ |
D | stb_rect_pack.h | 101 STBRP_DEF int stbrp_pack_rects(stbrp_context * context, stbrp_rect * rects, int num_rects); 550 STBRP_DEF int stbrp_pack_rects(stbrp_context * context, stbrp_rect * rects, int num_rects) in stbrp_pack_rects() argument 556 rects[i].was_packed = i; in stbrp_pack_rects() 560 STBRP_SORT(rects, num_rects, sizeof(rects[0]), rect_height_compare); in stbrp_pack_rects() 563 if(rects[i].w == 0 || rects[i].h == 0) { in stbrp_pack_rects() 564 rects[i].x = rects[i].y = 0; // empty rect needs no space in stbrp_pack_rects() 567 stbrp__findresult fr = stbrp__skyline_pack_rectangle(context, rects[i].w, rects[i].h); in stbrp_pack_rects() 569 rects[i].x = (stbrp_coord) fr.x; in stbrp_pack_rects() 570 rects[i].y = (stbrp_coord) fr.y; in stbrp_pack_rects() 573 rects[i].x = rects[i].y = STBRP__MAXVAL; in stbrp_pack_rects() [all …]
|
D | stb_truetype_htcw.h | 681 … stbtt_pack_range * ranges, int num_ranges, stbrp_rect * rects); 682 STBTT_DEF void stbtt_PackFontRangesPackRects(stbtt_pack_context * spc, stbrp_rect * rects, int num_… 684 … stbtt_pack_range * ranges, int num_ranges, stbrp_rect * rects); 4252 static void stbrp_pack_rects(stbrp_context * con, stbrp_rect * rects, int num_rects) argument 4256 if(con->x + rects[i].w > con->width) { 4260 if(con->y + rects[i].h > con->height) 4262 rects[i].x = con->x; 4263 rects[i].y = con->y; 4264 rects[i].was_packed = 1; 4265 con->x += rects[i].w; [all …]
|