Lines Matching defs:rects

10892 nk_rp_pack_rects(struct nk_rp_context *context, struct nk_rp_rect *rects, int num_rects)
10897 rects[i].was_packed = i;
10901 nk_rp_qsort(rects, (unsigned)num_rects, nk_rect_height_compare);
10904 struct nk_rp__findresult fr = nk_rp__skyline_pack_rectangle(context, rects[i].w, rects[i].h);
10906 rects[i].x = (nk_rp_coord) fr.x;
10907 rects[i].y = (nk_rp_coord) fr.y;
10909 rects[i].x = rects[i].y = NK_RP__MAXVAL;
10914 nk_rp_qsort(rects, (unsigned)num_rects, nk_rect_original_order);
10918 rects[i].was_packed = !(rects[i].x == NK_RP__MAXVAL && rects[i].y == NK_RP__MAXVAL);
12445 int num_ranges, struct nk_rp_rect *rects)
12447 /* rects array must be big enough to accommodate all characters in the given ranges */
12466 rects[k].w = (nk_rp_coord) (x1-x0 + spc->padding + (int)spc->h_oversample-1);
12467 rects[k].h = (nk_rp_coord) (y1-y0 + spc->padding + (int)spc->v_oversample-1);
12476 int num_ranges, struct nk_rp_rect *rects, struct nk_allocator *alloc)
12482 /* rects array must be big enough to accommodate all characters in the given ranges */
12503 struct nk_rp_rect *r = &rects[k];
12594 struct nk_rp_rect *rects;
12604 struct nk_rp_rect *rects;
12721 baker->rects = (struct nk_rp_rect*)NK_ALIGN_PTR((baker->packed_chars + glyph_count), nk_rect_align);
12722 baker->ranges = (struct nk_tt_pack_range*)NK_ALIGN_PTR((baker->rects + glyph_count), nk_range_align);
12818 tmp->rects = baker->rects + rect_n;
12822 tmp->ranges, (int)tmp->range_count, tmp->rects);
12823 nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, tmp->rects, (int)n);
12827 if (tmp->rects[i].was_packed)
12828 *height = NK_MAX(*height, tmp->rects[i].y + tmp->rects[i].h);
12872 (int)tmp->range_count, tmp->rects, &baker->alloc);