Lines Matching defs:res
6223 struct nk_rect res;
6226 res.x = r.x + amount;
6227 res.y = r.y + amount;
6228 res.w = r.w - 2 * amount;
6229 res.h = r.h - 2 * amount;
6230 return res;
10393 nk_flags res = NK_CONVERT_SUCCESS;
10525 res |= (cmds->needed > cmds->allocated + (cmds->memory.size - cmds->size)) ? NK_CONVERT_COMMAND_BUFFER_FULL: 0;
10526 res |= (vertices->needed > vertices->allocated) ? NK_CONVERT_VERTEX_BUFFER_FULL: 0;
10527 res |= (elements->needed > elements->allocated) ? NK_CONVERT_ELEMENT_BUFFER_FULL: 0;
10528 return res;
10796 struct nk_rp__findresult res = nk_rp__skyline_find_best_pos(context, width, height);
10803 if (res.prev_link == 0 || res.y + height > context->height || context->free_head == 0) {
10804 res.prev_link = 0;
10805 return res;
10810 node->x = (nk_rp_coord) res.x;
10811 node->y = (nk_rp_coord) (res.y + height);
10818 cur = *res.prev_link;
10819 if (cur->x < res.x) {
10825 *res.prev_link = node;
10830 while (cur->next && cur->next->x <= res.x + width) {
10840 if (cur->x < res.x + width)
10841 cur->x = (nk_rp_coord) (res.x + width);
10842 return res;