Lines Matching refs:x

134     stbrp_coord    x, y;  member
185 stbrp_coord x, y; member
284 context->extra[0].x = 0; in stbrp_init_target()
287 context->extra[1].x = (stbrp_coord) width; in stbrp_init_target()
301 STBRP_ASSERT(first->x <= x0); in stbrp__skyline_find_min_y()
305 while(node->next->x <= x0) in stbrp__skyline_find_min_y()
308 STBRP_ASSERT(node->next->x > x0); // we ended up handling this in the caller for efficiency in stbrp__skyline_find_min_y()
311 STBRP_ASSERT(node->x <= x0); in stbrp__skyline_find_min_y()
316 while(node->x < x1) { in stbrp__skyline_find_min_y()
324 if(node->x < x0) in stbrp__skyline_find_min_y()
325 visited_width += node->next->x - x0; in stbrp__skyline_find_min_y()
327 visited_width += node->next->x - node->x; in stbrp__skyline_find_min_y()
331 int under_width = node->next->x - node->x; in stbrp__skyline_find_min_y()
345 int x, y; member
363 fr.x = fr.y = 0; in stbrp__skyline_find_best_pos()
369 while(node->x + width <= c->width) { in stbrp__skyline_find_best_pos()
371 y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); in stbrp__skyline_find_best_pos()
394 best_x = (best == NULL) ? 0 : (*best)->x; in stbrp__skyline_find_best_pos()
418 while(tail->x < width) in stbrp__skyline_find_best_pos()
421 int xpos = tail->x - width; in stbrp__skyline_find_best_pos()
425 while(node->next->x <= xpos) { in stbrp__skyline_find_best_pos()
429 STBRP_ASSERT(node->next->x > xpos && node->x <= xpos); in stbrp__skyline_find_best_pos()
447 fr.x = best_x; in stbrp__skyline_find_best_pos()
469 node->x = (stbrp_coord) res.x; in stbrp__skyline_pack_rectangle()
479 if(cur->x < res.x) { in stbrp__skyline_pack_rectangle()
491 while(cur->next && cur->next->x <= res.x + width) { in stbrp__skyline_pack_rectangle()
502 if(cur->x < res.x + width) in stbrp__skyline_pack_rectangle()
503 cur->x = (stbrp_coord)(res.x + width); in stbrp__skyline_pack_rectangle()
507 while(cur->x < context->width) { in stbrp__skyline_pack_rectangle()
508 STBRP_ASSERT(cur->x < cur->next->x); in stbrp__skyline_pack_rectangle()
564 rects[i].x = rects[i].y = 0; // empty rect needs no space in stbrp_pack_rects()
569 rects[i].x = (stbrp_coord) fr.x; in stbrp_pack_rects()
573 rects[i].x = rects[i].y = STBRP__MAXVAL; in stbrp_pack_rects()
583 rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); in stbrp_pack_rects()