Lines Matching refs:Style

278     PushStyleColor(ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled]);
317 const ImGuiStyle& style = g.Style;
351 const ImGuiStyle& style = g.Style;
357 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize);
551 const ImGuiStyle& style = g.Style;
595 float backup_padding_y = g.Style.FramePadding.y;
596 g.Style.FramePadding.y = 0.0f;
598 g.Style.FramePadding.y = backup_padding_y;
636 ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f);
649 RenderFrame(bb.Min, bb.Max, col, true, g.Style.FrameRounding);
696 ImRect bb(pos, pos + ImVec2(g.FontSize, g.FontSize) + g.Style.FramePadding * 2.0f);
704 RenderArrow(bb.Min + g.Style.FramePadding, window->Collapsed ? ImGuiDir_Right : ImGuiDir_Down, 1.0f);
731 const ImGuiStyle& style = g.Style;
751 if ((direction == ImGuiLayoutType_Vertical) && bb_height < g.FontSize + g.Style.FramePadding.y * 2.0f)
753 alpha = ImSaturate((bb_height - g.FontSize) / (g.Style.FramePadding.y * 2.0f));
877 const ImGuiStyle& style = g.Style;
913 const ImGuiStyle& style = g.Style;
972 const ImGuiStyle& style = g.Style;
1032 const ImGuiStyle& style = g.Style;
1067 const ImGuiStyle& style = g.Style;
1068 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize);
1136 window->DC.CurrentLineSize.y = ImMax(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y * 2);
1137 window->DC.CurrentLineTextBaseOffset = ImMax(window->DC.CurrentLineTextBaseOffset, g.Style.FramePadding.y);
1259 window->DrawList->AddRectFilled(bb_render.Min, bb_render.Max, col, g.Style.FrameRounding);
1277 return (g.FontSize + g.Style.ItemSpacing.y) * items_count - g.Style.ItemSpacing.y + (g.Style.WindowPadding.y * 2);
1293 const ImGuiStyle& style = g.Style;
1871 const ImGuiStyle& style = g.Style;
1953 SameLine(0, g.Style.ItemInnerSpacing.x);
1998 SameLine(0, g.Style.ItemInnerSpacing.x);
2001 SameLine(0, g.Style.ItemInnerSpacing.x);
2043 SameLine(0, g.Style.ItemInnerSpacing.x);
2046 SameLine(0, g.Style.ItemInnerSpacing.x);
2107 const ImGuiStyle& style = g.Style;
2304 const ImGuiStyle& style = g.Style;
2350 RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding);
2390 SameLine(0, g.Style.ItemInnerSpacing.x);
2459 const ImGuiStyle& style = g.Style;
2490 RenderFrame(frame_bb.Min, frame_bb.Max, frame_col, true, g.Style.FrameRounding);
2651 const ImGuiStyle& style = g.Style;
2723 SameLine(0, g.Style.ItemInnerSpacing.x);
3140 const ImGuiStyle& style = g.Style;
3835 const ImGuiStyle& style = g.Style;
4108 ImGuiStyle& style = g.Style;
4424 ItemSize(bb, (size.y >= default_size) ? g.Style.FramePadding.y : 0.0f);
4436 float rounding = ImMin(g.Style.FrameRounding, grid_step * 0.5f);
4456 if (g.Style.FrameBorderSize > 0.0f)
4515 ImVec2 sz(g.FontSize * 3 + g.Style.FramePadding.y * 2, g.FontSize * 3 + g.Style.FramePadding.y * 2);
4582 ImVec2 picker_size(g.FontSize * 8, ImMax(g.FontSize * 8 - (GetFrameHeight() + g.Style.ItemInnerSpacing.x), 1.0f)); // FIXME: Picker size copied from main picker function
4766 const ImGuiStyle& style = g.Style;
4964 return g.FontSize + (g.Style.FramePadding.x * 2.0f);
5004 ImVec2 button_center = ImVec2(ImMin(window->DC.LastItemRect.Max.x, window->ClipRect.Max.x) - g.Style.FramePadding.x - button_radius, window->DC.LastItemRect.GetCenter().y);
5028 const ImGuiStyle& style = g.Style;
5102 if (flags & ImGuiSelectableFlags_Disabled) PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]);
5256 const ImGuiStyle& style = g.Style;
5488 // For the main menu bar, which cannot be moved, we honor g.Style.DisplaySafeAreaPadding to ensure text can be visible on a TV set.
5492 g.NextWindowData.MenuBarOffsetMinVal = ImVec2(g.Style.DisplaySafeAreaPadding.x, ImMax(g.Style.DisplaySafeAreaPadding.y - g.Style.FramePadding.y, 0.0f));
5494 SetNextWindowSize(ImVec2(g.IO.DisplaySize.x, g.NextWindowData.MenuBarOffsetMinVal.y + g.FontBaseSize + g.Style.FramePadding.y));
5596 const ImGuiStyle& style = g.Style;
5632 if (!enabled) PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]);
5751 ImGuiStyle& style = g.Style;
5776 PushStyleColor(ImGuiCol_Text, g.Style.Colors[ImGuiCol_TextDisabled]);
5872 ImRect tab_bar_bb = ImRect(window->DC.CursorPos.x, window->DC.CursorPos.y, window->InnerClipRect.Max.x, window->DC.CursorPos.y + g.FontSize + g.Style.FramePadding.y * 2);
5909 tab_bar->FramePadding = g.Style.FramePadding;
6036 width_total_contents += (tab_n > 0 ? g.Style.ItemInnerSpacing.x : 0.0f) + tab->WidthContents;
6083 offset_x += tab->Width + g.Style.ItemInnerSpacing.x;
6085 tab_bar->OffsetMax = ImMax(offset_x - g.Style.ItemInnerSpacing.x, 0.0f);
6209 const ImVec2 arrow_button_size(g.FontSize - 2.0f, g.FontSize + g.Style.FramePadding.y * 2.0f);
6218 PushClipRect(tab_bar->BarRect.Min, tab_bar->BarRect.Max + ImVec2(g.Style.ItemInnerSpacing.x, 0.0f), true);
6223 ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text];
6263 // We use g.Style.FramePadding.y to match the square ArrowButton size
6264 const float tab_list_popup_button_width = g.FontSize + g.Style.FramePadding.y;
6266 window->DC.CursorPos = ImVec2(tab_bar->BarRect.Min.x - g.Style.FramePadding.y, tab_bar->BarRect.Min.y);
6269 ImVec4 arrow_col = g.Style.Colors[ImGuiCol_Text];
6350 const ImGuiStyle& style = g.Style;
6397 tab_bar->OffsetNextTab += tab->Width + g.Style.ItemInnerSpacing.x;
6547 ImVec2 size = ImVec2(label_size.x + g.Style.FramePadding.x, label_size.y + g.Style.FramePadding.y * 2.0f);
6549 size.x += g.Style.FramePadding.x + (g.Style.ItemInnerSpacing.x + g.FontSize); // We use Y intentionally to fit the close button circle.
6551 size.x += g.Style.FramePadding.x + 1.0f;
6562 const float rounding = ImMax(0.0f, ImMin(g.Style.TabRounding, width * 0.5f - 1.0f));
6570 if (g.Style.TabBorderSize > 0.0f)
6576 draw_list->PathStroke(GetColorU32(ImGuiCol_Border), false, g.Style.TabBorderSize);