Lines Matching defs:res
447 stbrp__findresult res = stbrp__skyline_find_best_pos(context, width, height);
454 if (res.prev_link == NULL || res.y + height > context->height || context->free_head == NULL) {
455 res.prev_link = NULL;
456 return res;
461 node->x = (stbrp_coord) res.x;
462 node->y = (stbrp_coord) (res.y + height);
470 cur = *res.prev_link;
471 if (cur->x < res.x) {
477 *res.prev_link = node;
482 while (cur->next && cur->next->x <= res.x + width) {
493 if (cur->x < res.x + width)
494 cur->x = (stbrp_coord) (res.x + width);
520 return res;