Lines Matching defs:active

1319 /// order. The topmost window thereby is the currently active window.<br /><br />
1407 /// nk_window_has_focus | Returns if the currently processed window is currently active
1414 /// nk_item_is_any_active | Returns if any window or widgets is currently hovered or active
1419 /// nk_window_set_focus | Set the currently processed window as active window
1741 /// Returns if the currently processed window is currently active
1752 /// Returns `false(0)` if current window is not active or `true(1)` if it is
1822 /// __name__ | Identifier of window you want to check if it is active
1824 /// Returns `true(1)` if current window is active or `false(0)` window not found or not active
1841 /// Returns if the any window is being hovered or any widget is currently active.
1852 /// Returns `true(1)` if any window is hovered or any item is active or `false(0)` otherwise
1895 /// Sets the window with given name as active
2015 /// height plus padding of currently active font and overwrites the row height
3049 NK_WIDGET_STATE_INACTIVE = NK_FLAG(2), /* widget is neither active nor hovered */
3143 NK_API int nk_check_label(struct nk_context*, const char*, int active);
3144 NK_API int nk_check_text(struct nk_context*, const char*, int,int active);
3147 NK_API int nk_checkbox_label(struct nk_context*, const char*, int *active);
3148 NK_API int nk_checkbox_text(struct nk_context*, const char*, int, int *active);
3156 NK_API int nk_radio_label(struct nk_context*, const char*, int *active);
3157 NK_API int nk_radio_text(struct nk_context*, const char*, int, int *active);
3158 NK_API int nk_option_label(struct nk_context*, const char*, int active);
3159 NK_API int nk_option_text(struct nk_context*, const char*, int, int active);
3439 NK_EDIT_INACTIVE = NK_FLAG(1), /* edit widget is not active and is not being modified */
3440 NK_EDIT_ACTIVATED = NK_FLAG(2), /* edit widget went from state inactive to state active */
3441 NK_EDIT_DEACTIVATED = NK_FLAG(3), /* edit widget went from state active to state inactive */
3455 NK_API int nk_chart_begin_colored(struct nk_context*, enum nk_chart_type, struct nk_color, struct nk_color active, int num, float min, float max);
3457 NK_API void nk_chart_add_slot_colored(struct nk_context *ctx, const enum nk_chart_type, struct nk_color, struct nk_color active, int count, float min_value, float max_value);
4114 int active;
4295 unsigned char active;
4830 struct nk_style_item active;
4857 struct nk_style_item active;
4889 /* background (active) */
4899 /* text color (active) */
4922 struct nk_style_item active;
4961 struct nk_style_item active;
4987 struct nk_style_item active;
5020 struct nk_style_item active;
5054 struct nk_style_item active;
5098 struct nk_style_item active;
5155 struct nk_style_item active;
5318 int active;
5376 int active;
5387 int active, prev;
5397 int active, prev;
5447 * nk_style_push_style_item(ctx, &ctx->style.button.active, nk_style_item_color(nk_rgb(255,0,0)));
5604 struct nk_window *active;
5945 NK_LIB int nk_toggle_behavior(const struct nk_input *in, struct nk_rect select, nk_flags *state, int active);
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);
5948 NK_LIB int nk_do_toggle(nk_flags *state, struct nk_command_buffer *out, struct nk_rect r, int *active, const char *str, int len, enum nk_toggle_type type, const struct nk_style_toggle *style, const struct nk_input *in, const struct nk_user_font *font);
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);
8196 buffer->marker[type].active = nk_true;
8209 if (buffer->marker[type].active)
8212 buffer->marker[type].active = nk_false;
8216 if (buffer->marker[type].active)
8219 buffer->marker[type].active = nk_false;
11866 struct nk_tt__active_edge *active = 0;
11887 struct nk_tt__active_edge **step = &active;
11892 /* update all active edges; */
11893 /* remove all active edges that terminate before the top of this scanline */
11913 z->next = active;
11914 active = z;
11920 /* now process all active edges */
11921 if (active)
11922 nk_tt__fill_active_edges_new(scanline, scanline2+1, result->w, active, scan_y_top);
11938 step = &active;
14305 button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]);
14326 button->active = nk_style_item_color(table[NK_COLOR_BUTTON_ACTIVE]);
14346 button->active = nk_style_item_color(table[NK_COLOR_WINDOW]);
14366 toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]);
14385 toggle->active = nk_style_item_color(table[NK_COLOR_TOGGLE_HOVER]);
14427 slider->active = nk_style_item_hide();
14451 button->active = nk_style_item_color(nk_rgb(44,44,44));
14472 prog->active = nk_style_item_color(table[NK_COLOR_SLIDER]);
14492 scroll->active = nk_style_item_color(table[NK_COLOR_SCROLLBAR]);
14515 button->active = nk_style_item_color(nk_rgb(44,44,44));
14538 edit->active = nk_style_item_color(table[NK_COLOR_EDIT]);
14564 property->active = nk_style_item_color(table[NK_COLOR_PROPERTY]);
14583 button->active = nk_style_item_color(table[NK_COLOR_PROPERTY]);
14604 edit->active = nk_style_item_color(table[NK_COLOR_PROPERTY]);
14637 combo->active = nk_style_item_color(table[NK_COLOR_COMBO]);
14656 button->active = nk_style_item_color(table[NK_COLOR_COMBO]);
14689 button->active = nk_style_item_color(table[NK_COLOR_TAB_HEADER]);
14710 button->active = nk_style_item_color(table[NK_COLOR_WINDOW]);
14734 win->header.active = nk_style_item_color(table[NK_COLOR_HEADER]);
14747 button->active = nk_style_item_color(table[NK_COLOR_HEADER]);
14767 button->active = nk_style_item_color(table[NK_COLOR_HEADER]);
15061 ctx->active = 0;
15097 iter == ctx->active) {
15098 ctx->active = iter->prev;
15102 if (ctx->active)
15103 ctx->active->flags &= ~(unsigned)NK_WINDOW_ROM;
15164 buf->active = nk_true;
15197 if (!win->popup.buf.active) return;
15250 if (!it->popup.buf.active)
15256 buf->active = nk_false;
15548 int active = 0;
15549 active = (flags & (NK_WINDOW_CLOSABLE|NK_WINDOW_MINIMIZABLE));
15550 active = active || (flags & NK_WINDOW_TITLE);
15551 active = active && !(flags & NK_WINDOW_HIDDEN) && title;
15552 return active;
15726 if (ctx->active == win) {
15727 background = &style->window.header.active;
15926 /* only allow scrolling if parent window is active */
15928 if ((root_window == ctx->active) && layout->has_scrolling) {
15946 scroll_has_scrolling = (window == ctx->active) && layout->has_scrolling;
16094 if (window->property.active && window->property.old != window->property.seq &&
16095 window->property.active == window->property.prev) {
16099 window->property.prev = window->property.active;
16103 if (window->edit.active && window->edit.old != window->edit.seq &&
16104 window->edit.active == window->edit.prev) {
16108 window->edit.prev = window->edit.active;
16219 ctx->active = ctx->end;
16251 if (win == ctx->active || !ctx->active) {
16252 ctx->active = ctx->end;
16308 if (!ctx->active)
16309 ctx->active = win;
16325 if (!ctx->active && !(win->flags & NK_WINDOW_HIDDEN)) {
16326 ctx->active = win;
16350 if ((win != ctx->active) && ishovered && !ctx->input.mouse.buttons[NK_BUTTON_LEFT].down) {
16360 if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) &&
16380 if (iter->popup.win && iter->popup.active && !(iter->flags & NK_WINDOW_HIDDEN) &&
16391 ctx->active = iter;
16393 /* current window is active in that position so transfer to top
16401 /* current window is active in that position so transfer to top
16407 ctx->active = win;
16552 return ctx->current == ctx->active;
16575 if (iter->popup.active && iter->popup.win && nk_input_is_mouse_hovering_rect(&ctx->input, iter->popup.win->bounds))
16656 return win == ctx->active;
16675 NK_ASSERT(ctx->current != win && "You cannot close a currently active window");
16790 ctx->active = win;
16832 win->popup.active = 0;
16838 if (!win->popup.active) {
16841 win->popup.active = 1;
16875 win->popup.active = 1;
16888 win->popup.buf.active = 0;
16889 win->popup.active = 0;
16957 win->popup.active = 1;
17014 win->popup.active = 0;
17086 if (ctx->current != ctx->active)
17089 /* check if currently active contextual is active */
19077 if (!ctx || !ctx->current || ctx->active != ctx->current)
19099 if (!ctx || !ctx->current || ctx->active != ctx->current)
19121 if (!ctx || !ctx->current || ctx->active != ctx->current)
19781 background = &style->active;
20186 button.active = nk_style_item_color(color);
20361 nk_flags *state, int active)
20366 active = !active;
20372 return active;
20376 nk_flags state, const struct nk_style_toggle *style, int active,
20405 if (active) {
20418 nk_flags state, const struct nk_style_toggle *style, int active,
20447 if (active) {
20461 int *active, const char *str, int len, enum nk_toggle_type type,
20474 if (!out || !style || !font || !active)
20505 was_active = *active;
20506 *active = nk_toggle_behavior(in, bounds, state, *active);
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);
20518 return (was_active != *active);
20526 nk_check_text(struct nk_context *ctx, const char *text, int len, int active)
20540 return active;
20547 if (!state) return active;
20549 nk_do_toggle(&ctx->last_widget_state, &win->buffer, bounds, &active,
20551 return active;
20568 nk_checkbox_text(struct nk_context *ctx, const char *text, int len, int *active)
20573 NK_ASSERT(active);
20574 if (!ctx || !text || !active) return 0;
20575 old_val = *active;
20576 *active = nk_check_text(ctx, text, len, *active);
20577 return old_val != *active;
20583 int active;
20589 active = (int)((*flags & value) & value);
20590 if (nk_checkbox_text(ctx, text, len, &active)) {
20591 if (active) *flags |= value;
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);
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);
20649 nk_radio_text(struct nk_context *ctx, const char *text, int len, int *active)
20654 NK_ASSERT(active);
20655 if (!ctx || !text || !active) return 0;
20656 old_value = *active;
20657 *active = nk_option_text(ctx, text, len, old_value);
20658 return old_value != *active;
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);
20682 nk_flags state, const struct nk_style_selectable *style, int active,
20692 if (!active) {
21063 background = &style->active;
21301 background = &style->active;
21487 background = &style->active;
22906 prev_state = (char)edit->active;
22909 edit->active = NK_INBOX(in->mouse.pos.x, in->mouse.pos.y,
22914 if (!prev_state && edit->active) {
22924 } else if (!edit->active) edit->mode = NK_TEXT_EDIT_MODE_VIEW;
22930 ret = (edit->active) ? NK_EDIT_ACTIVE: NK_EDIT_INACTIVE;
22931 if (prev_state != edit->active)
22932 ret |= (edit->active) ? NK_EDIT_ACTIVATED: NK_EDIT_DEACTIVATED;
22935 if (edit->active && in)
23028 if (edit->active)
23042 background = &style->active;
23054 if (edit->active)
23231 background = &style->active;
23341 /* not active so just draw text */
23350 background = &style->active;
23381 win->edit.active = nk_true;
23395 win->edit.active = nk_false;
23420 if (win->edit.active && hash == win->edit.name) {
23434 edit->active = nk_true;
23435 } else edit->active = nk_false;
23445 if (edit->active) {
23485 if (win->edit.active && hash == win->edit.name) {
23494 edit->active = (unsigned char)win->edit.active;
23495 } else edit->active = nk_false;
23499 prev_state = (unsigned char)edit->active;
23506 if (edit->active && prev_state != edit->active) {
23508 win->edit.active = nk_true;
23510 } else if (prev_state && !edit->active) {
23512 win->edit.active = nk_false;
23603 background = &style->active;
23642 int active, old;
23755 active = 0;
23756 } else active = (*state == NK_PROPERTY_EDIT);
23760 text_edit->active = (unsigned char)active;
23777 if (text_edit->active && nk_input_is_key_pressed(in, NK_KEY_ENTER))
23778 text_edit->active = nk_false;
23780 if (active && !text_edit->active) {
23781 /* property is now not active so convert edit text to value*/
23884 if (win->property.active && hash == win->property.name) {
23903 in = ((s == NK_WIDGET_ROM && !win->property.active) ||
23910 if (in && *state != NK_PROPERTY_DEFAULT && !win->property.active) {
23912 win->property.active = 1;
23925 /* check if previously active property is now inactive */
23934 win->property.active = 0;
24619 background = &style->combo.active;
24710 background = &style->combo.active;
24789 background = &style->combo.active;
24876 background = &style->combo.active;
24970 background = &style->combo.active;
25048 background = &style->combo.active;
25331 /* make sure that no nonblocking popup is currently active */
25598 /// - 2016/09/28 (1.22.3) - Fixed small bug in edit widgets if not active. The wrong
25678 /// - 2016/08/15 (1.09.4) - Editbox are now still active if enter was pressed with flag