Lines Matching refs:y

133     stbrp_coord    x, y;  member
181 stbrp_coord x, y; member
281 context->extra[0].y = 0; in stbrp_init_target()
284 context->extra[1].y = (1 << 30); in stbrp_init_target()
313 if(node->y > min_y) { in stbrp__skyline_find_min_y()
317 waste_area += visited_width * (node->y - min_y); in stbrp__skyline_find_min_y()
318 min_y = node->y; in stbrp__skyline_find_min_y()
330 waste_area += under_width * (min_y - node->y); in stbrp__skyline_find_min_y()
341 int x, y; member
359 fr.x = fr.y = 0; in stbrp__skyline_find_best_pos()
366 int y, waste; in stbrp__skyline_find_best_pos() local
367 y = stbrp__skyline_find_min_y(c, node, node->x, width, &waste); in stbrp__skyline_find_best_pos()
370 if(y < best_y) { in stbrp__skyline_find_best_pos()
371 best_y = y; in stbrp__skyline_find_best_pos()
377 if(y + height <= c->height) { in stbrp__skyline_find_best_pos()
379 if(y < best_y || (y == best_y && waste < best_waste)) { in stbrp__skyline_find_best_pos()
380 best_y = y; in stbrp__skyline_find_best_pos()
418 int y, waste; in stbrp__skyline_find_best_pos() local
426 y = stbrp__skyline_find_min_y(c, node, xpos, width, &waste); in stbrp__skyline_find_best_pos()
427 if(y + height <= c->height) { in stbrp__skyline_find_best_pos()
428 if(y <= best_y) { in stbrp__skyline_find_best_pos()
429 if(y < best_y || waste < best_waste || (waste == best_waste && xpos < best_x)) { in stbrp__skyline_find_best_pos()
431 STBRP_ASSERT(y <= best_y); in stbrp__skyline_find_best_pos()
432 best_y = y; in stbrp__skyline_find_best_pos()
444 fr.y = best_y; in stbrp__skyline_find_best_pos()
458 if(res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) { in stbrp__skyline_pack_rectangle()
466 node->y = (stbrp_coord)(res.y + height); in stbrp__skyline_pack_rectangle()
560 rects[i].x = rects[i].y = 0; // empty rect needs no space in stbrp_pack_rects()
566 rects[i].y = (stbrp_coord) fr.y; in stbrp_pack_rects()
569 rects[i].x = rects[i].y = STBRP__MAXVAL; in stbrp_pack_rects()
579 rects[i].was_packed = !(rects[i].x == STBRP__MAXVAL && rects[i].y == STBRP__MAXVAL); in stbrp_pack_rects()