Lines Matching defs:label
2780 /// `nk_tree_xxx_pop_xxx()` functions. Each starting functions takes a title label
2821 /// nk_tree_image_push | Start a collapsable UI section with image and label header
2822 /// nk_tree_image_push_id | Start a collapsable UI section with image and label header and internal state management callable in a look
2823 /// nk_tree_image_push_hashed | Start a collapsable UI section with image and label header and internal state management with full control over internal unique ID use to store state
2827 /// nk_tree_state_image_push | Start a collapsable UI section with image and label header and external state management
2896 /// Start a collapsable UI section with image and label header
2911 /// __img__ | Image to display inside the header on the left of the label
2919 /// Start a collapsable UI section with image and label header and internal state
2930 /// __img__ | Image to display inside the header on the left of the label
2949 /// __img__ | Image to display inside the header on the left of the label
2987 /// Start a collapsable UI section with image and label header and external state management
2995 /// __img__ | Image to display inside the header on the left of the label
3215 /// displaying a label. If you want to use the same name multiple times make sure
3282 /// To generate a unique property ID using the same label make sure to insert
3292 /// __name__ | String used both as a label as well as a unique identifier
3303 /// To generate a unique property ID using the same label make sure to insert
3313 /// __name__ | String used both as a label as well as a unique identifier
3324 /// To generate a unique property ID using the same label make sure to insert
3334 /// __name__ | String used both as a label as well as a unique identifier
3345 /// To generate a unique property ID using the same label make sure to insert
3355 /// __name__ | String used both as a label as well as a unique identifier
3368 /// To generate a unique property ID using the same label make sure to insert
3378 /// __name__ | String used both as a label as well as a unique identifier
3391 /// To generate a unique property ID using the same label make sure to insert
3401 /// __name__ | String used both as a label as well as a unique identifier
5101 /* label */
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);
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);
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);
6012 NK_LIB void nk_property_behavior(nk_flags *ws, const struct nk_input *in, struct nk_rect property, struct nk_rect label, struct nk_rect edit, struct nk_rect empty, int *state, struct nk_property_variant *variant, float inc_per_pixel);
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);
15795 struct nk_rect label = {0,0,0,0};
15799 label.x = header.x + style->window.header.padding.x;
15800 label.x += style->window.header.label_padding.x;
15801 label.y = header.y + style->window.header.label_padding.y;
15802 label.h = font->height + 2 * style->window.header.label_padding.y;
15803 label.w = t + 2 * style->window.header.spacing.x;
15804 label.w = NK_CLAMP(0, label.w, header.x + header.w - label.x);
15805 nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);}
17155 nk_contextual_item_label(struct nk_context *ctx, const char *label, nk_flags align)
17157 return nk_contextual_item_text(ctx, label, nk_strlen(label), align);
17191 const char *label, nk_flags align)
17193 return nk_contextual_item_image_text(ctx, img, label, nk_strlen(label), align);
17538 nk_menu_item_label(struct nk_context *ctx, const char *label, nk_flags align)
17540 return nk_contextual_item_label(ctx, label, align);
17544 const char *label, nk_flags align)
17546 return nk_contextual_item_image_label(ctx, img, label, align);
17560 const char *label, nk_flags align)
17562 return nk_contextual_item_symbol_label(ctx, sym, label, align);
18436 {/* draw label */
18437 struct nk_rect label;
18439 label.x = sym.x + sym.w + item_spacing.x;
18440 label.y = sym.y;
18441 label.w = header.w - (sym.w + item_spacing.y + style->tab.indent);
18442 label.h = style->font->height;
18445 nk_widget_text(out, label, title, nk_strlen(title), &text,
18611 /* draw label */
18613 struct nk_rect label;
18620 label.x = sym.x + sym.w + item_spacing.x;
18621 label.y = sym.y;
18622 label.w = NK_MIN(header.w - (sym.w + item_spacing.y + style->tab.indent), text_width);
18623 label.h = style->font->height;
18626 nk_do_selectable_image(&dummy, &win->buffer, label, title, title_len, NK_TEXT_LEFT,
18628 } else nk_do_selectable(&dummy, &win->buffer, label, title, title_len, NK_TEXT_LEFT,
19263 struct nk_rect label;
19271 label.x = 0; label.w = 0;
19272 label.y = b.y + t->padding.y;
19273 label.h = NK_MIN(f->height, b.h - 2 * t->padding.y);
19280 label.x = b.x + t->padding.x;
19281 label.w = NK_MAX(0, b.w - 2 * t->padding.x);
19283 label.w = NK_MAX(1, 2 * t->padding.x + (float)text_width);
19284 label.x = (b.x + t->padding.x + ((b.w - 2 * t->padding.x) - label.w) / 2);
19285 label.x = NK_MAX(b.x + t->padding.x, label.x);
19286 label.w = NK_MIN(b.x + b.w, label.x + label.w);
19287 if (label.w >= label.x) label.w -= label.x;
19289 label.x = NK_MAX(b.x + t->padding.x, (b.x + b.w) - (2 * t->padding.x + (float)text_width));
19290 label.w = (float)text_width + 2 * t->padding.x;
19295 label.y = b.y + b.h/2.0f - (float)f->height/2.0f;
19296 label.h = NK_MAX(b.h/2.0f, b.h - (b.h/2.0f + f->height/2.0f));
19298 label.y = b.y + b.h - f->height;
19299 label.h = f->height;
19301 nk_draw_text(o, label, (const char*)string, len, f, t->background, t->text);
19945 const struct nk_rect *bounds, const struct nk_rect *label,
19974 nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font);
20010 const struct nk_rect *bounds, const struct nk_rect *label,
20030 nk_widget_text(out, *label, str, len, &text, NK_TEXT_CENTERED, font);
20294 const char *label, nk_flags align)
20296 return nk_button_symbol_text(ctx, symbol, label, nk_strlen(label), align);
20339 const char *label, nk_flags align)
20341 return nk_button_image_text(ctx, img, label, nk_strlen(label), align);
20345 const char *label, nk_flags text_alignment)
20347 return nk_button_image_text_styled(ctx, style, img, label, nk_strlen(label), text_alignment);
20377 const struct nk_rect *label, const struct nk_rect *selector,
20414 nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font);
20419 const struct nk_rect *label, const struct nk_rect *selector,
20456 nk_widget_text(out, *label, string, len, &text, NK_TEXT_LEFT, font);
20469 struct nk_rect label;
20498 /* label behind the selector */
20499 label.x = select.x + select.w + style->spacing;
20500 label.y = select.y;
20501 label.w = NK_MAX(r.x + r.w, label.x) - label.x;
20502 label.h = select.w;
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);
20597 NK_API int nk_check_label(struct nk_context *ctx, const char *label, int active)
20599 return nk_check_text(ctx, label, nk_strlen(label), active);
20601 NK_API unsigned int nk_check_flags_label(struct nk_context *ctx, const char *label,
20604 return nk_check_flags_text(ctx, label, nk_strlen(label), flags, value);
20606 NK_API int nk_checkbox_label(struct nk_context *ctx, const char *label, int *active)
20608 return nk_checkbox_text(ctx, label, nk_strlen(label), active);
20610 NK_API int nk_checkbox_flags_label(struct nk_context *ctx, const char *label,
20613 return nk_checkbox_flags_text(ctx, label, nk_strlen(label), flags, value);
20661 nk_option_label(struct nk_context *ctx, const char *label, int active)
20663 return nk_option_text(ctx, label, nk_strlen(label), active);
20666 nk_radio_label(struct nk_context *ctx, const char *label, int *active)
20668 return nk_radio_text(ctx, label, nk_strlen(label), active);
22822 struct nk_rect label;
22823 label.y = pos_y + line_offset;
22824 label.h = row_height;
22825 label.w = line_width;
22826 label.x = pos_x;
22828 label.x += x_offset;
22831 nk_fill_rect(out, label, 0, background);
22832 nk_widget_text(out, label, line, (int)((text + text_len) - line),
22856 struct nk_rect label;
22857 label.y = pos_y + line_offset;
22858 label.h = row_height;
22859 label.w = line_width;
22860 label.x = pos_x;
22862 label.x += x_offset;
22865 nk_fill_rect(out, label, 0, background);
22866 nk_widget_text(out, label, line, (int)((text + text_len) - line),
23321 struct nk_rect label;
23328 label.x = area.x + cursor_pos.x - edit->scrollbar.x;
23329 label.y = area.y + cursor_pos.y - edit->scrollbar.y;
23330 label.w = font->width(font->userdata, font->height, cursor_ptr, glyph_len);
23331 label.h = row_height;
23336 nk_fill_rect(out, label, 0, cursor_color);
23337 nk_widget_text(out, label, cursor_ptr, glyph_len, &txt, NK_TEXT_LEFT, font);
23576 struct nk_rect property, struct nk_rect label, struct nk_rect edit,
23583 else if (nk_input_is_mouse_click_down_in_rect(in, NK_BUTTON_LEFT, label, nk_true))
23595 const struct nk_rect *bounds, const struct nk_rect *label, nk_flags state,
23623 /* draw label */
23625 nk_widget_text(out, *label, name, len, &text, NK_TEXT_CENTERED, font);
23652 struct nk_rect label;
23662 /* text label */
23665 label.x = left.x + left.w + style->padding.x;
23666 label.w = (float)size + 2 * style->padding.x;
23667 label.y = property.y + style->border + style->padding.y;
23668 label.h = property.h - (2 * style->border + 2 * style->padding.y);
23704 edit.w = NK_MIN(edit.w, right.x - (label.x + label.w));
23710 empty.w = edit.x - (label.x + label.w);
23711 empty.x = label.x + label.w;
23717 nk_property_behavior(ws, in, property, label, edit, empty, state, variant, inc_per_pixel);
23721 nk_draw_property(out, style, &property, &label, *ws, name, name_len, font);
24638 struct nk_rect label;
24660 /* draw selected label */
24662 label.x = header.x + style->combo.content_padding.x;
24663 label.y = header.y + style->combo.content_padding.y;
24664 label.w = button.x - (style->combo.content_padding.x + style->combo.spacing.x) - label.x;;
24665 label.h = header.h - 2 * style->combo.content_padding.y;
24666 nk_widget_text(&win->buffer, label, selected, len, &text,
24899 struct nk_rect label;
24930 /* draw label */
24932 label.x = image.x + image.w + style->combo.spacing.x + style->combo.content_padding.x;
24933 label.y = header.y + style->combo.content_padding.y;
24934 label.w = (button.x - style->combo.content_padding.x) - label.x;
24935 label.h = header.h - 2 * style->combo.content_padding.y;
24936 nk_widget_text(&win->buffer, label, selected, len, &text, NK_TEXT_LEFT, style->font);
25068 struct nk_rect label;
25098 /* draw label */
25100 label.x = image.x + image.w + style->combo.spacing.x + style->combo.content_padding.x;
25101 label.y = header.y + style->combo.content_padding.y;
25102 label.w = (button.x - style->combo.content_padding.x) - label.x;
25103 label.h = header.h - 2 * style->combo.content_padding.y;
25104 nk_widget_text(&win->buffer, label, selected, len, &text, NK_TEXT_LEFT, style->font);
25126 nk_combo_item_label(struct nk_context *ctx, const char *label, nk_flags align)
25128 return nk_contextual_item_label(ctx, label, align);
25150 const char *label, nk_flags alignment)
25152 return nk_contextual_item_symbol_label(ctx, sym, label, alignment);