Lines Matching refs:pad
5803 NK_LIB struct nk_rect nk_pad_rect(struct nk_rect r, struct nk_vec2 pad);
6233 nk_pad_rect(struct nk_rect r, struct nk_vec2 pad)
6235 r.w = NK_MAX(r.w, 2 * pad.x);
6236 r.h = NK_MAX(r.h, 2 * pad.y);
6237 r.x += pad.x; r.y += pad.y;
6238 r.w -= 2 * pad.x;
6239 r.h -= 2 * pad.y;
12512 nk_rp_coord pad = (nk_rp_coord) spc->padding;
12514 /* pad on left and top */
12515 r->x = (nk_rp_coord)((int)r->x + (int)pad);
12516 r->y = (nk_rp_coord)((int)r->y + (int)pad);
12517 r->w = (nk_rp_coord)((int)r->w - (int)pad);
12518 r->h = (nk_rp_coord)((int)r->h - (int)pad);