Lines Matching defs:tab
5234 struct nk_style_tab tab;
14287 struct nk_style_tab *tab;
14671 /* tab */
14672 tab = &style->tab;
14673 tab->background = nk_style_item_color(table[NK_COLOR_TAB_HEADER]);
14674 tab->border_color = table[NK_COLOR_BORDER];
14675 tab->text = table[NK_COLOR_TEXT];
14676 tab->sym_minimize = NK_SYMBOL_TRIANGLE_RIGHT;
14677 tab->sym_maximize = NK_SYMBOL_TRIANGLE_DOWN;
14678 tab->padding = nk_vec2(4,4);
14679 tab->spacing = nk_vec2(4,4);
14680 tab->indent = 10.0f;
14681 tab->border = 1;
14682 tab->rounding = 0;
14684 /* tab button */
14685 button = &style->tab.tab_minimize_button;
14703 style->tab.tab_maximize_button =*button;
14706 button = &style->tab.node_minimize_button;
14724 style->tab.node_maximize_button =*button;
16082 /* window is visible and not tab */
18384 row_height = style->font->height + 2 * style->tab.padding.y;
18391 const struct nk_style_item *background = &style->tab.background;
18397 nk_fill_rect(out, header, 0, style->tab.border_color);
18398 nk_fill_rect(out, nk_shrink_rect(header, style->tab.border),
18399 style->tab.rounding, background->data.color);
18411 symbol = style->tab.sym_maximize;
18413 button = &style->tab.tab_maximize_button;
18414 else button = &style->tab.node_maximize_button;
18416 symbol = style->tab.sym_minimize;
18418 button = &style->tab.tab_minimize_button;
18419 else button = &style->tab.node_minimize_button;
18424 sym.y = header.y + style->tab.padding.y;
18425 sym.x = header.x + style->tab.padding.x;
18433 sym.w = style->font->height + style->tab.spacing.x;}
18441 label.w = header.w - (sym.w + item_spacing.y + style->tab.indent);
18443 text.text = style->tab.text;
18450 layout->at_x = header.x + (float)*layout->offset_x + style->tab.indent;
18451 layout->bounds.w = NK_MAX(layout->bounds.w, style->tab.indent);
18452 layout->bounds.w -= (style->tab.indent + style->window.padding.x);
18505 layout->at_x -= ctx->style.tab.indent + ctx->style.window.padding.x;
18506 layout->bounds.w += ctx->style.tab.indent + ctx->style.window.padding.x;
18570 row_height = style->font->height + 2 * style->tab.padding.y;
18577 const struct nk_style_item *background = &style->tab.background;
18583 nk_fill_rect(out, header, 0, style->tab.border_color);
18584 nk_fill_rect(out, nk_shrink_rect(header, style->tab.border),
18585 style->tab.rounding, background->data.color);
18594 symbol = style->tab.sym_maximize;
18596 button = &style->tab.tab_maximize_button;
18597 else button = &style->tab.node_maximize_button;
18599 symbol = style->tab.sym_minimize;
18601 button = &style->tab.tab_minimize_button;
18602 else button = &style->tab.node_minimize_button;
18606 sym.y = header.y + style->tab.padding.y;
18607 sym.x = header.x + style->tab.padding.x;
18622 label.w = NK_MIN(header.w - (sym.w + item_spacing.y + style->tab.indent), text_width);
18633 layout->at_x = header.x + (float)*layout->offset_x + style->tab.indent;
18634 layout->bounds.w = NK_MAX(layout->bounds.w, style->tab.indent);
18635 layout->bounds.w -= (style->tab.indent + style->window.padding.x);
23019 /* tab handler */
23020 {int tab = nk_input_is_key_pressed(in, NK_KEY_TAB);
23021 if (tab && (flags & NK_EDIT_ALLOW_TAB)) {