Lines Matching defs:select

98 /// NK_INCLUDE_FIXED_TYPES          | If defined it will include header `<stdint.h>` for fixed sized types otherwise nuklear tries to select the correct type. If that fails it will throw a compiler error and you have to select the correct types yourself.
5945 NK_LIB int nk_toggle_behavior(const struct nk_input *in, struct nk_rect select, nk_flags *state, int active);
14279 struct nk_style_selectable *select;
14400 select = &style->selectable;
14401 nk_zero_struct(*select);
14402 select->normal = nk_style_item_color(table[NK_COLOR_SELECT]);
14403 select->hover = nk_style_item_color(table[NK_COLOR_SELECT]);
14404 select->pressed = nk_style_item_color(table[NK_COLOR_SELECT]);
14405 select->normal_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]);
14406 select->hover_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]);
14407 select->pressed_active = nk_style_item_color(table[NK_COLOR_SELECT_ACTIVE]);
14408 select->text_normal = table[NK_COLOR_TEXT];
14409 select->text_hover = table[NK_COLOR_TEXT];
14410 select->text_pressed = table[NK_COLOR_TEXT];
14411 select->text_normal_active = table[NK_COLOR_TEXT];
14412 select->text_hover_active = table[NK_COLOR_TEXT];
14413 select->text_pressed_active = table[NK_COLOR_TEXT];
14414 select->padding = nk_vec2(2.0f,2.0f);
14415 select->image_padding = nk_vec2(2.0f,2.0f);
14416 select->touch_padding = nk_vec2(0,0);
14417 select->userdata = nk_handle_ptr(0);
14418 select->rounding = 0.0f;
14419 select->draw_begin = 0;
14420 select->draw_end = 0;
15725 /* select correct header background and text color */
18409 /* select correct button style */
18592 /* select correct button style */
19827 /* select correct colors/images */
19873 /* select correct colors/images */
19954 /* select correct background colors/images */
19960 /* select correct text colors */
20019 /* select correct colors */
20360 nk_toggle_behavior(const struct nk_input *in, struct nk_rect select,
20364 if (nk_button_behavior(state, select, in, NK_BUTTON_DEFAULT)) {
20368 if (*state & NK_WIDGET_STATE_HOVER && !nk_input_is_mouse_prev_hovering_rect(in, select))
20370 else if (nk_input_is_mouse_prev_hovering_rect(in, select))
20385 /* select correct colors/images */
20427 /* select correct colors/images */
20467 struct nk_rect select;
20487 select.w = font->height;
20488 select.h = select.w;
20489 select.y = r.y + r.h/2.0f - select.h/2.0f;
20490 select.x = r.x;
20493 cursor.x = select.x + style->padding.x + style->border;
20494 cursor.y = select.y + style->padding.y + style->border;
20495 cursor.w = select.w - (2 * style->padding.x + 2 * style->border);
20496 cursor.h = select.h - (2 * style->padding.y + 2 * style->border);
20499 label.x = select.x + select.w + style->spacing;
20500 label.y = select.y;
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);
20691 /* select correct colors/images */
21054 /* select correct slider images/colors */
21299 /* select correct colors/images to draw */
21485 /* select correct colors/images to draw */
23039 {/* select background colors/images */
23229 /* select correct colors to draw */
23601 /* select correct background and text color */
25639 /// - 2016/09/08 (1.16.0) - Added additional checks to select correct types if `NK_INCLUDE_FIXED_TYPES`
25683 /// - 2016/08/15 (1.09.3) - Fixed `NK_WINDOW_BACKGROUND` flag behavior to select a background