ImGuiStyle
Static Members
scaleAllSizes(self: cpp.Star, scaleFactor: cpp.Float32): VoidScale all spacing/padding/thickness values. Do not scale fonts. See comments in definition. Consider not calling this if your initial scale factor if <1.0.
| Name | Type |
|---|---|
self |
cpp.Star |
scaleFactor |
cpp.Float32 |
Instance Members
fontSizeBase: cpp.Float32Current base font size before external global factors are applied. Use PushFont(NULL, size) to modify. Use ImGui::GetFontSize() to obtain scaled value.
fontScaleMain: cpp.Float32Main global scale factor. May be set by application once, or exposed to end-user.
fontScaleDpi: cpp.Float32Additional global scale factor from viewport/monitor contents scale. In docking branch: when io.ConfigDpiScaleFonts is enabled, this is automatically overwritten when changing monitor DPI.
alpha: cpp.Float32Global alpha applies to everything in Dear ImGui.
disabledAlpha: cpp.Float32Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha.
windowPadding: ImVec2Padding within a window.
windowRounding: cpp.Float32Radius 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.
windowBorderSize: cpp.Float32Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
windowBorderHoverPadding: cpp.Float32Hit-testing extent outside/inside resizing border. Also extend determination of hovered window. Generally meaningfully larger than WindowBorderSize to make it easy to reach borders.
windowMinSize: ImVec2Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints().
windowTitleAlign: ImVec2Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered.
windowMenuButtonPosition: IntSide of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left.
childRounding: cpp.Float32Radius of child window corners rounding. Set to 0.0f to have rectangular windows.
childBorderSize: cpp.Float32Thickness of border around child windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
popupRounding: cpp.Float32Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding)
popupBorderSize: cpp.Float32Thickness of border around popup/tooltip windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
framePadding: ImVec2Padding within a framed rectangle (used by most widgets).
frameRounding: cpp.Float32Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets).
frameBorderSize: cpp.Float32Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).
itemSpacing: ImVec2Horizontal and vertical spacing between widgets/lines.
itemInnerSpacing: ImVec2Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label).
cellPadding: ImVec2Padding within a table cell. Cellpadding.x is locked for entire table. CellPadding.y may be altered between different rows.
touchExtraPadding: ImVec2Expand 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!
indentSpacing: cpp.Float32Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
columnsMinSpacing: cpp.Float32Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1).
scrollbarSize: cpp.Float32Width of the vertical scrollbar, Height of the horizontal scrollbar.
scrollbarRounding: cpp.Float32Radius of grab corners for scrollbar.
scrollbarPadding: cpp.Float32Padding of scrollbar grab within its frame (same for both axes).
grabMinSize: cpp.Float32Minimum width/height of a grab box for slider/scrollbar.
grabRounding: cpp.Float32Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.
logSliderDeadzone: cpp.Float32The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero.
imageRounding: cpp.Float32Rounding of Image() calls.
imageBorderSize: cpp.Float32Thickness of border around Image() calls.
tabRounding: cpp.Float32Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.
tabBorderSize: cpp.Float32Thickness of border around tabs.
tabMinWidthBase: cpp.Float32Minimum tab width, to make tabs larger than their contents. TabBar buttons are not affected.
tabMinWidthShrink: cpp.Float32Minimum tab width after shrinking, when using ImGuiTabBarFlags_FittingPolicyMixed policy.
tabCloseButtonMinWidthSelected: cpp.Float32-1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width. FLT_MAX: never shrink, will behave like ImGuiTabBarFlags_FittingPolicyScroll.
tabCloseButtonMinWidthUnselected: cpp.Float32-1: always visible. 0.0f: visible when hovered. >0.0f: visible when hovered if minimum width. FLT_MAX: never show close button when unselected.
tabBarBorderSize: cpp.Float32Thickness of tab-bar separator, which takes on the tab active color to denote focus.
tabBarOverlineSize: cpp.Float32Thickness of tab-bar overline, which highlights the selected tab-bar.
tableAngledHeadersAngle: cpp.Float32Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees).
tableAngledHeadersTextAlign: ImVec2Alignment of angled headers within the cell
treeLinesFlags: IntDefault way to draw lines connecting TreeNode hierarchy. ImGuiTreeNodeFlags_DrawLinesNone or ImGuiTreeNodeFlags_DrawLinesFull or ImGuiTreeNodeFlags_DrawLinesToNodes.
treeLinesSize: cpp.Float32Thickness of outlines when using ImGuiTreeNodeFlags_DrawLines.
treeLinesRounding: cpp.Float32Radius of lines connecting child nodes to the vertical line.
dragDropTargetRounding: cpp.Float32Radius of the drag and drop target frame. When <0.0f: use FrameRounding.
dragDropTargetBorderSize: cpp.Float32Thickness of the drag and drop target border.
dragDropTargetPadding: cpp.Float32Size to expand the drag and drop target from actual target item size.
colorMarkerSize: cpp.Float32Size of R/G/B/A color markers for ColorEdit4() and for Drags/Sliders when using ImGuiSliderFlags_ColorMarkers.
colorButtonPosition: IntSide of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right.
buttonTextAlign: ImVec2Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered).
selectableTextAlign: ImVec2Alignment 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.
separatorSize: cpp.Float32Thickness of border in Separator(). Must be >= 1.0f.
separatorTextBorderSize: cpp.Float32Thickness of border in SeparatorText()
separatorTextAlign: ImVec2Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center).
separatorTextPadding: ImVec2Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y.
displayWindowPadding: ImVec2Apply to regular windows: amount which we enforce to keep visible when moving near edges of your screen.
displaySafeAreaPadding: ImVec2Apply to every windows, menus, popups, tooltips: amount where we avoid displaying contents. Adjust if you cannot see the edges of your screen (e.g. on a TV where scaling has not been configured).
dockingNodeHasCloseButton: BoolDocking node has their own CloseButton() to close all docked windows.
dockingSeparatorSize: cpp.Float32Thickness of resizing border between docked windows
mouseCursorScale: cpp.Float32Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later.
antiAliasedLines: BoolEnable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).
antiAliasedLinesUseTex: BoolEnable anti-aliased lines/borders using textures where possible. Require backend to render with bilinear filtering (NOT point/nearest filtering). Latched at the beginning of the frame (copied to ImDrawList).
antiAliasedFill: BoolEnable anti-aliased edges around filled shapes (rounded rectangles, circles, etc.). Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).
curveTessellationTol: cpp.Float32Tessellation tolerance when using PathBezierCurveTo() without a specific number of segments. Decrease for highly tessellated curves (higher quality, more polygons), increase to reduce quality.
circleTessellationMaxError: cpp.Float32Maximum 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.
hoverStationaryDelay: cpp.Float32Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary.
hoverDelayShort: cpp.Float32Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay.
hoverDelayNormal: cpp.Float32Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). "
hoverFlagsForTooltipMouse: IntDefault flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse.
Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad.
Metadata
| Name | Parameters |
|---|---|
:structAccess |
- |
:include |
"linc_imgui.h" |