Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
ImGuiStyle Struct Reference

#include <src/imgui/imgui.h>

+ Collaboration diagram for ImGuiStyle:

Public Member Functions

IMGUI_API ImGuiStyle ()
 
IMGUI_API void ScaleAllSizes (float scale_factor)
 

Public Attributes

float Alpha
 
ImVec2 WindowPadding
 
float WindowRounding
 
float WindowBorderSize
 
ImVec2 WindowMinSize
 
ImVec2 WindowTitleAlign
 
ImGuiDir WindowMenuButtonPosition
 
float ChildRounding
 
float ChildBorderSize
 
float PopupRounding
 
float PopupBorderSize
 
ImVec2 FramePadding
 
float FrameRounding
 
float FrameBorderSize
 
ImVec2 ItemSpacing
 
ImVec2 ItemInnerSpacing
 
ImVec2 CellPadding
 
ImVec2 TouchExtraPadding
 
float IndentSpacing
 
float ColumnsMinSpacing
 
float ScrollbarSize
 
float ScrollbarRounding
 
float GrabMinSize
 
float GrabRounding
 
float LogSliderDeadzone
 
float TabRounding
 
float TabBorderSize
 
float TabMinWidthForCloseButton
 
ImGuiDir ColorButtonPosition
 
ImVec2 ButtonTextAlign
 
ImVec2 SelectableTextAlign
 
ImVec2 DisplayWindowPadding
 
ImVec2 DisplaySafeAreaPadding
 
float MouseCursorScale
 
bool AntiAliasedLines
 
bool AntiAliasedLinesUseTex
 
bool AntiAliasedFill
 
float CurveTessellationTol
 
float CircleTessellationMaxError
 
ImVec4 Colors [ImGuiCol_COUNT]
 

Detailed Description

Constructor & Destructor Documentation

◆ ImGuiStyle()

