Lines Matching refs:width

138 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes…
186 int width; member
259 context->align = (context->width + context->num_nodes - 1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
263 STBRP_DEF void stbrp_init_target(stbrp_context * context, int width, int height, stbrp_node * nodes… in stbrp_init_target() argument
274 context->width = width; in stbrp_init_target()
283 context->extra[1].x = (stbrp_coord) width; in stbrp_init_target()
289 static int stbrp__skyline_find_min_y(stbrp_context * c, stbrp_node * first, int x0, int width, int … in stbrp__skyline_find_min_y() argument
292 int x1 = x0 + width; in stbrp__skyline_find_min_y()
328 if(under_width + visited_width > width) in stbrp__skyline_find_min_y()
329 under_width = width - visited_width; in stbrp__skyline_find_min_y()
345 static stbrp__findresult stbrp__skyline_find_best_pos(stbrp_context * c, int width, int height) in stbrp__skyline_find_best_pos() argument
352 width = (width + c->align - 1); in stbrp__skyline_find_best_pos()
353 width -= width % c->align; in stbrp__skyline_find_best_pos()
354 STBRP_ASSERT(width % c->align == 0); in stbrp__skyline_find_best_pos()
357 if(width > c->width || height > c->height) { in stbrp__skyline_find_best_pos()
365 while(node->x + width <= c->width) { in stbrp__skyline_find_best_pos()
367 y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); in stbrp__skyline_find_best_pos()
414 while(tail->x < width) in stbrp__skyline_find_best_pos()
417 int xpos = tail->x - width; in stbrp__skyline_find_best_pos()
426 y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); in stbrp__skyline_find_best_pos()
448 static stbrp__findresult stbrp__skyline_pack_rectangle(stbrp_context * context, int width, int heig… in stbrp__skyline_pack_rectangle() argument
451 stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height); in stbrp__skyline_pack_rectangle()
487 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle()
498 if(cur->x < res.x + width) in stbrp__skyline_pack_rectangle()
499 cur->x = (stbrp_coord)(res.x + width); in stbrp__skyline_pack_rectangle()
503 while(cur->x < context->width) { in stbrp__skyline_pack_rectangle()