Lines Matching refs:clip
4282 struct nk_clipboard clip;
4565 struct nk_rect clip;
5337 struct nk_rect clip;
5575 struct nk_clipboard clip;
5804 NK_LIB void nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0, float x1, float y1);
5842 NK_LIB void nk_command_buffer_init(struct nk_command_buffer *cb, struct nk_buffer *b, enum nk_command_clipping clip);
6268 nk_unify(struct nk_rect *clip, const struct nk_rect *a, float x0, float y0,
6272 NK_ASSERT(clip);
6273 clip->x = NK_MAX(a->x, x0);
6274 clip->y = NK_MAX(a->y, y0);
6275 clip->w = NK_MIN(a->x + a->w, x1) - clip->x;
6276 clip->h = NK_MIN(a->y + a->h, y1) - clip->y;
6277 clip->w = NK_MAX(0, clip->w);
6278 clip->h = NK_MAX(0, clip->h);
8739 struct nk_buffer *b, enum nk_command_clipping clip)
8745 cb->use_clipping = (int)clip;
8758 b->clip = nk_null_rect;
8803 b->clip.x = r.x;
8804 b->clip.y = r.y;
8805 b->clip.w = r.w;
8806 b->clip.h = r.h;
8864 const struct nk_rect *clip = &b->clip;
8866 clip->x, clip->y, clip->w, clip->h)) return;
8887 const struct nk_rect *clip = &b->clip;
8889 clip->x, clip->y, clip->w, clip->h)) return;
8911 const struct nk_rect *clip = &b->clip;
8913 clip->x, clip->y, clip->w, clip->h)) return;
8935 const struct nk_rect *clip = &b->clip;
8936 if (!NK_INTERSECT(r.x, r.y, r.w, r.h, clip->x, clip->y, clip->w, clip->h))
8957 const struct nk_rect *clip = &b->clip;
8958 if (!NK_INTERSECT(r.x, r.y, r.w, r.h, clip->x, clip->y, clip->w, clip->h))
9013 const struct nk_rect *clip = &b->clip;
9014 if (!NK_INBOX(x0, y0, clip->x, clip->y, clip->w, clip->h) &&
9015 !NK_INBOX(x1, y1, clip->x, clip->y, clip->w, clip->h) &&
9016 !NK_INBOX(x2, y2, clip->x, clip->y, clip->w, clip->h))
9041 const struct nk_rect *clip = &b->clip;
9042 if (!NK_INBOX(x0, y0, clip->x, clip->y, clip->w, clip->h) &&
9043 !NK_INBOX(x1, y1, clip->x, clip->y, clip->w, clip->h) &&
9044 !NK_INBOX(x2, y2, clip->x, clip->y, clip->w, clip->h))
9130 const struct nk_rect *c = &b->clip;
9153 const struct nk_rect *c = &b->clip;
9180 const struct nk_rect *c = &b->clip;
9341 nk_draw_list_push_command(struct nk_draw_list *list, struct nk_rect clip,
9361 cmd->clip_rect = clip;
9368 list->clip_rect = clip;
15141 buffer->clip = nk_null_rect;
15821 {struct nk_rect clip;
15822 layout->clip = layout->bounds;
15823 nk_unify(&clip, &win->buffer.clip, layout->clip.x, layout->clip.y,
15824 layout->clip.x + layout->clip.w, layout->clip.y + layout->clip.h);
15825 nk_push_scissor(out, clip);
15826 layout->clip = clip;}
15929 /* and panel is being hovered and inside clip rect*/
15932 root_panel->clip.x, root_panel->clip.y, root_panel->clip.w, root_panel->clip.h))
16484 return ctx->current->layout->clip;
16493 return nk_vec2(ctx->current->layout->clip.x, ctx->current->layout->clip.y);
16502 return nk_vec2(ctx->current->layout->clip.x + ctx->current->layout->clip.w,
16503 ctx->current->layout->clip.y + ctx->current->layout->clip.h);
16512 return nk_vec2(ctx->current->layout->clip.w, ctx->current->layout->clip.h);
16848 rect.x += win->layout->clip.x;
16849 rect.y += win->layout->clip.y;
17022 nk_push_scissor(&win->buffer, win->layout->clip);
17351 layout->clip.y = layout->bounds.y;
17352 layout->clip.h = layout->bounds.h;
17353 nk_push_scissor(out, layout->clip);
18054 ret.x = layout->clip.x;
18055 ret.y = layout->clip.y;
18056 ret.w = layout->clip.w;
18701 {const struct nk_rect *c = &win->layout->clip;
18721 win->buffer.clip = panel.layout->clip;
18747 struct nk_rect clip;
18790 nk_unify(&clip, &parent->clip, pan.bounds.x, pan.bounds.y,
18792 nk_push_scissor(&pan.buffer, clip);
18796 nk_push_scissor(&win->buffer, parent->clip);
18976 view->count = (int)NK_MAX(nk_iceilf((layout->clip.h)/(float)row_height),0);
19080 c = ctx->current->layout->clip;
19102 c = ctx->current->layout->clip;
19124 c = ctx->current->layout->clip;
19155 c = layout->clip;
22884 struct nk_rect clip;
22902 old_clip = out->clip;
22903 nk_unify(&clip, &old_clip, area.x, area.y, area.x + area.w, area.y + area.h);
23004 if (edit->clip.copy)
23005 edit->clip.copy(edit->clip.userdata, text, end - begin);
23014 if (paste && (flags & NK_EDIT_CLIPBOARD) && edit->clip.paste) {
23015 edit->clip.paste(edit->clip.userdata, edit);
23227 nk_push_scissor(out, clip);
23348 nk_push_scissor(out, clip);
23493 edit->clip = ctx->clip;
23902 ctx->text_edit.clip = ctx->clip;
25339 x = nk_ifloorf(in->mouse.pos.x + 1) - (int)win->layout->clip.x;
25340 y = nk_ifloorf(in->mouse.pos.y + 1) - (int)win->layout->clip.y;