ImGuiStyle::ImGuiStyle ( )
982{
983 Alpha = 1.0f; // Global alpha applies to everything in ImGui
984 WindowPadding = ImVec2(8,8); // Padding within a window
985 WindowRounding = 0.0f; // Radius of window corners rounding. Set to 0.0f to have rectangular windows. Large values tend to lead to variety of artifacts and are not recommended.
986 WindowBorderSize = 1.0f; // Thickness of border around windows. Generally set to 0.0f or 1.0f. Other values not well tested.
987 WindowMinSize = ImVec2(32,32); // Minimum window size
988 WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text
989 WindowMenuButtonPosition= ImGuiDir_Left; // Position of the collapsing/docking button in the title bar (left/right). Defaults to ImGuiDir_Left.
990 ChildRounding = 0.0f; // Radius of child window corners rounding. Set to 0.0f to have rectangular child windows
991 ChildBorderSize = 1.0f; // Thickness of border around child windows. Generally set to 0.0f or 1.0f. Other values not well tested.
992 PopupRounding = 0.0f; // Radius of popup window corners rounding. Set to 0.0f to have rectangular child windows
993 PopupBorderSize = 1.0f; // Thickness of border around popup or tooltip windows. Generally set to 0.0f or 1.0f. Other values not well tested.
994 FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets)
995 FrameRounding = 0.0f; // Radius of frame corners rounding. Set to 0.0f to have rectangular frames (used by most widgets).
996 FrameBorderSize = 0.0f; // Thickness of border around frames. Generally set to 0.0f or 1.0f. Other values not well tested.
997 ItemSpacing = ImVec2(8,4); // Horizontal and vertical spacing between widgets/lines
998 ItemInnerSpacing = ImVec2(4,4); // Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label)
999 CellPadding = ImVec2(4,2); // Padding within a table cell
1000 TouchExtraPadding = ImVec2(0,0); // Expand reactive bounding box for touch-based system where touch position is not accurate enough. Unfortunately we don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much!
1001 IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
1002 ColumnsMinSpacing = 6.0f; // Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1).
1003 ScrollbarSize = 14.0f; // Width of the vertical scrollbar, Height of the horizontal scrollbar
1004 ScrollbarRounding = 9.0f; // Radius of grab corners rounding for scrollbar
1005 GrabMinSize = 10.0f; // Minimum width/height of a grab box for slider/scrollbar
1006 GrabRounding = 0.0f; // Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.
1007 LogSliderDeadzone = 4.0f; // The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero.
1008 TabRounding = 4.0f; // Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.
1009 TabBorderSize = 0.0f; // Thickness of border around tabs.
1010 TabMinWidthForCloseButton = 0.0f; // Minimum width for close button to appears on an unselected tab when hovered. Set to 0.0f to always show when hovering, set to FLT_MAX to never show close button unless selected.
1011 ColorButtonPosition = ImGuiDir_Right; // Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right.
1012 ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text.
1013 SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text. Defaults to (0.0f, 0.0f) (top-left aligned). It's generally important to keep this left-aligned if you want to lay multiple items on a same line.
1014 DisplayWindowPadding = ImVec2(19,19); // Window position are clamped to be visible within the display area or monitors by at least this amount. Only applies to regular windows.
1015 DisplaySafeAreaPadding = ImVec2(3,3); // If you cannot see the edge of your screen (e.g. on a TV) increase the safe area padding. Covers popups/tooltips as well regular windows.
1016 MouseCursorScale = 1.0f; // Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). May be removed later.
1017 AntiAliasedLines = true; // Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU.
1018 AntiAliasedLinesUseTex = true; // Enable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering.
1019 AntiAliasedFill = true; // Enable anti-aliased filled shapes (rounded rectangles, circles, etc.).
1020 CurveTessellationTol = 1.25f; // Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality.
1021 CircleTessellationMaxError = 0.30f; // Maximum error (in pixels) allowed when using AddCircle()/AddCircleFilled() or drawing rounded corner rectangles with no explicit segment count specified. Decrease for higher quality but more geometry.
1022
1023 // Default theme
1025}
@ ImGuiDir_Right
Definition imgui.h:1297
@ ImGuiDir_Left
Definition imgui.h:1296
IMGUI_API void StyleColorsDark(ImGuiStyle *dst=NULL)
Definition imgui_draw.cpp:192
float ScrollbarRounding
Definition imgui.h:1743
bool AntiAliasedLines
Definition imgui.h:1756
float GrabMinSize
Definition imgui.h:1744
ImVec2 WindowMinSize
Definition imgui.h:1726
float FrameRounding
Definition imgui.h:1734
ImVec2 ButtonTextAlign
Definition imgui.h:1751
ImVec2 ItemInnerSpacing
Definition imgui.h:1737
bool AntiAliasedFill
Definition imgui.h:1758
float FrameBorderSize
Definition imgui.h:1735
float TabRounding
Definition imgui.h:1747
float TabBorderSize
Definition imgui.h:1748
float IndentSpacing
Definition imgui.h:1740
ImVec2 WindowPadding
Definition imgui.h:1723
ImVec2 WindowTitleAlign
Definition imgui.h:1727
float CurveTessellationTol
Definition imgui.h:1759
float GrabRounding
Definition imgui.h:1745
float PopupRounding
Definition imgui.h:1731
float WindowBorderSize
Definition imgui.h:1725
float ChildBorderSize
Definition imgui.h:1730
float MouseCursorScale
Definition imgui.h:1755
ImGuiDir ColorButtonPosition
Definition imgui.h:1750
ImVec2 ItemSpacing
Definition imgui.h:1736
float LogSliderDeadzone
Definition imgui.h:1746
ImVec2 DisplaySafeAreaPadding
Definition imgui.h:1754
float ColumnsMinSpacing
Definition imgui.h:1741
float ScrollbarSize
Definition imgui.h:1742
float Alpha
Definition imgui.h:1722
ImVec2 CellPadding
Definition imgui.h:1738
ImVec2 DisplayWindowPadding
Definition imgui.h:1753
ImVec2 TouchExtraPadding
Definition imgui.h:1739
ImGuiDir WindowMenuButtonPosition
Definition imgui.h:1728
float ChildRounding
Definition imgui.h:1729
float PopupBorderSize
Definition imgui.h:1732
float CircleTessellationMaxError
Definition imgui.h:1760
bool AntiAliasedLinesUseTex
Definition imgui.h:1757
float WindowRounding
Definition imgui.h:1724
float TabMinWidthForCloseButton
Definition imgui.h:1749
ImVec2 SelectableTextAlign
Definition imgui.h:1752
ImVec2 FramePadding
Definition imgui.h:1733
Definition imgui.h:245

References Alpha, AntiAliasedFill, AntiAliasedLines, AntiAliasedLinesUseTex, ButtonTextAlign, CellPadding, ChildBorderSize, ChildRounding, CircleTessellationMaxError, ColorButtonPosition, ColumnsMinSpacing, CurveTessellationTol, DisplaySafeAreaPadding, DisplayWindowPadding, FrameBorderSize, FramePadding, FrameRounding, GrabMinSize, GrabRounding, ImGuiDir_Left, ImGuiDir_Right, IndentSpacing, ItemInnerSpacing, ItemSpacing, LogSliderDeadzone, MouseCursorScale, PopupBorderSize, PopupRounding, ScrollbarRounding, ScrollbarSize, SelectableTextAlign, ImGui::StyleColorsDark(), TabBorderSize, TabMinWidthForCloseButton, TabRounding, TouchExtraPadding, WindowBorderSize, WindowMenuButtonPosition, WindowMinSize, WindowPadding, WindowRounding, and WindowTitleAlign.

+ Here is the call graph for this function:

Member Function Documentation

◆ ScaleAllSizes()

