Lines Matching defs:name

285   #define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__COUNTER__)
287 #define NK_UNIQUE_NAME(name) NK_STRING_JOIN(name,__LINE__)
1391 /// nk_begin_titled | Extended window start with separated title and identifier to allow multiple windows with same name but not title
1394 /// nk_window_find | Finds and returns the window with give name
1408 /// nk_window_is_collapsed | Returns if the window with given name is currently minimized/collapsed
1422 /// nk_window_close | Closes the window with given window name which deletes the window at the end of the frame
1423 /// nk_window_collapse | Collapses the window with given window name
1424 /// nk_window_collapse_if | Collapses the window with given window name if the given condition was met
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);
1502 NK_API int nk_begin_titled(struct nk_context *ctx, const char *name, const char *title, struct nk_rect bounds, nk_flags flags);
1517 /// Finds and returns a window from passed name
1520 /// struct nk_window *nk_window_find(struct nk_context *ctx, const char *name);
1529 /// no window with the given name was found
1531 NK_API struct nk_window *nk_window_find(struct nk_context *ctx, const char *name);
1771 /// Returns if the window with given name is currently minimized/collapsed
1773 /// int nk_window_is_collapsed(struct nk_context *ctx, const char *name);
1784 NK_API int nk_window_is_collapsed(struct nk_context *ctx, const char *name);
1786 /// Returns if the window with given name was closed by calling `nk_close`
1788 /// int nk_window_is_closed(struct nk_context *ctx, const char *name);
1800 /// Returns if the window with given name is hidden
1802 /// int nk_window_is_hidden(struct nk_context *ctx, const char *name);
1816 /// int nk_window_is_active(struct nk_context *ctx, const char *name);
1856 /// Updates position and size of window with passed in name
1858 /// void nk_window_set_bounds(struct nk_context*, const char *name, struct nk_rect bounds);
1867 NK_API void nk_window_set_bounds(struct nk_context*, const char *name, struct nk_rect bounds);
1869 /// Updates position of window with passed name
1871 /// void nk_window_set_position(struct nk_context*, const char *name, struct nk_vec2 pos);
1880 NK_API void nk_window_set_position(struct nk_context*, const char *name, struct nk_vec2 pos);
1882 /// Updates size of window with passed in name
1884 /// void nk_window_set_size(struct nk_context*, const char *name, struct nk_vec2);
1893 NK_API void nk_window_set_size(struct nk_context*, const char *name, struct nk_vec2);
1895 /// Sets the window with given name as active
1897 /// void nk_window_set_focus(struct nk_context*, const char *name);
1905 NK_API void nk_window_set_focus(struct nk_context*, const char *name);
1925 /// void nk_window_close(struct nk_context *ctx, const char *name);
1933 NK_API void nk_window_close(struct nk_context *ctx, const char *name);
1935 /// Updates collapse state of a window with given name
1937 /// void nk_window_collapse(struct nk_context*, const char *name, enum nk_collapse_states state);
1946 NK_API void nk_window_collapse(struct nk_context*, const char *name, enum nk_collapse_states state);
1948 /// Updates collapse state of a window with given name if given condition is met
1950 /// void nk_window_collapse_if(struct nk_context*, const char *name, enum nk_collapse_states, int cond);
1960 NK_API void nk_window_collapse_if(struct nk_context*, const char *name, enum nk_collapse_states, int cond);
1962 /// updates visibility state of a window with given name
1964 /// void nk_window_show(struct nk_context*, const char *name, enum nk_show_states);
1973 NK_API void nk_window_show(struct nk_context*, const char *name, enum nk_show_states);
1975 /// Updates visibility state of a window with given name if a given condition is met
1977 /// void nk_window_show_if(struct nk_context*, const char *name, enum nk_show_states, int cond);
1987 NK_API void nk_window_show_if(struct nk_context*, const char *name, enum nk_show_states, int cond);
2571 /// fuctionality. Groups just like windows are identified by an unique name and
2642 /// nk_group_begin_titled | Start a new group with separeted name and title and internal scrollbar handling
2668 /// int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags);
2680 NK_API int nk_group_begin_titled(struct nk_context*, const char *name, const char *title, nk_flags);
3214 /// Each property requires a unique name for identifaction that is also used for
3215 /// displaying a label. If you want to use the same name multiple times make sure
3216 /// add a '#' before your name. The '#' will not be shown but will generate a
3286 /// void nk_property_int(struct nk_context *ctx, const char *name, int min, int *val, int max, int step, float inc_per_pixel);
3299 NK_API void nk_property_int(struct nk_context*, const char *name, int min, int *val, int max, int step, float inc_per_pixel);
3307 /// void nk_property_float(struct nk_context *ctx, const char *name, float min, float *val, float max, float step, float inc_per_pixel);
3320 NK_API void nk_property_float(struct nk_context*, const char *name, float min, float *val, float max, float step, float inc_per_pixel);
3328 /// void nk_property_double(struct nk_context *ctx, const char *name, double min, double *val, double max, double step, double inc_per_pixel);
3341 NK_API void nk_property_double(struct nk_context*, const char *name, double min, double *val, double max, double step, float inc_per_pixel);
3349 /// int nk_propertyi(struct nk_context *ctx, const char *name, int min, int val, int max, int step, float inc_per_pixel);
3364 NK_API int nk_propertyi(struct nk_context*, const char *name, int min, int val, int max, int step, float inc_per_pixel);
3372 /// float nk_propertyf(struct nk_context *ctx, const char *name, float min, float val, float max, float step, float inc_per_pixel);
3387 NK_API float nk_propertyf(struct nk_context*, const char *name, float min, float val, float max, float step, float inc_per_pixel);
3395 /// float nk_propertyd(struct nk_context *ctx, const char *name, double min, double val, double max, double step, double inc_per_pixel);
3410 NK_API double nk_propertyd(struct nk_context*, const char *name, double min, double val, double max, double step, float inc_per_pixel);
5375 nk_hash name;
5384 nk_hash name;
5403 nk_hash name;
5411 nk_hash name;
5489 #define NK_CONFIGURATION_STACK_TYPE(prefix, name, type)\
5490 struct nk_config_stack_##name##_element {\
5870 NK_LIB struct nk_window *nk_find_window(struct nk_context *ctx, nk_hash hash, const char *name);
5889 NK_LIB nk_uint *nk_add_value(struct nk_context *ctx, struct nk_window *win, nk_hash name, nk_uint value);
5890 NK_LIB nk_uint *nk_find_value(struct nk_window *win, nk_hash name);
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);
6015 NK_LIB void nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant *variant, float inc_per_pixel, const enum nk_property_filter filter);
15486 nk_hash name, nk_uint value)
15498 win->tables->keys[win->tables->size] = name;
15503 nk_find_value(struct nk_window *win, nk_hash name)
15510 if (iter->keys[i] == name) {
16171 nk_find_window(struct nk_context *ctx, nk_hash hash, const char *name)
16177 if (iter->name == hash) {
16179 if (!nk_stricmpn(iter->name_string, name, max_len))
16267 nk_begin_titled(struct nk_context *ctx, const char *name, const char *title,
16277 NK_ASSERT(name);
16281 if (!ctx || ctx->current || !title || !name)
16286 name_len = (int)nk_strlen(name);
16287 name_hash = nk_murmur_hash(name, (int)name_len, NK_WINDOW_TITLE);
16288 win = nk_find_window(ctx, name_hash, name);
16303 win->name = name_hash;
16305 NK_MEMCPY(win->name_string, name, name_length);
16318 * I.) Have more than one window with the same name or
16599 nk_window_is_collapsed(struct nk_context *ctx, const char *name)
16607 title_len = (int)nk_strlen(name);
16608 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16609 win = nk_find_window(ctx, title_hash, name);
16614 nk_window_is_closed(struct nk_context *ctx, const char *name)
16622 title_len = (int)nk_strlen(name);
16623 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16624 win = nk_find_window(ctx, title_hash, name);
16629 nk_window_is_hidden(struct nk_context *ctx, const char *name)
16637 title_len = (int)nk_strlen(name);
16638 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16639 win = nk_find_window(ctx, title_hash, name);
16644 nk_window_is_active(struct nk_context *ctx, const char *name)
16652 title_len = (int)nk_strlen(name);
16653 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16654 win = nk_find_window(ctx, title_hash, name);
16659 nk_window_find(struct nk_context *ctx, const char *name)
16663 title_len = (int)nk_strlen(name);
16664 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16665 return nk_find_window(ctx, title_hash, name);
16668 nk_window_close(struct nk_context *ctx, const char *name)
16673 win = nk_window_find(ctx, name);
16682 const char *name, struct nk_rect bounds)
16687 win = nk_window_find(ctx, name);
16694 const char *name, struct nk_vec2 pos)
16696 struct nk_window *win = nk_window_find(ctx, name);
16703 const char *name, struct nk_vec2 size)
16705 struct nk_window *win = nk_window_find(ctx, name);
16723 nk_window_collapse(struct nk_context *ctx, const char *name,
16732 title_len = (int)nk_strlen(name);
16733 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16734 win = nk_find_window(ctx, title_hash, name);
16741 nk_window_collapse_if(struct nk_context *ctx, const char *name,
16746 nk_window_collapse(ctx, name, c);
16749 nk_window_show(struct nk_context *ctx, const char *name, enum nk_show_states s)
16757 title_len = (int)nk_strlen(name);
16758 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16759 win = nk_find_window(ctx, title_hash, name);
16766 nk_window_show_if(struct nk_context *ctx, const char *name,
16771 nk_window_show(ctx, name, s);
16775 nk_window_set_focus(struct nk_context *ctx, const char *name)
16783 title_len = (int)nk_strlen(name);
16784 title_hash = nk_murmur_hash(name, (int)title_len, NK_WINDOW_TITLE);
16785 win = nk_find_window(ctx, title_hash, name);
16837 if (win->popup.name != title_hash) {
16840 win->popup.name = title_hash;
17378 is_active = (popup && (win->popup.name == hash) && win->popup.type == NK_PANEL_MENU);
17385 win->popup.name = hash;
23382 win->edit.name = hash;
23396 win->edit.name = 0;
23420 if (win->edit.active && hash == win->edit.name) {
23485 if (win->edit.active && hash == win->edit.name) {
23509 win->edit.name = hash;
23596 const char *name, int len, const struct nk_user_font *font)
23625 nk_widget_text(out, *label, name, len, &text, NK_TEXT_CENTERED, font);
23630 const char *name, struct nk_property_variant *variant,
23663 name_len = nk_strlen(name);
23664 size = font->width(font->userdata, font->height, name, name_len);
23721 nk_draw_property(out, style, &property, &label, *ws, name, name_len, font);
23838 nk_property(struct nk_context *ctx, const char *name, struct nk_property_variant *variant,
23877 /* calculate hash from name */
23878 if (name[0] == '#') {
23879 hash = nk_murmur_hash(name, (int)nk_strlen(name), win->property.seq++);
23880 name++; /* special number hash */
23881 } else hash = nk_murmur_hash(name, (int)nk_strlen(name), 42);
23884 if (win->property.active && hash == win->property.name) {
23905 nk_do_property(&ctx->last_widget_state, &win->buffer, bounds, name,
23917 win->property.name = hash;
23938 nk_property_int(struct nk_context *ctx, const char *name,
23943 NK_ASSERT(name);
23946 if (!ctx || !ctx->current || !name || !val) return;
23948 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT);
23952 nk_property_float(struct nk_context *ctx, const char *name,
23957 NK_ASSERT(name);
23960 if (!ctx || !ctx->current || !name || !val) return;
23962 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
23966 nk_property_double(struct nk_context *ctx, const char *name,
23971 NK_ASSERT(name);
23974 if (!ctx || !ctx->current || !name || !val) return;
23976 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
23980 nk_propertyi(struct nk_context *ctx, const char *name, int min, int val,
23985 NK_ASSERT(name);
23987 if (!ctx || !ctx->current || !name) return val;
23989 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_INT);
23994 nk_propertyf(struct nk_context *ctx, const char *name, float min,
23999 NK_ASSERT(name);
24001 if (!ctx || !ctx->current || !name) return val;
24003 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
24008 nk_propertyd(struct nk_context *ctx, const char *name, double min,
24013 NK_ASSERT(name);
24015 if (!ctx || !ctx->current || !name) return val;
24017 nk_property(ctx, name, &variant, inc_per_pixel, NK_FILTER_FLOAT);
24576 is_active = (popup && (win->popup.name == hash) && win->popup.type == NK_PANEL_COMBO);
24583 win->popup.name = hash;
25492 /// - 2018/01/31 (3.00.4) - Removed name collision with stb_truetype.
25512 /// require the name of the window and must happen outside the window
25582 /// want the name. In addition I added `nk_list_view` which allows
25633 /// - 2016/09/08 (1.18.0) - Changed confusing name for `NK_SYMBOL_RECT_FILLED`, `NK_SYMBOL_RECT`
25636 /// - 2016/09/08 (1.17.0) - Changed confusing name for `NK_SYMBOL_CIRLCE_FILLED`, `NK_SYMBOL_CIRCLE`
25669 /// - 2016/08/26 (1.10.0) - Added window name string prepresentation to account for