Lines Matching defs:title

1391 /// nk_begin_titled                     | Extended window start with separated title and identifier to allow multiple windows with same name but not title
1438 /// NK_WINDOW_TITLE | Forces a header at the top at the window showing the title
1469 /// int nk_begin(struct nk_context *ctx, const char *title, struct nk_rect bounds, nk_flags flags);
1475 /// __title__ | Window title and identifier. Needs to be persistent over frames to identify the window
1482 NK_API int nk_begin(struct nk_context *ctx, const char *title, struct nk_rect bounds, nk_flags flags);
1484 /// Extended window start with separated title and identifier to allow multiple
1485 /// windows with same title but not name
1488 /// int nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, struct nk_rect bounds, nk_flags flags);
1495 /// __title__ | Window title displayed inside header if flag `NK_WINDOW_TITLE` or either `NK_WINDOW_CLOSABLE` or `NK_WINDOW_MINIMIZED` was set
1502 NK_API int nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, struct nk_rect bounds, nk_flags flags);
2642 /// nk_group_begin_titled | Start a new group with separeted name and title and internal scrollbar handling
2653 /// int nk_group_begin(struct nk_context*, const char *title, nk_flags);
2664 NK_API int nk_group_begin(struct nk_context*, const char *title, nk_flags);
2668 /// int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags);
2675 /// __title__ | Group header title
2680 NK_API int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags);
2696 /// int nk_group_scrolled_offset_begin(struct nk_context*, nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags);
2704 /// __title__ | Window unique group title used to both identify and display in the group header
2709 NK_API int nk_group_scrolled_offset_begin(struct nk_context*, nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags);
2714 /// int nk_group_scrolled_begin(struct nk_context*, struct nk_scroll *off, const char *title, nk_flags);
2721 /// __title__ | Window unique group title used to both identify and display in the group header
2726 NK_API int nk_group_scrolled_begin(struct nk_context*, struct nk_scroll *off, const char *title, nk_flags);
2780 /// `nk_tree_xxx_pop_xxx()` functions. Each starting functions takes a title label
2845 /// #define nk_tree_push(ctx, type, title, state)
2857 #define nk_tree_push(ctx, type, title, state) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__)
2861 /// #define nk_tree_push_id(ctx, type, title, state, id)
2874 #define nk_tree_push_id(ctx, type, title, state, id) nk_tree_push_hashed(ctx, type, title, state, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id)
2879 /// int nk_tree_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed);
2894 NK_API int nk_tree_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed);
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)
2942 /// int nk_tree_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed);
2958 NK_API int nk_tree_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, const char *hash, int len,int seed);
2973 /// int nk_tree_state_push(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states *state);
2985 NK_API int nk_tree_state_push(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states *state);
2989 /// int nk_tree_state_image_push(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states *state);
3002 NK_API int nk_tree_state_image_push(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states *state);
3015 #define nk_tree_element_push(ctx, type, title, state, sel) nk_tree_element_push_hashed(ctx, type, title, state, sel, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),__LINE__)
3016 #define nk_tree_element_push_id(ctx, type, title, state, sel, id) nk_tree_element_push_hashed(ctx, type, title, state, sel, NK_FILE_LINE,nk_strlen(NK_FILE_LINE),id)
3017 NK_API int nk_tree_element_push_hashed(struct nk_context*, enum nk_tree_type, const char *title, enum nk_collapse_states initial_state, int *selected, const char *hash, int len, int seed);
3018 NK_API int nk_tree_element_image_push_hashed(struct nk_context*, enum nk_tree_type, struct nk_image, const char *title, enum nk_collapse_states initial_state, int *selected, const char *hash, int len,int seed);
3118 NK_API int nk_button_text(struct nk_context*, const char *title, int len);
3119 NK_API int nk_button_label(struct nk_context*, const char *title);
3127 NK_API int nk_button_text_styled(struct nk_context*, const struct nk_style_button*, const char *title, int len);
3128 NK_API int nk_button_label_styled(struct nk_context*, const struct nk_style_button*, const char *title);
3132 NK_API int nk_button_symbol_label_styled(struct nk_context *ctx, const struct nk_style_button *style, enum nk_symbol_type symbol, const char *title, nk_flags align);
3541 NK_API int nk_menu_begin_text(struct nk_context*, const char* title, int title_len, nk_flags align, struct nk_vec2 size);
5164 /* title */
5895 NK_LIB int nk_panel_has_header(nk_flags flags, const char *title);
5901 NK_LIB int nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type);
15546 nk_panel_has_header(nk_flags flags, const char *title)
15551 active = active && !(flags & NK_WINDOW_HIDDEN) && title;
15607 nk_panel_begin(struct nk_context *ctx, const char *title, enum nk_panel_type panel_type)
15654 if (nk_panel_has_header(win->flags, title)) {
15706 if (nk_panel_has_header(win->flags, title))
15793 {/* window header title */
15794 int text_len = nk_strlen(title);
15796 float t = font->width(font->userdata, font->height, title, text_len);
15805 nk_widget_text(out, label,(const char*)title, text_len, &text, NK_TEXT_LEFT, font);}
16261 nk_begin(struct nk_context *ctx, const char *title,
16264 return nk_begin_titled(ctx, title, title, bounds, flags);
16267 nk_begin_titled(struct nk_context *ctx, const char *name, const char *title,
16278 NK_ASSERT(title);
16281 if (!ctx || ctx->current || !title || !name)
16415 ret = nk_panel_begin(ctx, title, NK_PANEL_WINDOW);
16803 const char *title, nk_flags flags, struct nk_rect rect)
16814 NK_ASSERT(title);
16824 title_len = (int)nk_strlen(title);
16825 title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_POPUP);
16866 if (nk_panel_begin(ctx, title, NK_PANEL_POPUP)) {
17389 nk_menu_begin_text(struct nk_context *ctx, const char *title, int len,
17409 title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button, in, ctx->style.font))
17411 return nk_menu_begin(ctx, win, title, is_clicked, header, size);
17469 nk_menu_begin_image_text(struct nk_context *ctx, const char *title, int len,
17489 header, img, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button,
17492 return nk_menu_begin(ctx, win, title, is_clicked, header, size);
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);
17501 nk_menu_begin_symbol_text(struct nk_context *ctx, const char *title, int len,
17522 header, sym, title, len, align, NK_BUTTON_DEFAULT, &ctx->style.menu_button,
17524 return nk_menu_begin(ctx, win, title, is_clicked, header, size);
17528 const char *title, nk_flags align, enum nk_symbol_type sym, struct nk_vec2 size )
17530 return nk_menu_begin_symbol_text(ctx, title, nk_strlen(title), align,sym,size);
17533 nk_menu_item_text(struct nk_context *ctx, const char *title, int len, nk_flags align)
17535 return nk_contextual_item_text(ctx, title, len, align);
18351 struct nk_image *img, const char *title, enum nk_collapse_states *state)
18445 nk_widget_text(out, label, title, nk_strlen(title), &text,
18459 struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
18469 title_len = (int)nk_strlen(title);
18470 tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line);
18477 return nk_tree_state_base(ctx, type, img, title, (enum nk_collapse_states*)state);
18481 const char *title, enum nk_collapse_states *state)
18483 return nk_tree_state_base(ctx, type, 0, title, 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);
18512 const char *title, enum nk_collapse_states initial_state,
18515 return nk_tree_base(ctx, type, 0, title, initial_state, hash, len, line);
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,
18615 text_len = nk_strlen(title);
18616 text_width = style->font->width(style->font->userdata, style->font->height, title, text_len);
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,
18642 struct nk_image *img, const char *title, enum nk_collapse_states initial_state,
18652 title_len = (int)nk_strlen(title);
18653 tree_hash = nk_murmur_hash(title, (int)title_len, (nk_hash)line);
18659 } return nk_tree_element_image_push_hashed_base(ctx, type, img, title,
18660 nk_strlen(title), (enum nk_collapse_states*)state, selected);
18664 const char *title, enum nk_collapse_states initial_state,
18667 return nk_tree_element_base(ctx, type, 0, title, initial_state, selected, hash, len, seed);
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);
18693 nk_uint *x_offset, nk_uint *y_offset, const char *title, nk_flags flags)
18718 nk_panel_begin(ctx, (flags & NK_WINDOW_TITLE) ? title: 0, NK_PANEL_GROUP);
18804 struct nk_scroll *scroll, const char *title, nk_flags flags)
18806 return nk_group_scrolled_offset_begin(ctx, &scroll->x, &scroll->y, title, flags);
18810 const char *title, nk_flags flags)
18839 return nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags);
18842 nk_group_begin(struct nk_context *ctx, const char *title, nk_flags flags)
18844 return nk_group_begin_titled(ctx, title, title, flags);
18930 const char *title, nk_flags flags, int row_height, int row_count)
18945 NK_ASSERT(title);
18946 if (!ctx || !view || !title) return 0;
18954 title_len = (int)nk_strlen(title);
18955 title_hash = nk_murmur_hash(title, (int)title_len, NK_PANEL_GROUP);
18970 result = nk_group_scrolled_offset_begin(ctx, x_offset, y_offset, title, flags);
20116 const struct nk_style_button *style, const char *title, int len)
20138 title, len, style->text_alignment, ctx->button_behavior,
20142 nk_button_text(struct nk_context *ctx, const char *title, int len)
20146 return nk_button_text_styled(ctx, &ctx->style.button, title, len);
20149 const struct nk_style_button *style, const char *title)
20151 return nk_button_text_styled(ctx, style, title, nk_strlen(title));
20153 NK_API int nk_button_label(struct nk_context *ctx, const char *title)
20155 return nk_button_text(ctx, title, nk_strlen(title));
20300 const char *title, nk_flags align)
20302 return nk_button_symbol_text_styled(ctx, style, symbol, title, nk_strlen(title), align);
20949 const char *title, nk_flags align, int *value)
20951 return nk_selectable_symbol_text(ctx, sym, title, nk_strlen(title), align, value);
20983 const char *title, int title_len, nk_flags align, int value)
20985 nk_selectable_symbol_text(ctx, sym, title, title_len, align, &value);return value;
20989 const char *title, nk_flags align, int value)
20991 return nk_select_symbol_text(ctx, sym, title, nk_strlen(title), align, value);
25494 /// - 2018/01/12 (3.00.2) - Added `nk_group_begin_titled` for separed group identifier and title.