Lines Matching defs:img
467 struct nk_cursor {struct nk_image img; struct nk_vec2 size, offset;};
2904 /// #define nk_tree_image_push(ctx, type, img, title, state)
2917 #define nk_tree_image_push(ctx, type, img, title, state) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__)
2923 /// #define nk_tree_image_push_id(ctx, type, img, title, state, id)
2937 #define nk_tree_image_push_id(ctx, type, img, title, state, id) nk_tree_image_push_hashed(ctx, type, img, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id)
3122 NK_API int nk_button_image(struct nk_context*, struct nk_image img);
3125 NK_API int nk_button_image_label(struct nk_context*, struct nk_image img, const char*, nk_flags text_alignment);
3126 NK_API int nk_button_image_text(struct nk_context*, struct nk_image img, const char*, int, nk_flags alignment);
3130 NK_API int nk_button_image_styled(struct nk_context*, const struct nk_style_button*, struct nk_image img);
3133 NK_API int nk_button_image_label_styled(struct nk_context*,const struct nk_style_button*, struct nk_image img, const char*, nk_flags text_alignment);
3134 NK_API int nk_button_image_text_styled(struct nk_context*,const struct nk_style_button*, struct nk_image img, const char*, int, nk_flags alignment);
3497 NK_API int nk_combo_begin_image(struct nk_context*, struct nk_image img, struct nk_vec2 size);
3699 NK_API int nk_image_is_subimage(const struct nk_image* img);
3873 const void* img = nk_font_atlas_bake(&atlas, &img_width, &img_height, NK_FONT_ATLAS_RGBA32);
4532 struct nk_image img;
5239 NK_API struct nk_style_item nk_style_item_image(struct nk_image img);
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);
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);
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);
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);
9124 const struct nk_image *img, struct nk_color col)
9142 cmd->img = *img;
10516 nk_draw_list_add_image(&ctx->draw_list, i->img, nk_rect(i->x, i->y, i->w, i->h), i->col);
13809 cursor->img.w = (unsigned short)*width;
13810 cursor->img.h = (unsigned short)*height;
13811 cursor->img.region[0] = (unsigned short)(atlas->custom.x + nk_cursor_data[i][0].x);
13812 cursor->img.region[1] = (unsigned short)(atlas->custom.y + nk_cursor_data[i][0].y);
13813 cursor->img.region[2] = (unsigned short)nk_cursor_data[i][1].x;
13814 cursor->img.region[3] = (unsigned short)nk_cursor_data[i][1].y;
13859 atlas->cursors[i].img.handle = texture;
14249 nk_style_item_image(struct nk_image img)
14253 i.data.image = img;
15225 nk_draw_image(&ctx->overlay, mouse_bounds, &cursor->img, nk_white);
17160 nk_contextual_item_image_text(struct nk_context *ctx, struct nk_image img,
17183 img, text, len, align, NK_BUTTON_DEFAULT, &style->contextual_button, style->font, in)){
17190 nk_contextual_item_image_label(struct nk_context *ctx, struct nk_image img,
17193 return nk_contextual_item_image_text(ctx, img, label, nk_strlen(label), align);
17419 nk_menu_begin_image(struct nk_context *ctx, const char *id, struct nk_image img,
17439 img, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in))
17470 nk_flags align, struct nk_image img, struct nk_vec2 size)
17489 header, img, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button,
17496 const char *title, nk_flags align, struct nk_image img, struct nk_vec2 size)
17498 return nk_menu_begin_image_text(ctx, title, nk_strlen(title), align, img, size);
17543 nk_menu_item_image_label(struct nk_context *ctx, struct nk_image img,
17546 return nk_contextual_item_image_label(ctx, img, label, align);
17549 nk_menu_item_image_text(struct nk_context *ctx, struct nk_image img,
17552 return nk_contextual_item_image_text(ctx, img, text, len, align);
18351 struct nk_image *img, const char *title, enum nk_collapse_states *state)
18429 if (img) {
18432 nk_draw_image(&win->buffer, sym, img, nk_white);
18459 struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
18477 return nk_tree_state_base(ctx, type, img, title, (enum nk_collapse_states*)state);
18487 struct nk_image img, const char *title, enum nk_collapse_states *state)
18489 return nk_tree_state_base(ctx, type, &img, title, state);
18519 struct nk_image img, const char *title, enum nk_collapse_states initial_state,
18522 return nk_tree_base(ctx, type, &img, title, initial_state, hash, len, seed);
18531 struct nk_image *img, const char *title, int title_len,
18625 if (img) {
18627 selected, img, &style->selectable, in, style->font);
18642 struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
18659 } return nk_tree_element_image_push_hashed_base(ctx, type, img, title,
18671 struct nk_image img, const char *title, enum nk_collapse_states initial_state,
18674 return nk_tree_element_base(ctx, type, &img, title, initial_state, selected, hash, len, seed);
19647 nk_image_is_subimage(const struct nk_image* img)
19649 NK_ASSERT(img);
19650 return !(img->w == 0 && img->h == 0);
19653 nk_image(struct nk_context *ctx, struct nk_image img)
19665 nk_draw_image(&win->buffer, bounds, &img, nk_white);
19668 nk_image_color(struct nk_context *ctx, struct nk_image img, struct nk_color col)
19680 nk_draw_image(&win->buffer, bounds, &img, col);
19912 nk_flags state, const struct nk_style_button *style, const struct nk_image *img)
19915 nk_draw_image(out, *content, img, nk_white);
19920 struct nk_image img, enum nk_button_behavior b,
19939 nk_draw_button_image(out, &bounds, &content, *state, style, &img);
20013 const struct nk_image *img)
20031 nk_draw_image(out, *image, img, nk_white);
20036 struct nk_image img, const char* str, int len, nk_flags align,
20065 nk_draw_button_text_image(out, &bounds, &content, &icon, *state, style, str, len, font, &img);
20226 struct nk_image img)
20248 img, ctx->button_behavior, style, in);
20251 nk_button_image(struct nk_context *ctx, struct nk_image img)
20255 return nk_button_image_styled(ctx, &ctx->style.button, img);
20306 const struct nk_style_button *style, struct nk_image img, const char *text,
20329 bounds, img, text, len, align, ctx->button_behavior,
20333 nk_button_image_text(struct nk_context *ctx, struct nk_image img,
20336 return nk_button_image_text_styled(ctx, &ctx->style.button,img, text, len, align);
20338 NK_API int nk_button_image_label(struct nk_context *ctx, struct nk_image img,
20341 return nk_button_image_text(ctx, img, label, nk_strlen(label), align);
20344 const struct nk_style_button *style, struct nk_image img,
20347 return nk_button_image_text_styled(ctx, style, img, label, nk_strlen(label), text_alignment);
20684 const struct nk_rect *icon, const struct nk_image *img, enum nk_symbol_type sym,
20724 if (img) nk_draw_image(out, *icon, img, nk_white);
20768 const struct nk_image *img, const struct nk_style_selectable *style,
20808 nk_draw_selectable(out, *state, style, *value, &bounds, &icon, img, NK_SYMBOL_NONE, str, len, align, font);
20890 nk_selectable_image_text(struct nk_context *ctx, struct nk_image img,
20916 str, len, align, value, &img, &style->selectable, in, style->font);
20962 NK_API int nk_selectable_image_label(struct nk_context *ctx,struct nk_image img,
20965 return nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, value);
20971 NK_API int nk_select_image_label(struct nk_context *ctx, struct nk_image img,
20974 nk_selectable_image_text(ctx, img, str, nk_strlen(str), align, &value);return value;
20976 NK_API int nk_select_image_text(struct nk_context *ctx, struct nk_image img,
20979 nk_selectable_image_text(ctx, img, str, len, align, &value);return value;
24941 nk_combo_begin_image(struct nk_context *ctx, struct nk_image img, struct nk_vec2 size)
25009 nk_draw_image(&win->buffer, bounds, &img, nk_white);
25019 struct nk_image img, struct nk_vec2 size)
25096 nk_draw_image(&win->buffer, image, &img, nk_white);
25116 const char *selected, struct nk_image img, struct nk_vec2 size)
25118 return nk_combo_begin_image_text(ctx, selected, nk_strlen(selected), img, size);
25131 nk_combo_item_image_text(struct nk_context *ctx, struct nk_image img, const char *text,
25134 return nk_contextual_item_image_text(ctx, img, text, len, alignment);
25137 nk_combo_item_image_label(struct nk_context *ctx, struct nk_image img,
25140 return nk_contextual_item_image_label(ctx, img, text, alignment);