Lines Matching refs:combo

5235     struct nk_style_combo combo;
14285 struct nk_style_combo *combo;
14633 /* combo */
14634 combo = &style->combo;
14635 combo->normal = nk_style_item_color(table[NK_COLOR_COMBO]);
14636 combo->hover = nk_style_item_color(table[NK_COLOR_COMBO]);
14637 combo->active = nk_style_item_color(table[NK_COLOR_COMBO]);
14638 combo->border_color = table[NK_COLOR_BORDER];
14639 combo->label_normal = table[NK_COLOR_TEXT];
14640 combo->label_hover = table[NK_COLOR_TEXT];
14641 combo->label_active = table[NK_COLOR_TEXT];
14642 combo->sym_normal = NK_SYMBOL_TRIANGLE_DOWN;
14643 combo->sym_hover = NK_SYMBOL_TRIANGLE_DOWN;
14644 combo->sym_active = NK_SYMBOL_TRIANGLE_DOWN;
14645 combo->content_padding = nk_vec2(4,4);
14646 combo->button_padding = nk_vec2(0,4);
14647 combo->spacing = nk_vec2(4,0);
14648 combo->border = 1;
14649 combo->rounding = 0;
14651 /* combo button */
14652 button = &style->combo.button;
24617 /* draw combo box header background and border */
24619 background = &style->combo.active;
24620 text.text = style->combo.label_active;
24622 background = &style->combo.hover;
24623 text.text = style->combo.label_hover;
24625 background = &style->combo.normal;
24626 text.text = style->combo.label_normal;
24633 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24634 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
24644 sym = style->combo.sym_hover;
24646 sym = style->combo.sym_active;
24647 else sym = style->combo.sym_normal;
24650 button.w = header.h - 2 * style->combo.button_padding.y;
24651 button.x = (header.x + header.w - header.h) - style->combo.button_padding.x;
24652 button.y = header.y + style->combo.button_padding.y;
24655 content.x = button.x + style->combo.button.padding.x;
24656 content.y = button.y + style->combo.button.padding.y;
24657 content.w = button.w - 2 * style->combo.button.padding.x;
24658 content.h = button.h - 2 * style->combo.button.padding.y;
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;
24671 &ctx->style.combo.button, sym, style->font);
24708 /* draw combo box header background and border */
24710 background = &style->combo.active;
24712 background = &style->combo.hover;
24713 else background = &style->combo.normal;
24718 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24719 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
24728 sym = style->combo.sym_hover;
24730 sym = style->combo.sym_active;
24731 else sym = style->combo.sym_normal;
24734 button.w = header.h - 2 * style->combo.button_padding.y;
24735 button.x = (header.x + header.w - header.h) - style->combo.button_padding.x;
24736 button.y = header.y + style->combo.button_padding.y;
24739 content.x = button.x + style->combo.button.padding.x;
24740 content.y = button.y + style->combo.button.padding.y;
24741 content.w = button.w - 2 * style->combo.button.padding.x;
24742 content.h = button.h - 2 * style->combo.button.padding.y;
24745 bounds.h = header.h - 4 * style->combo.content_padding.y;
24746 bounds.y = header.y + 2 * style->combo.content_padding.y;
24747 bounds.x = header.x + 2 * style->combo.content_padding.x;
24748 bounds.w = (button.x - (style->combo.content_padding.x + style->combo.spacing.x)) - bounds.x;
24753 &ctx->style.combo.button, sym, style->font);
24787 /* draw combo box header background and border */
24789 background = &style->combo.active;
24790 symbol_color = style->combo.symbol_active;
24792 background = &style->combo.hover;
24793 symbol_color = style->combo.symbol_hover;
24795 background = &style->combo.normal;
24796 symbol_color = style->combo.symbol_hover;
24804 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24805 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
24814 sym = style->combo.sym_hover;
24816 sym = style->combo.sym_active;
24817 else sym = style->combo.sym_normal;
24820 button.w = header.h - 2 * style->combo.button_padding.y;
24821 button.x = (header.x + header.w - header.h) - style->combo.button_padding.y;
24822 button.y = header.y + style->combo.button_padding.y;
24825 content.x = button.x + style->combo.button.padding.x;
24826 content.y = button.y + style->combo.button.padding.y;
24827 content.w = button.w - 2 * style->combo.button.padding.x;
24828 content.h = button.h - 2 * style->combo.button.padding.y;
24831 bounds.h = header.h - 2 * style->combo.content_padding.y;
24832 bounds.y = header.y + style->combo.content_padding.y;
24833 bounds.x = header.x + style->combo.content_padding.x;
24834 bounds.w = (button.x - style->combo.content_padding.y) - bounds.x;
24840 &ctx->style.combo.button, sym, style->font);
24874 /* draw combo box header background and border */
24876 background = &style->combo.active;
24877 symbol_color = style->combo.symbol_active;
24878 text.text = style->combo.label_active;
24880 background = &style->combo.hover;
24881 symbol_color = style->combo.symbol_hover;
24882 text.text = style->combo.label_hover;
24884 background = &style->combo.normal;
24885 symbol_color = style->combo.symbol_normal;
24886 text.text = style->combo.label_normal;
24893 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24894 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
24904 sym = style->combo.sym_hover;
24906 sym = style->combo.sym_active;
24907 else sym = style->combo.sym_normal;
24910 button.w = header.h - 2 * style->combo.button_padding.y;
24911 button.x = (header.x + header.w - header.h) - style->combo.button_padding.x;
24912 button.y = header.y + style->combo.button_padding.y;
24915 content.x = button.x + style->combo.button.padding.x;
24916 content.y = button.y + style->combo.button.padding.y;
24917 content.w = button.w - 2 * style->combo.button.padding.x;
24918 content.h = button.h - 2 * style->combo.button.padding.y;
24920 &ctx->style.combo.button, sym, style->font);
24923 image.x = header.x + style->combo.content_padding.x;
24924 image.y = header.y + style->combo.content_padding.y;
24925 image.h = header.h - 2 * style->combo.content_padding.y;
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;
24968 /* draw combo box header background and border */
24970 background = &style->combo.active;
24972 background = &style->combo.hover;
24973 else background = &style->combo.normal;
24978 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
24979 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
24988 sym = style->combo.sym_hover;
24990 sym = style->combo.sym_active;
24991 else sym = style->combo.sym_normal;
24994 button.w = header.h - 2 * style->combo.button_padding.y;
24995 button.x = (header.x + header.w - header.h) - style->combo.button_padding.y;
24996 button.y = header.y + style->combo.button_padding.y;
24999 content.x = button.x + style->combo.button.padding.x;
25000 content.y = button.y + style->combo.button.padding.y;
25001 content.w = button.w - 2 * style->combo.button.padding.x;
25002 content.h = button.h - 2 * style->combo.button.padding.y;
25005 bounds.h = header.h - 2 * style->combo.content_padding.y;
25006 bounds.y = header.y + style->combo.content_padding.y;
25007 bounds.x = header.x + style->combo.content_padding.x;
25008 bounds.w = (button.x - style->combo.content_padding.y) - bounds.x;
25013 &ctx->style.combo.button, sym, style->font);
25046 /* draw combo box header background and border */
25048 background = &style->combo.active;
25049 text.text = style->combo.label_active;
25051 background = &style->combo.hover;
25052 text.text = style->combo.label_hover;
25054 background = &style->combo.normal;
25055 text.text = style->combo.label_normal;
25062 nk_fill_rect(&win->buffer, header, style->combo.rounding, background->data.color);
25063 nk_stroke_rect(&win->buffer, header, style->combo.rounding, style->combo.border, style->combo.border_color);
25073 sym = style->combo.sym_hover;
25075 sym = style->combo.sym_active;
25076 else sym = style->combo.sym_normal;
25079 button.w = header.h - 2 * style->combo.button_padding.y;
25080 button.x = (header.x + header.w - header.h) - style->combo.button_padding.x;
25081 button.y = header.y + style->combo.button_padding.y;
25084 content.x = button.x + style->combo.button.padding.x;
25085 content.y = button.y + style->combo.button.padding.y;
25086 content.w = button.w - 2 * style->combo.button.padding.x;
25087 content.h = button.h - 2 * style->combo.button.padding.y;
25089 &ctx->style.combo.button, sym, style->font);
25092 image.x = header.x + style->combo.content_padding.x;
25093 image.y = header.y + style->combo.content_padding.y;
25094 image.h = header.h - 2 * style->combo.content_padding.y;
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;
25567 /// - 2016/11/19 (1.28.5) - Fixed abstract combo box closing behavior.
25613 /// - 2016/09/13 (1.21.0) - !BREAKING! Fixed nonblocking popup behavior in menu, combo,
25643 /// - 2016/09/03 (1.15.1) - Fixed gaps inside combo boxes in OpenGL.
25657 /// a hack for combo box and menu.
25731 /// sub windows (combo, menu, ...).