Lines Matching defs:out
107 /// NK_ZERO_COMMAND_MEMORY | Defining this will zero out memory for each drawing command added to a drawing queue (inside nk_command_buffer_push). Zeroing command memory is very useful for fast checking (using memcmp) if command buffers are equal and avoid drawing frames when nothing on screen has changed since previous frame.
415 * are set incorrectly by the compiler, and compile out if not */
1216 /// as well as some other configuration values have to be configured by filling out a
1230 /// __config__ | Must point to a filled out `nk_config` struct to configure the conversion process
1253 /// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer
1268 /// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer
1283 /// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer
1299 /// __buf__ | Must point to an previously by `nk_convert` filled out vertex draw command buffer
1944 /// __state__ | value out of nk_collapse_states section
1957 /// __state__ | value out of nk_collapse_states section the window should be put into
2853 /// __state__ | Initial tree state value out of nk_collapse_states
2869 /// __state__ | Initial tree state value out of nk_collapse_states
2887 /// __state__ | Initial tree state value out of nk_collapse_states
2913 /// __state__ | Initial tree state value out of nk_collapse_states
2932 /// __state__ | Initial tree state value out of nk_collapse_states
2951 /// __state__ | Initial tree state value out of nk_collapse_states
3035 NK_API int nk_list_view_begin(struct nk_context*, struct nk_list_view *out, const char *id, nk_flags, int row_height, int row_count);
3043 NK_WIDGET_INVALID, /* The widget cannot be seen and is completely out of view */
3885 to use the font atlas. There are a number of details I left out. For example
5769 * are set incorrectly by the compiler, and compile out if not */
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);
5927 NK_LIB const struct nk_style_item* nk_draw_button(struct nk_command_buffer *out, const struct nk_rect *bounds, nk_flags state, const struct nk_style_button *style);
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);
5930 NK_LIB int nk_do_button_text(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *string, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_input *in, 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);
5932 NK_LIB int nk_do_button_symbol(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, enum nk_symbol_type symbol, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_input *in, 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);
5934 NK_LIB int nk_do_button_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, struct nk_image img, enum nk_button_behavior b, const struct nk_style_button *style, const struct nk_input *in);
5935 NK_LIB void nk_draw_button_text_symbol(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *label, const struct nk_rect *symbol, nk_flags state, const struct nk_style_button *style, const char *str, int len, enum nk_symbol_type type, const struct nk_user_font *font);
5936 NK_LIB int nk_do_button_text_symbol(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, enum nk_symbol_type symbol, const char *str, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_user_font *font, const struct nk_input *in);
5937 NK_LIB void nk_draw_button_text_image(struct nk_command_buffer *out, const struct nk_rect *bounds, const struct nk_rect *label, const struct nk_rect *image, nk_flags state, const struct nk_style_button *style, const char *str, int len, const struct nk_user_font *font, const struct nk_image *img);
5938 NK_LIB int nk_do_button_text_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, struct nk_image img, const char* str, int len, nk_flags align, enum nk_button_behavior behavior, const struct nk_style_button *style, const struct nk_user_font *font, const struct nk_input *in);
5946 NK_LIB void nk_draw_checkbox(struct nk_command_buffer *out, nk_flags state, const struct nk_style_toggle *style, int active, const struct nk_rect *label, const struct nk_rect *selector, const struct nk_rect *cursors, const char *string, int len, const struct nk_user_font *font);
5947 NK_LIB void nk_draw_option(struct nk_command_buffer *out, nk_flags state, const struct nk_style_toggle *style, int active, const struct nk_rect *label, const struct nk_rect *selector, const struct nk_rect *cursors, const char *string, int len, const struct nk_user_font *font);
5948 NK_LIB int nk_do_toggle(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, int *active, const char *str, int len, enum nk_toggle_type type, const struct nk_style_toggle *style, const struct nk_input *in, const struct nk_user_font *font);
5952 NK_LIB void nk_draw_progress(struct nk_command_buffer *out, nk_flags state, const struct nk_style_progress *style, const struct nk_rect *bounds, const struct nk_rect *scursor, nk_size value, nk_size max);
5953 NK_LIB nk_size nk_do_progress(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, nk_size value, nk_size max, int modifiable, const struct nk_style_progress *style, struct nk_input *in);
5957 NK_LIB void nk_draw_slider(struct nk_command_buffer *out, nk_flags state, const struct nk_style_slider *style, const struct nk_rect *bounds, const struct nk_rect *visual_cursor, float min, float value, float max);
5958 NK_LIB float nk_do_slider(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, float min, float val, float max, float step, const struct nk_style_slider *style, struct nk_input *in, const struct nk_user_font *font);
5962 NK_LIB void nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state, const struct nk_style_scrollbar *style, const struct nk_rect *bounds, const struct nk_rect *scroll);
5963 NK_LIB float nk_do_scrollbarv(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font);
5964 NK_LIB float nk_do_scrollbarh(nk_flags *state, struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling, float offset, float target, float step, float button_pixel_inc, const struct nk_style_scrollbar *style, struct nk_input *in, const struct nk_user_font *font);
5967 NK_LIB void nk_draw_selectable(struct nk_command_buffer *out, nk_flags state, const struct nk_style_selectable *style, int active, const struct nk_rect *bounds, const struct nk_rect *icon, const struct nk_image *img, enum nk_symbol_type sym, const char *string, int len, nk_flags align, const struct nk_user_font *font);
5968 NK_LIB int nk_do_selectable(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, const struct nk_style_selectable *style, const struct nk_input *in, const struct nk_user_font *font);
5969 NK_LIB int nk_do_selectable_image(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, const char *str, int len, nk_flags align, int *value, const struct nk_image *img, const struct nk_style_selectable *style, const struct nk_input *in, const struct nk_user_font *font);
5972 NK_LIB void nk_edit_draw_text(struct nk_command_buffer *out, const struct nk_style_edit *style, float pos_x, float pos_y, float x_offset, const char *text, int byte_len, float row_height, const struct nk_user_font *font, struct nk_color background, struct nk_color foreground, int is_selected);
5973 NK_LIB nk_flags nk_do_edit(nk_flags *state, struct nk_command_buffer *out, struct nk_rect bounds, nk_flags flags, nk_plugin_filter filter, struct nk_text_edit *edit, const struct nk_style_edit *style, struct nk_input *in, const struct nk_user_font *font);
5978 NK_LIB int nk_do_color_picker(nk_flags *state, struct nk_command_buffer *out, struct nk_colorf *col, enum nk_color_format fmt, struct nk_rect bounds, struct nk_vec2 padding, const struct nk_input *in, const struct nk_user_font *font);
6013 NK_LIB void nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *style, const struct nk_rect *bounds, const struct nk_rect *label, nk_flags state, const char *name, int len, const struct nk_user_font *font);
6014 NK_LIB void nk_do_property(nk_flags *ws, struct nk_command_buffer *out, struct nk_rect property, const char *name, struct nk_property_variant *variant, float inc_per_pixel, char *buffer, int *len, int *state, int *cursor, int *select_begin, int *select_end, const struct nk_style_property *style, enum nk_property_filter filter, struct nk_input *in, const struct nk_user_font *font, struct nk_text_edit *text_edit, enum nk_button_behavior behavior);
7654 struct nk_colorf out = {0,0,0,0};
7656 out.r = v; out.g = v; out.b = v; out.a = a;
7657 return out;
7667 case 0: default: out.r = v; out.g = t; out.b = p; break;
7668 case 1: out.r = q; out.g = v; out.b = p; break;
7669 case 2: out.r = p; out.g = v; out.b = t; break;
7670 case 3: out.r = p; out.g = q; out.b = v; break;
7671 case 4: out.r = t; out.g = p; out.b = v; break;
7672 case 5: out.r = v; out.g = p; out.b = q; break;}
7673 out.a = a;
7674 return out;
7695 nk_uint out = (nk_uint)in.r;
7696 out |= ((nk_uint)in.g << 8);
7697 out |= ((nk_uint)in.b << 16);
7698 out |= ((nk_uint)in.a << 24);
7699 return out;
7743 nk_color_hsv_fv(float *out, struct nk_color in)
7746 nk_color_hsva_f(&out[0], &out[1], &out[2], &a, in);
7783 nk_color_hsva_fv(float *out, struct nk_color in)
7785 nk_color_hsva_f(&out[0], &out[1], &out[2], &out[3], in);
7799 nk_color_hsva_iv(int *out, struct nk_color in)
7801 nk_color_hsva_i(&out[0], &out[1], &out[2], &out[3], in);
7804 nk_color_hsva_bv(nk_byte *out, struct nk_color in)
7808 out[0] = (nk_byte)tmp[0];
7809 out[1] = (nk_byte)tmp[1];
7810 out[2] = (nk_byte)tmp[2];
7811 out[3] = (nk_byte)tmp[3];
7839 nk_color_hsv_iv(int *out, struct nk_color in)
7841 nk_color_hsv_i(&out[0], &out[1], &out[2], in);
7844 nk_color_hsv_bv(nk_byte *out, struct nk_color in)
7848 out[0] = (nk_byte)tmp[0];
7849 out[1] = (nk_byte)tmp[1];
7850 out[2] = (nk_byte)tmp[2];
10609 /* if it's ok to run out of memory, then don't bother aligning them; */
10615 /* if it's not ok to run out of memory, then quantize the widths */
10802 /* 3. we're out of memory */
11275 if (glyph_index >= info->numGlyphs) return -1; /* glyph index out of range */
12055 /* now we have to blow out the windings into explicit edge lists */
12320 /* make kernel_width a constant in common cases so compiler can optimize out the divide */
12383 /* make kernel_width a constant in common cases so compiler can optimize out the divide */
15228 /* build one big draw command list out of all window buffers */
15612 struct nk_command_buffer *out;
15634 out = &win->buffer;
15744 nk_fill_rect(out, header, 0, background->data.color);
15805 nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);}
15816 nk_draw_image(out, body, &style->window.fixed_background.data.image, nk_white);
15817 else nk_fill_rect(out, body, 0, style->window.fixed_background.data.color);
15825 nk_push_scissor(out, clip);
15836 struct nk_command_buffer *out;
15850 out = &window->buffer;
15853 nk_push_scissor(out, nk_null_rect);
15875 nk_fill_rect(out, empty_space, 0, style->window.background);
15882 nk_fill_rect(out, empty_space, 0, style->window.background);
15891 nk_fill_rect(out, empty_space, 0, style->window.background);
15899 nk_fill_rect(out, empty_space, 0, style->window.background);
15964 scroll_offset = nk_do_scrollbarv(&state, out, scroll, scroll_has_scrolling,
15983 scroll_offset = nk_do_scrollbarh(&state, out, scroll, scroll_has_scrolling,
16011 nk_stroke_rect(out, b, 0, layout->border, border_color);
16031 nk_draw_image(out, scaler, &item->data.image, nk_white);
16034 nk_fill_triangle(out, scaler.x, scaler.y, scaler.x,
16038 nk_fill_triangle(out, scaler.x + scaler.w, scaler.y, scaler.x + scaler.w,
17329 struct nk_command_buffer *out;
17338 out = &win->buffer;
17353 nk_push_scissor(out, layout->clip);
17643 struct nk_command_buffer *out;
17657 out = &win->buffer;
17686 nk_fill_rect(out, background, 0, color);
18356 struct nk_command_buffer *out;
18379 out = &win->buffer;
18393 nk_draw_image(out, header, &background->data.image, nk_white);
18397 nk_fill_rect(out, header, 0, style->tab.border_color);
18398 nk_fill_rect(out, nk_shrink_rect(header, style->tab.border),
18445 nk_widget_text(out, label, title, nk_strlen(title), &text,
18537 struct nk_command_buffer *out;
18564 out = &win->buffer;
18579 nk_draw_image(out, header, &background->data.image, nk_white);
18583 nk_fill_rect(out, header, 0, style->tab.border_color);
18584 nk_fill_rect(out, nk_shrink_rect(header, style->tab.border),
19693 nk_draw_symbol(struct nk_command_buffer *out, enum nk_symbol_type type,
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);
19737 nk_fill_triangle(out, points[0].x, points[0].y, points[1].x, points[1].y,
19773 nk_draw_button(struct nk_command_buffer *out,
19785 nk_draw_image(out, *bounds, &background->data.image, nk_white);
19787 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
19788 nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
19793 nk_do_button(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r,
19800 NK_ASSERT(out);
19801 if (!out || !style)
19818 nk_draw_button_text(struct nk_command_buffer *out,
19825 background = nk_draw_button(out, bounds, state, style);
19838 nk_widget_text(out, *content, txt, len, &text, text_alignment, font);
19842 struct nk_command_buffer *out, struct nk_rect bounds,
19852 NK_ASSERT(out);
19855 if (!out || !style || !font || !string)
19858 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
19859 if (style->draw_begin) style->draw_begin(out, style->userdata);
19860 nk_draw_button_text(out, &bounds, &content, *state, style, string, len, align, font);
19861 if (style->draw_end) style->draw_end(out, style->userdata);
19865 nk_draw_button_symbol(struct nk_command_buffer *out,
19874 background = nk_draw_button(out, bounds, state, style);
19884 nk_draw_symbol(out, type, *content, bg, sym, 1, font);
19888 struct nk_command_buffer *out, struct nk_rect bounds,
19899 NK_ASSERT(out);
19900 if (!out || !style || !font || !state)
19903 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
19904 if (style->draw_begin) style->draw_begin(out, style->userdata);
19905 nk_draw_button_symbol(out, &bounds, &content, *state, style, symbol, font);
19906 if (style->draw_end) style->draw_end(out, style->userdata);
19910 nk_draw_button_image(struct nk_command_buffer *out,
19914 nk_draw_button(out, bounds, state, style);
19915 nk_draw_image(out, *content, img, nk_white);
19919 struct nk_command_buffer *out, struct nk_rect bounds,
19928 NK_ASSERT(out);
19929 if (!out || !style || !state)
19932 ret = nk_do_button(state, out, bounds, style, in, b, &content);
19938 if (style->draw_begin) style->draw_begin(out, style->userdata);
19939 nk_draw_button_image(out, &bounds, &content, *state, style, &img);
19940 if (style->draw_end) style->draw_end(out, style->userdata);
19944 nk_draw_button_text_symbol(struct nk_command_buffer *out,
19955 background = nk_draw_button(out, bounds, state, style);
19973 nk_draw_symbol(out, type, *symbol, style->text_background, sym, 0, font);
19974 nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font);
19978 struct nk_command_buffer *out, struct nk_rect bounds,
19988 NK_ASSERT(out);
19990 if (!out || !style || !font)
19993 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
20002 if (style->draw_begin) style->draw_begin(out, style->userdata);
20003 nk_draw_button_text_symbol(out, &bounds, &content, &tri,
20005 if (style->draw_end) style->draw_end(out, style->userdata);
20009 nk_draw_button_text_image(struct nk_command_buffer *out,
20017 background = nk_draw_button(out, bounds, state, style);
20030 nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font);
20031 nk_draw_image(out, *image, img, nk_white);
20035 struct nk_command_buffer *out, struct nk_rect bounds,
20047 NK_ASSERT(out);
20048 if (!out || !font || !style || !str)
20051 ret = nk_do_button(state, out, bounds, style, in, behavior, &content);
20064 if (style->draw_begin) style->draw_begin(out, style->userdata);
20065 nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img);
20066 if (style->draw_end) style->draw_end(out, style->userdata);
20375 nk_draw_checkbox(struct nk_command_buffer *out,
20402 nk_fill_rect(out, *selector, 0, style->border_color);
20403 nk_fill_rect(out, nk_shrink_rect(*selector, style->border), 0, background->data.color);
20404 } else nk_draw_image(out, *selector, &background->data.image, nk_white);
20407 nk_draw_image(out, *cursors, &cursor->data.image, nk_white);
20408 else nk_fill_rect(out, *cursors, 0, cursor->data.color);
20414 nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font);
20417 nk_draw_option(struct nk_command_buffer *out,
20444 nk_fill_circle(out, *selector, style->border_color);
20445 nk_fill_circle(out, nk_shrink_rect(*selector, style->border), background->data.color);
20446 } else nk_draw_image(out, *selector, &background->data.image, nk_white);
20449 nk_draw_image(out, *cursors, &cursor->data.image, nk_white);
20450 else nk_fill_circle(out, *cursors, cursor->data.color);
20456 nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font);
20460 struct nk_command_buffer *out, struct nk_rect r,
20472 NK_ASSERT(out);
20474 if (!out || !style || !font || !active)
20510 style->draw_begin(out, style->userdata);
20512 nk_draw_checkbox(out, *state, style, *active, &label, &select, &cursor, str, len, font);
20514 nk_draw_option(out, *state, style, *active, &label, &select, &cursor, str, len, font);
20517 style->draw_end(out, style->userdata);
20681 nk_draw_selectable(struct nk_command_buffer *out,
20717 nk_draw_image(out, *bounds, &background->data.image, nk_white);
20720 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
20724 if (img) nk_draw_image(out, *icon, img, nk_white);
20725 else nk_draw_symbol(out, sym, *icon, text.background, text.text, 1, font);
20727 nk_widget_text(out, *bounds, string, len, &text, align, font);
20730 nk_do_selectable(nk_flags *state, struct nk_command_buffer *out,
20739 NK_ASSERT(out);
20746 if (!state || !out || !str || !len || !value || !style || !font) return 0;
20760 if (style->draw_begin) style->draw_begin(out, style->userdata);
20761 nk_draw_selectable(out, *state, style, *value, &bounds, 0,0,NK_SYMBOL_NONE, str, len, align, font);
20762 if (style->draw_end) style->draw_end(out, style->userdata);
20766 nk_do_selectable_image(nk_flags *state, struct nk_command_buffer *out,
20776 NK_ASSERT(out);
20783 if (!state || !out || !str || !len || !value || !style || !font) return 0;
20807 if (style->draw_begin) style->draw_begin(out, style->userdata);
20808 nk_draw_selectable(out, *state, style, *value, &bounds, &icon, img, NK_SYMBOL_NONE, str, len, align, font);
20809 if (style->draw_end) style->draw_end(out, style->userdata);
20813 nk_do_selectable_symbol(nk_flags *state, struct nk_command_buffer *out,
20823 NK_ASSERT(out);
20830 if (!state || !out || !str || !len || !value || !style || !font) return 0;
20854 if (style->draw_begin) style->draw_begin(out, style->userdata);
20855 nk_draw_selectable(out, *state, style, *value, &bounds, &icon, 0, sym, str, len, align, font);
20856 if (style->draw_end) style->draw_end(out, style->userdata);
21046 nk_draw_slider(struct nk_command_buffer *out, nk_flags state,
21089 nk_draw_image(out, *bounds, &background->data.image, nk_white);
21091 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21092 nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
21096 nk_fill_rect(out, bar, style->rounding, bar_color);
21097 nk_fill_rect(out, fill, style->rounding, style->bar_filled);
21101 nk_draw_image(out, *visual_cursor, &cursor->data.image, nk_white);
21102 else nk_fill_circle(out, *visual_cursor, cursor->data.color);
21106 struct nk_command_buffer *out, struct nk_rect bounds,
21122 NK_ASSERT(out);
21123 if (!out || !style)
21144 if (nk_do_button_symbol(&ws, out, button, style->dec_symbol, NK_BUTTON_DEFAULT,
21150 if (nk_do_button_symbol(&ws, out, button, style->inc_symbol, NK_BUTTON_DEFAULT,
21188 if (style->draw_begin) style->draw_begin(out, style->userdata);
21189 nk_draw_slider(out, *state, style, &bounds, &visual_cursor, slider_min, slider_value, slider_max);
21190 if (style->draw_end) style->draw_end(out, style->userdata);
21289 nk_draw_progress(struct nk_command_buffer *out, nk_flags state,
21313 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21314 nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
21315 } else nk_draw_image(out, *bounds, &background->data.image, nk_white);
21319 nk_fill_rect(out, *scursor, style->rounding, cursor->data.color);
21320 nk_stroke_rect(out, *scursor, style->rounding, style->border, style->border_color);
21321 } else nk_draw_image(out, *scursor, &cursor->data.image, nk_white);
21325 struct nk_command_buffer *out, struct nk_rect bounds,
21334 NK_ASSERT(out);
21335 if (!out || !style) return 0;
21349 if (style->draw_begin) style->draw_begin(out, style->userdata);
21350 nk_draw_progress(out, *state, style, &bounds, &cursor, value, max);
21351 if (style->draw_end) style->draw_end(out, style->userdata);
21478 nk_draw_scrollbar(struct nk_command_buffer *out, nk_flags state,
21499 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
21500 nk_stroke_rect(out, *bounds, style->rounding, style->border, style->border_color);
21502 nk_draw_image(out, *bounds, &background->data.image, nk_white);
21507 nk_fill_rect(out, *scroll, style->rounding_cursor, cursor->data.color);
21508 nk_stroke_rect(out, *scroll, style->rounding_cursor, style->border_cursor, style->cursor_border_color);
21509 } else nk_draw_image(out, *scroll, &cursor->data.image, nk_white);
21513 struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling,
21527 NK_ASSERT(out);
21530 if (!out || !style) return 0;
21551 if (nk_do_button_symbol(&ws, out, button, style->dec_symbol,
21557 if (nk_do_button_symbol(&ws, out, button, style->inc_symbol,
21595 if (style->draw_begin) style->draw_begin(out, style->userdata);
21596 nk_draw_scrollbar(out, *state, style, &scroll, &cursor);
21597 if (style->draw_end) style->draw_end(out, style->userdata);
21602 struct nk_command_buffer *out, struct nk_rect scroll, int has_scrolling,
21616 NK_ASSERT(out);
21618 if (!out || !style) return 0;
21639 if (nk_do_button_symbol(&ws, out, button, style->dec_symbol,
21645 if (nk_do_button_symbol(&ws, out, button, style->inc_symbol,
21683 if (style->draw_begin) style->draw_begin(out, style->userdata);
21684 nk_draw_scrollbar(out, *state, style, &scroll, &cursor);
21685 if (style->draw_end) style->draw_end(out, style->userdata);
22562 /* now we can carry out the deletion */
22791 nk_edit_draw_text(struct nk_command_buffer *out,
22797 NK_ASSERT(out);
22800 if (!text || !byte_len || !out || !style) return;
22831 nk_fill_rect(out, label, 0, background);
22832 nk_widget_text(out, label, line, (int)((text + text_len) - line),
22865 nk_fill_rect(out, label, 0, background);
22866 nk_widget_text(out, label, line, (int)((text + text_len) - line),
22871 nk_do_edit(nk_flags *state, struct nk_command_buffer *out,
22887 NK_ASSERT(out);
22889 if (!state || !out || !style)
22902 old_clip = out->clip;
23049 nk_stroke_rect(out, bounds, style->rounding, style->border, style->border_color);
23050 nk_fill_rect(out, bounds, style->rounding, background->data.color);
23051 } else nk_draw_image(out, bounds, &background->data.image, nk_white);}
23213 edit->scrollbar.y = nk_do_scrollbarv(&ws, out, scroll, 0,
23227 nk_push_scissor(out, clip);
23261 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23270 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23281 nk_edit_draw_text(out, style,
23296 nk_edit_draw_text(out, style,
23317 nk_fill_rect(out, cursor, 0, cursor_color);
23336 nk_fill_rect(out, label, 0, cursor_color);
23337 nk_widget_text(out, label, cursor_ptr, glyph_len, &txt, NK_TEXT_LEFT, font);
23348 nk_push_scissor(out, clip);
23362 nk_edit_draw_text(out, style, area.x - edit->scrollbar.x,
23366 nk_push_scissor(out, old_clip);}
23594 nk_draw_property(struct nk_command_buffer *out, const struct nk_style_property *style,
23615 nk_draw_image(out, *bounds, &background->data.image, nk_white);
23619 nk_fill_rect(out, *bounds, style->rounding, background->data.color);
23620 nk_stroke_rect(out, *bounds, style->rounding, style->border, background->data.color);
23625 nk_widget_text(out, *label, name, len, &text, NK_TEXT_CENTERED, font);
23629 struct nk_command_buffer *out, struct nk_rect property,
23720 if (style->draw_begin) style->draw_begin(out, style->userdata);
23721 nk_draw_property(out, style, &property, &label, *ws, name, name_len, font);
23722 if (style->draw_end) style->draw_end(out, style->userdata);
23725 if (nk_do_button_symbol(ws, out, left, style->sym_left, behavior, &style->dec_button, in, font)) {
23737 if (nk_do_button_symbol(ws, out, right, style->sym_right, behavior, &style->inc_button, in, font)) {
23770 nk_do_edit(ws, out, edit, NK_EDIT_FIELD|NK_EDIT_AUTO_SELECT,
24133 struct nk_command_buffer *out = &win->buffer;
24165 nk_fill_rect(out, bounds, 0, color);
24174 nk_stroke_line(out, g->slots[slot].last.x, g->slots[slot].last.y, cur.x, cur.y, 1.0f, color);
24189 nk_fill_rect(out, nk_rect(cur.x - 2, cur.y - 2, 4, 4), 0, color);
24201 struct nk_command_buffer *out = &win->buffer;
24239 nk_fill_rect(out, item, 0, color);
24463 struct nk_command_buffer *out, struct nk_colorf *col,
24474 NK_ASSERT(out);
24478 if (!out || !col || !state || !font)
24504 nk_draw_color_picker(out, &matrix, &hue_bar, (fmt == NK_RGBA) ? &alpha_bar:0, *col);
25586 /// - 2016/10/29 (1.25.0) - Pulled `nk_panel` memory management into nuklear and out of