Lines Matching defs:rect
4779 NK_API void nk_draw_list_stroke_rect(struct nk_draw_list*, struct nk_rect rect, struct nk_color, float rounding, float thickness);
4786 NK_API void nk_draw_list_fill_rect(struct nk_draw_list*, struct nk_rect rect, struct nk_color, float rounding);
4787 NK_API void nk_draw_list_fill_rect_multi_color(struct nk_draw_list*, struct nk_rect rect, struct nk_color left, struct nk_color top, struct nk_color right, struct nk_color bottom);
4793 NK_API void nk_draw_list_add_image(struct nk_draw_list*, struct nk_image texture, struct nk_rect rect, struct nk_color);
8857 nk_stroke_rect(struct nk_command_buffer *b, struct nk_rect rect,
8862 if (!b || c.a == 0 || rect.w == 0 || rect.h == 0 || line_thickness <= 0) return;
8865 if (!NK_INTERSECT(rect.x, rect.y, rect.w, rect.h,
8873 cmd->x = (short)rect.x;
8874 cmd->y = (short)rect.y;
8875 cmd->w = (unsigned short)NK_MAX(0, rect.w);
8876 cmd->h = (unsigned short)NK_MAX(0, rect.h);
8880 nk_fill_rect(struct nk_command_buffer *b, struct nk_rect rect,
8885 if (!b || c.a == 0 || rect.w == 0 || rect.h == 0) return;
8888 if (!NK_INTERSECT(rect.x, rect.y, rect.w, rect.h,
8896 cmd->x = (short)rect.x;
8897 cmd->y = (short)rect.y;
8898 cmd->w = (unsigned short)NK_MAX(0, rect.w);
8899 cmd->h = (unsigned short)NK_MAX(0, rect.h);
8903 nk_fill_rect_multi_color(struct nk_command_buffer *b, struct nk_rect rect,
8909 if (!b || rect.w == 0 || rect.h == 0) return;
8912 if (!NK_INTERSECT(rect.x, rect.y, rect.w, rect.h,
8919 cmd->x = (short)rect.x;
8920 cmd->y = (short)rect.y;
8921 cmd->w = (unsigned short)NK_MAX(0, rect.w);
8922 cmd->h = (unsigned short)NK_MAX(0, rect.h);
9385 nk_draw_list_add_clip(struct nk_draw_list *list, struct nk_rect rect)
9390 nk_draw_list_push_command(list, rect, list->config.null.texture);
9394 prev->clip_rect = rect;
9395 nk_draw_list_push_command(list, rect, prev->texture);
10163 nk_draw_list_fill_rect(struct nk_draw_list *list, struct nk_rect rect,
10170 nk_draw_list_path_rect_to(list, nk_vec2(rect.x, rect.y),
10171 nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
10173 nk_draw_list_path_rect_to(list, nk_vec2(rect.x-0.5f, rect.y-0.5f),
10174 nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
10178 nk_draw_list_stroke_rect(struct nk_draw_list *list, struct nk_rect rect,
10184 nk_draw_list_path_rect_to(list, nk_vec2(rect.x, rect.y),
10185 nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
10187 nk_draw_list_path_rect_to(list, nk_vec2(rect.x-0.5f, rect.y-0.5f),
10188 nk_vec2(rect.x + rect.w, rect.y + rect.h), rounding);
10192 nk_draw_list_fill_rect_multi_color(struct nk_draw_list *list, struct nk_rect rect,
10220 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y), list->config.null.uv, col_left);
10221 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y), list->config.null.uv, col_top);
10222 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x + rect.w, rect.y + rect.h), list->config.null.uv, col_right);
10223 vtx = nk_draw_vertex(vtx, &list->config, nk_vec2(rect.x, rect.y + rect.h), list->config.null.uv, col_bottom);
10319 struct nk_rect rect, struct nk_color color)
10332 nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
10333 nk_vec2(rect.x + rect.w, rect.y + rect.h), uv[0], uv[1], color);
10334 } else nk_draw_list_push_rect_uv(list, nk_vec2(rect.x, rect.y),
10335 nk_vec2(rect.x + rect.w, rect.y + rect.h),
10340 struct nk_rect rect, const char *text, int len, float font_height,
10353 if (!NK_INTERSECT(rect.x, rect.y, rect.w, rect.h,
10357 x = rect.x;
10375 gy = rect.y + g.offset.y;
14121 nk_input_is_mouse_hovering_rect(const struct nk_input *i, struct nk_rect rect)
14124 return NK_INBOX(i->mouse.pos.x, i->mouse.pos.y, rect.x, rect.y, rect.w, rect.h);
14127 nk_input_is_mouse_prev_hovering_rect(const struct nk_input *i, struct nk_rect rect)
14130 return NK_INBOX(i->mouse.prev.x, i->mouse.prev.y, rect.x, rect.y, rect.w, rect.h);
14133 nk_input_mouse_clicked(const struct nk_input *i, enum nk_buttons id, struct nk_rect rect)
14136 if (!nk_input_is_mouse_hovering_rect(i, rect)) return nk_false;
14137 return nk_input_is_mouse_click_in_rect(i, id, rect);
15929 /* and panel is being hovered and inside clip rect*/
16803 const char *title, nk_flags flags, struct nk_rect rect)
16848 rect.x += win->layout->clip.x;
16849 rect.y += win->layout->clip.y;
16853 popup->bounds = rect;
18026 nk_layout_space_push(struct nk_context *ctx, struct nk_rect rect)
18039 layout->row.item = rect;
25517 /// - 2017/07/07 (1.40.6) - Fixed missing clipping rect check for hovering/clicked