void ImGuiStyle::ScaleAllSizes ( float  scale_factor)
1030{
1031 WindowPadding = ImFloor(WindowPadding * scale_factor);
1032 WindowRounding = ImFloor(WindowRounding * scale_factor);
1033 WindowMinSize = ImFloor(WindowMinSize * scale_factor);
1034 ChildRounding = ImFloor(ChildRounding * scale_factor);
1035 PopupRounding = ImFloor(PopupRounding * scale_factor);
1036 FramePadding = ImFloor(FramePadding * scale_factor);
1037 FrameRounding = ImFloor(FrameRounding * scale_factor);
1038 ItemSpacing = ImFloor(ItemSpacing * scale_factor);
1039 ItemInnerSpacing = ImFloor(ItemInnerSpacing * scale_factor);
1040 CellPadding = ImFloor(CellPadding * scale_factor);
1042 IndentSpacing = ImFloor(IndentSpacing * scale_factor);
1044 ScrollbarSize = ImFloor(ScrollbarSize * scale_factor);
1046 GrabMinSize = ImFloor(GrabMinSize * scale_factor);
1047 GrabRounding = ImFloor(GrabRounding * scale_factor);
1049 TabRounding = ImFloor(TabRounding * scale_factor);
1053 MouseCursorScale = ImFloor(MouseCursorScale * scale_factor);
1054}
static float ImFloor(float f)
Definition imgui_internal.h:427

References CellPadding, ChildRounding, ColumnsMinSpacing, DisplaySafeAreaPadding, DisplayWindowPadding, FramePadding, FrameRounding, GrabMinSize, GrabRounding, ImFloor(), IndentSpacing, ItemInnerSpacing, ItemSpacing, LogSliderDeadzone, MouseCursorScale, PopupRounding, ScrollbarRounding, ScrollbarSize, TabMinWidthForCloseButton, TabRounding, TouchExtraPadding, WindowMinSize, WindowPadding, and WindowRounding.

Referenced by Slic3r::GUI::ImGuiWrapper::set_scaling().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ Alpha

◆ AntiAliasedFill

bool ImGuiStyle::AntiAliasedFill

Referenced by ImGuiStyle(), and ImGui::NewFrame().

◆ AntiAliasedLines

bool ImGuiStyle::AntiAliasedLines

Referenced by ImGuiStyle(), and ImGui::NewFrame().

◆ AntiAliasedLinesUseTex

bool ImGuiStyle::AntiAliasedLinesUseTex

Referenced by ImGuiStyle(), and ImGui::NewFrame().

◆ ButtonTextAlign

ImVec2 ImGuiStyle::ButtonTextAlign

Referenced by ImGuiStyle().

◆ CellPadding

◆ ChildBorderSize

float ImGuiStyle::ChildBorderSize

Referenced by ImGuiStyle(), and ImGui::BeginChildEx().

◆ ChildRounding

float ImGuiStyle::ChildRounding

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ CircleTessellationMaxError

float ImGuiStyle::CircleTessellationMaxError

◆ ColorButtonPosition

ImGuiDir ImGuiStyle::ColorButtonPosition

Referenced by ImGuiStyle().

◆ Colors

◆ ColumnsMinSpacing

float ImGuiStyle::ColumnsMinSpacing

◆ CurveTessellationTol

float ImGuiStyle::CurveTessellationTol

◆ DisplaySafeAreaPadding

ImVec2 ImGuiStyle::DisplaySafeAreaPadding

◆ DisplayWindowPadding

ImVec2 ImGuiStyle::DisplayWindowPadding

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ FrameBorderSize

◆ FramePadding

◆ FrameRounding

◆ GrabMinSize

float ImGuiStyle::GrabMinSize

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ GrabRounding

float ImGuiStyle::GrabRounding

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ IndentSpacing

float ImGuiStyle::IndentSpacing

◆ ItemInnerSpacing

◆ ItemSpacing

◆ LogSliderDeadzone

float ImGuiStyle::LogSliderDeadzone

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ MouseCursorScale

◆ PopupBorderSize

float ImGuiStyle::PopupBorderSize

Referenced by ImGuiStyle().

◆ PopupRounding

float ImGuiStyle::PopupRounding

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ ScrollbarRounding

float ImGuiStyle::ScrollbarRounding

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ ScrollbarSize

float ImGuiStyle::ScrollbarSize

Referenced by ImGuiStyle(), and ScaleAllSizes().

◆ SelectableTextAlign

ImVec2 ImGuiStyle::SelectableTextAlign

Referenced by ImGuiStyle().

◆ TabBorderSize

float ImGuiStyle::TabBorderSize

◆ TabMinWidthForCloseButton

float ImGuiStyle::TabMinWidthForCloseButton

◆ TabRounding

float ImGuiStyle::TabRounding

◆ TouchExtraPadding

◆ WindowBorderSize

float ImGuiStyle::WindowBorderSize

Referenced by ImGuiStyle().

◆ WindowMenuButtonPosition

ImGuiDir ImGuiStyle::WindowMenuButtonPosition

◆ WindowMinSize

◆ WindowPadding

◆ WindowRounding

float ImGuiStyle::WindowRounding

◆ WindowTitleAlign

ImVec2 ImGuiStyle::WindowTitleAlign

Referenced by ImGuiStyle().


The documentation for this struct was generated from the following files: