Lines Matching refs:icon

1434 /// NK_WINDOW_SCALABLE          | The scalable flag indicates that a window can be scaled by user input by dragging a scaler icon at the button of the window
1435 /// NK_WINDOW_CLOSABLE | Adds a closable icon into the header
1436 /// NK_WINDOW_MINIMIZABLE | Adds a minimize icon into the header
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);
18430 /* draw optional image icon */
20041 struct nk_rect icon;
20052 icon.y = bounds.y + style->padding.y;
20053 icon.w = icon.h = bounds.h - 2 * style->padding.y;
20055 icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w);
20056 icon.x = NK_MAX(icon.x, 0);
20057 } else icon.x = bounds.x + 2 * style->padding.x;
20059 icon.x += style->image_padding.x;
20060 icon.y += style->image_padding.y;
20061 icon.w -= 2 * style->image_padding.x;
20062 icon.h -= 2 * style->image_padding.y;
20065 nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img);
20684 const struct nk_rect *icon, const struct nk_image *img, enum nk_symbol_type sym,
20723 if (icon) {
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);
20773 struct nk_rect icon;
20794 icon.y = bounds.y + style->padding.y;
20795 icon.w = icon.h = bounds.h - 2 * style->padding.y;
20797 icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w);
20798 icon.x = NK_MAX(icon.x, 0);
20799 } else icon.x = bounds.x + 2 * style->padding.x;
20801 icon.x += style->image_padding.x;
20802 icon.y += style->image_padding.y;
20803 icon.w -= 2 * style->image_padding.x;
20804 icon.h -= 2 * style->image_padding.y;
20808 nk_draw_selectable(out, *state, style, *value, &bounds, &icon, img, NK_SYMBOL_NONE, str, len, align, font);
20820 struct nk_rect icon;
20841 icon.y = bounds.y + style->padding.y;
20842 icon.w = icon.h = bounds.h - 2 * style->padding.y;
20844 icon.x = (bounds.x + bounds.w) - (2 * style->padding.x + icon.w);
20845 icon.x = NK_MAX(icon.x, 0);
20846 } else icon.x = bounds.x + 2 * style->padding.x;
20848 icon.x += style->image_padding.x;
20849 icon.y += style->image_padding.y;
20850 icon.w -= 2 * style->image_padding.x;
20851 icon.h -= 2 * style->image_padding.y;
20855 nk_draw_selectable(out, *state, style, *value, &bounds, &icon, 0, sym, str, len, align, font);
25707 /// icon in a window or by calling `nk_window_close`. Only closed