Lines Matching defs:content
1999 /// A row has a height the window content grows by and a number of columns and each
2796 /// or hidden and therefore does not need to be filled with content or `true(1)`
2803 /// The tree ending functions only need to be called if the tree content is
4161 * to manage and manipulate dynamic or fixed size string content. This is _NOT_
4662 rendering API which allows a lot of ways to draw 2D content to screen.
5593 * for all windows. This works because the content is cleared anyway */
5845 NK_LIB void nk_draw_symbol(struct nk_command_buffer *out, enum nk_symbol_type type, struct nk_rect content, struct nk_color background, struct nk_color foreground, float border_width, const struct nk_user_font *font);
5928 NK_LIB int nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, const struct nk_style_button *style, const struct nk_input *in, enum nk_button_behavior behavior, struct nk_rect *content);
5929 NK_LIB void nk_draw_button_text(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, const char *txt, int len, nk_flags text_alignment, const struct nk_user_font *font);
5931 NK_LIB void nk_draw_button_symbol(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, enum nk_symbol_type type, const struct nk_user_font *font);
5933 NK_LIB void nk_draw_button_image(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state, const struct nk_style_button *style, const struct nk_image *img);
19694 struct nk_rect content, struct nk_color background, struct nk_color foreground,
19710 nk_widget_text(out, content, X, 1, &text, NK_TEXT_CENTERED, font);
19718 nk_fill_rect(out, content, 0, foreground);
19720 nk_fill_rect(out, nk_shrink_rect(content, border_width), 0, background);
19722 nk_fill_circle(out, content, foreground);
19724 nk_fill_circle(out, nk_shrink_rect(content, 1), background);
19736 nk_triangle_from_direction(points, content, 0, 0, heading);
19795 enum nk_button_behavior behavior, struct nk_rect *content)
19804 /* calculate button content space */
19805 content->x = r.x + style->padding.x + style->border + style->rounding;
19806 content->y = r.y + style->padding.y + style->border + style->rounding;
19807 content->w = r.w - (2 * style->padding.x + style->border + style->rounding*2);
19808 content->h = r.h - (2 * style->padding.y + style->border + style->rounding*2);
19819 const struct nk_rect *bounds, const struct nk_rect *content, nk_flags state,
19838 nk_widget_text(out, *content, txt, len, &text, text_alignment, font);
19847 struct nk_rect content;
19858 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
19860 nk_draw_button_text(out, &bounds, &content, *state, style, string, len, align, font);
19866 const struct nk_rect *bounds, const struct nk_rect *content,
19884 nk_draw_symbol(out, type, *content, bg, sym, 1, font);
19894 struct nk_rect content;
19903 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
19905 nk_draw_button_symbol(out, &bounds, &content, *state, style, symbol, font);
19911 const struct nk_rect *bounds, const struct nk_rect *content,
19915 nk_draw_image(out, *content, img, nk_white);
19924 struct nk_rect content;
19932 ret = nk_do_button(state, out, bounds, style, in, b, &content);
19933 content.x += style->image_padding.x;
19934 content.y += style->image_padding.y;
19935 content.w -= 2 * style->image_padding.x;
19936 content.h -= 2 * style->image_padding.y;
19939 nk_draw_button_image(out, &bounds, &content, *state, style, &img);
19985 struct nk_rect content;
19993 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
19994 tri.y = content.y + (content.h/2) - font->height/2;
19997 tri.x = (content.x + content.w) - (2 * style->padding.x + tri.w);
19999 } else tri.x = content.x + 2 * style->padding.x;
20003 nk_draw_button_text_symbol(out, &bounds, &content, &tri,
20042 struct nk_rect content;
20051 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
20065 nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img);
20167 struct nk_rect content;
20188 &button, in, ctx->button_behavior, &content);
24640 struct nk_rect content;
24655 content.x = button.x + style->combo.button.padding.x;
24656 content.y = button.y + style->combo.button.padding.y;
24657 content.w = button.w - 2 * style->combo.button.padding.x;
24658 content.h = button.h - 2 * style->combo.button.padding.y;
24670 nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,
24722 struct nk_rect content;
24739 content.x = button.x + style->combo.button.padding.x;
24740 content.y = button.y + style->combo.button.padding.y;
24741 content.w = button.w - 2 * style->combo.button.padding.x;
24742 content.h = button.h - 2 * style->combo.button.padding.y;
24752 nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,
24809 struct nk_rect content;
24825 content.x = button.x + style->combo.button.padding.x;
24826 content.y = button.y + style->combo.button.padding.y;
24827 content.w = button.w - 2 * style->combo.button.padding.x;
24828 content.h = button.h - 2 * style->combo.button.padding.y;
24839 nk_draw_button_symbol(&win->buffer, &bounds, &content, ctx->last_widget_state,
24897 struct nk_rect content;
24915 content.x = button.x + style->combo.button.padding.x;
24916 content.y = button.y + style->combo.button.padding.y;
24917 content.w = button.w - 2 * style->combo.button.padding.x;
24918 content.h = button.h - 2 * style->combo.button.padding.y;
24919 nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,
24983 struct nk_rect content;
24999 content.x = button.x + style->combo.button.padding.x;
25000 content.y = button.y + style->combo.button.padding.y;
25001 content.w = button.w - 2 * style->combo.button.padding.x;
25002 content.h = button.h - 2 * style->combo.button.padding.y;
25012 nk_draw_button_symbol(&win->buffer, &bounds, &content, ctx->last_widget_state,
25066 struct nk_rect content;
25084 content.x = button.x + style->combo.button.padding.x;
25085 content.y = button.y + style->combo.button.padding.y;
25086 content.w = button.w - 2 * style->combo.button.padding.x;
25087 content.h = button.h - 2 * style->combo.button.padding.y;
25088 nk_draw_button_symbol(&win->buffer, &button, &content, ctx->last_widget_state,