ImGuiStyle

imguicpp.ImGuiStyle (extern class)

Static Members

scaleAllSizes(self: cpp.Star, scaleFactor: cpp.Float32): Void

Scale 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.Float32

Current base font size before external global factors are applied. Use PushFont(NULL, size) to modify. Use ImGui::GetFontSize() to obtain scaled value.


fontScaleMain: cpp.Float32

Main global scale factor. May be set by application once, or exposed to end-user.


fontScaleDpi: cpp.Float32

Additional global scale factor from viewport/monitor contents scale. In docking branch: when io.ConfigDpiScaleFonts is enabled, this is automatically overwritten when changing monitor DPI.


Global alpha applies to everything in Dear ImGui.


disabledAlpha: cpp.Float32

Additional alpha multiplier applied by BeginDisabled(). Multiply over current value of Alpha.


windowPadding: ImVec2

Padding within a window.


windowRounding: cpp.Float32

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.


windowBorderSize: cpp.Float32

Thickness 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.Float32

Hit-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: ImVec2

Minimum window size. This is a global setting. If you want to constrain individual windows, use SetNextWindowSizeConstraints().


windowTitleAlign: ImVec2

Alignment for title bar text. Defaults to (0.0f,0.5f) for left-aligned,vertically centered.


windowMenuButtonPosition: Int

Side of the collapsing/docking button in the title bar (None/Left/Right). Defaults to ImGuiDir_Left.


childRounding: cpp.Float32

Radius of child window corners rounding. Set to 0.0f to have rectangular windows.


childBorderSize: cpp.Float32

Thickness 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.Float32

Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding)


popupBorderSize: cpp.Float32

Thickness 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: ImVec2

Padding within a framed rectangle (used by most widgets).


frameRounding: cpp.Float32

Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets).


frameBorderSize: cpp.Float32

Thickness of border around frames. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly).


itemSpacing: ImVec2

Horizontal and vertical spacing between widgets/lines.


itemInnerSpacing: ImVec2

Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label).


cellPadding: ImVec2

Padding within a table cell. Cellpadding.x is locked for entire table. CellPadding.y may be altered between different rows.


touchExtraPadding: ImVec2

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!


indentSpacing: cpp.Float32

Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).


columnsMinSpacing: cpp.Float32

Minimum horizontal spacing between two columns. Preferably > (FramePadding.x + 1).


scrollbarSize: cpp.Float32

Width of the vertical scrollbar, Height of the horizontal scrollbar.


scrollbarRounding: cpp.Float32

Radius of grab corners for scrollbar.


scrollbarPadding: cpp.Float32

Padding of scrollbar grab within its frame (same for both axes).


grabMinSize: cpp.Float32

Minimum width/height of a grab box for slider/scrollbar.


grabRounding: cpp.Float32

Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.


logSliderDeadzone: cpp.Float32

The size in pixels of the dead-zone around zero on logarithmic sliders that cross zero.


imageRounding: cpp.Float32

Rounding of Image() calls.


imageBorderSize: cpp.Float32

Thickness of border around Image() calls.


tabRounding: cpp.Float32

Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.


tabBorderSize: cpp.Float32

Thickness of border around tabs.


tabMinWidthBase: cpp.Float32

Minimum tab width, to make tabs larger than their contents. TabBar buttons are not affected.


tabMinWidthShrink: cpp.Float32

Minimum 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.Float32

Thickness of tab-bar separator, which takes on the tab active color to denote focus.


tabBarOverlineSize: cpp.Float32

Thickness of tab-bar overline, which highlights the selected tab-bar.


tableAngledHeadersAngle: cpp.Float32

Angle of angled headers (supported values range from -50.0f degrees to +50.0f degrees).


tableAngledHeadersTextAlign: ImVec2

Alignment of angled headers within the cell


treeLinesFlags: Int

Default way to draw lines connecting TreeNode hierarchy. ImGuiTreeNodeFlags_DrawLinesNone or ImGuiTreeNodeFlags_DrawLinesFull or ImGuiTreeNodeFlags_DrawLinesToNodes.


treeLinesSize: cpp.Float32

Thickness of outlines when using ImGuiTreeNodeFlags_DrawLines.


treeLinesRounding: cpp.Float32

Radius of lines connecting child nodes to the vertical line.


dragDropTargetRounding: cpp.Float32

Radius of the drag and drop target frame. When <0.0f: use FrameRounding.


dragDropTargetBorderSize: cpp.Float32

Thickness of the drag and drop target border.


dragDropTargetPadding: cpp.Float32

Size to expand the drag and drop target from actual target item size.


colorMarkerSize: cpp.Float32

Size of R/G/B/A color markers for ColorEdit4() and for Drags/Sliders when using ImGuiSliderFlags_ColorMarkers.


colorButtonPosition: Int

Side of the color button in the ColorEdit4 widget (left/right). Defaults to ImGuiDir_Right.


buttonTextAlign: ImVec2

Alignment of button text when button is larger than text. Defaults to (0.5f, 0.5f) (centered).


selectableTextAlign: ImVec2

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.


separatorSize: cpp.Float32

Thickness of border in Separator(). Must be >= 1.0f.


separatorTextBorderSize: cpp.Float32

Thickness of border in SeparatorText()


separatorTextAlign: ImVec2

Alignment of text within the separator. Defaults to (0.0f, 0.5f) (left aligned, center).


separatorTextPadding: ImVec2

Horizontal offset of text from each edge of the separator + spacing on other axis. Generally small values. .y is recommended to be == FramePadding.y.


displayWindowPadding: ImVec2

Apply to regular windows: amount which we enforce to keep visible when moving near edges of your screen.


displaySafeAreaPadding: ImVec2

Apply 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: Bool

Docking node has their own CloseButton() to close all docked windows.


dockingSeparatorSize: cpp.Float32

Thickness of resizing border between docked windows


mouseCursorScale: cpp.Float32

Scale software rendered mouse cursor (when io.MouseDrawCursor is enabled). We apply per-monitor DPI scaling over this scale. May be removed later.


antiAliasedLines: Bool

Enable anti-aliased lines/borders. Disable if you are really tight on CPU/GPU. Latched at the beginning of the frame (copied to ImDrawList).


antiAliasedLinesUseTex: Bool

Enable 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: Bool

Enable 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.Float32

Tessellation 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.Float32

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.


hoverStationaryDelay: cpp.Float32

Delay for IsItemHovered(ImGuiHoveredFlags_Stationary). Time required to consider mouse stationary.


hoverDelayShort: cpp.Float32

Delay for IsItemHovered(ImGuiHoveredFlags_DelayShort). Usually used along with HoverStationaryDelay.


hoverDelayNormal: cpp.Float32

Delay for IsItemHovered(ImGuiHoveredFlags_DelayNormal). "


hoverFlagsForTooltipMouse: Int

Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using mouse.


hoverFlagsForTooltipNav: Int

Default flags when using IsItemHovered(ImGuiHoveredFlags_ForTooltip) or BeginItemTooltip()/SetItemTooltip() while using keyboard/gamepad.

Metadata

Name Parameters
:structAccess -
:include "linc_imgui.h"