API reference
Preparing search index…

ImGui.ImGuiStyleFields

Native style scalars; dimensions use pixels unless another unit is stated.

interface ImGuiStyleFields {
    Alpha: number;
    AntiAliasedFill: boolean;
    AntiAliasedLines: boolean;
    AntiAliasedLinesUseTex: boolean;
    ButtonTextAlignX: number;
    ButtonTextAlignY: number;
    CellPaddingX: number;
    CellPaddingY: number;
    ChildBorderSize: number;
    ChildRounding: number;
    CircleTessellationMaxError: number;
    ColorButtonPosition: number;
    ColumnsMinSpacing: number;
    CurveTessellationTol: number;
    DisabledAlpha: number;
    DisplaySafeAreaPaddingX: number;
    DisplaySafeAreaPaddingY: number;
    DisplayWindowPaddingX: number;
    DisplayWindowPaddingY: number;
    FrameBorderSize: number;
    FramePaddingX: number;
    FramePaddingY: number;
    FrameRounding: number;
    GrabMinSize: number;
    GrabRounding: number;
    HoverDelayNormal: number;
    HoverDelayShort: number;
    HoverFlagsForTooltipMouse: number;
    HoverFlagsForTooltipNav: number;
    HoverStationaryDelay: number;
    ImageBorderSize: number;
    IndentSpacing: number;
    ItemInnerSpacingX: number;
    ItemInnerSpacingY: number;
    ItemSpacingX: number;
    ItemSpacingY: number;
    LogSliderDeadzone: number;
    MouseCursorScale: number;
    PopupBorderSize: number;
    PopupRounding: number;
    ScrollbarRounding: number;
    ScrollbarSize: number;
    SelectableTextAlignX: number;
    SelectableTextAlignY: number;
    SeparatorTextAlignX: number;
    SeparatorTextAlignY: number;
    SeparatorTextBorderSize: number;
    SeparatorTextPaddingX: number;
    SeparatorTextPaddingY: number;
    TabBarBorderSize: number;
    TabBarOverlineSize: number;
    TabBorderSize: number;
    TabCloseButtonMinWidthSelected: number;
    TabCloseButtonMinWidthUnselected: number;
    TableAngledHeadersAngle: number;
    TableAngledHeadersTextAlignX: number;
    TableAngledHeadersTextAlignY: number;
    TabRounding: number;
    TouchExtraPaddingX: number;
    TouchExtraPaddingY: number;
    WindowBorderHoverPadding: number;
    WindowBorderSize: number;
    WindowMenuButtonPosition: number;
    WindowMinSizeX: number;
    WindowMinSizeY: number;
    WindowPaddingX: number;
    WindowPaddingY: number;
    WindowRounding: number;
    WindowTitleAlignX: number;
    WindowTitleAlignY: number;
}
Source & inheritance
Member directory70

Properties

Properties

Alpha: number

Global opacity multiplier for all ImGui drawing.

Source & inheritance
AntiAliasedFill: boolean

Anti-alias filled-shape edges; copied into draw lists at frame start.

Source & inheritance
AntiAliasedLines: boolean

Anti-alias lines and borders; copied into draw lists at frame start.

Source & inheritance
AntiAliasedLinesUseTex: boolean

Prefer texture-based line anti-aliasing; requires bilinear texture filtering.

Source & inheritance
ButtonTextAlignX: number

Button text horizontal alignment from zero (left) to one (right).

Source & inheritance
ButtonTextAlignY: number

Button text vertical alignment from zero (top) to one (bottom).

Source & inheritance
CellPaddingX: number

Horizontal table-cell padding, fixed for the duration of a table.

Source & inheritance
CellPaddingY: number

Vertical table-cell padding, which may vary between rows.

Source & inheritance
ChildBorderSize: number

Border thickness around child windows.

Source & inheritance
ChildRounding: number

Child-window corner radius; zero makes square corners.

Source & inheritance
CircleTessellationMaxError: number

Maximum automatic circle/rounded-corner error in pixels; lower adds segments.

Source & inheritance
ColorButtonPosition: number

ColorEdit color-button side: ImGuiDir.Left or Right.

Source & inheritance
ColumnsMinSpacing: number

Minimum horizontal gap between legacy columns.

Source & inheritance
CurveTessellationTol: number

Automatic Bezier tessellation tolerance; lower values add finer geometry.

Source & inheritance
DisabledAlpha: number

Additional opacity multiplier applied over Alpha by BeginDisabled().

Source & inheritance
DisplaySafeAreaPaddingX: number

Horizontal safe-area inset for windows, menus, popups and tooltips.

Source & inheritance
DisplaySafeAreaPaddingY: number

Vertical safe-area inset for windows, menus, popups and tooltips.

Source & inheritance
DisplayWindowPaddingX: number

Minimum horizontal window portion kept visible near display edges.

Source & inheritance
DisplayWindowPaddingY: number

Minimum vertical window portion kept visible near display edges.

Source & inheritance
FrameBorderSize: number

Border thickness around framed widgets, normally zero or one.

Source & inheritance
FramePaddingX: number

Horizontal padding inside framed widgets such as buttons.

Source & inheritance
FramePaddingY: number

Vertical padding inside framed widgets such as buttons.

Source & inheritance
FrameRounding: number

Framed-widget corner radius; zero makes square corners.

Source & inheritance
GrabMinSize: number

Minimum size of slider and scrollbar grabs along the moving axis.

Source & inheritance
GrabRounding: number

Slider grab corner radius; zero makes square grabs.

Source & inheritance
HoverDelayNormal: number

Hover delay in seconds used with ImGuiHoveredFlags.DelayNormal.

Source & inheritance
HoverDelayShort: number

Hover delay in seconds used with ImGuiHoveredFlags.DelayShort.

Source & inheritance
HoverFlagsForTooltipMouse: number

Default ImGuiHoveredFlags for ForTooltip and item tooltips under mouse input.

Source & inheritance
HoverFlagsForTooltipNav: number

Default ImGuiHoveredFlags for tooltips under keyboard/gamepad navigation.

Source & inheritance
HoverStationaryDelay: number

Stillness time in seconds required by ImGuiHoveredFlags.Stationary.

Source & inheritance
ImageBorderSize: number

Border thickness used by Image().

Source & inheritance
IndentSpacing: number

Default horizontal indentation, for example when entering tree nodes.

Source & inheritance
ItemInnerSpacingX: number

Horizontal spacing within compound widgets, such as a slider and label.

Source & inheritance
ItemInnerSpacingY: number

Vertical spacing between parts of a compound widget.

Source & inheritance
ItemSpacingX: number

Horizontal spacing between separate widgets.

Source & inheritance
ItemSpacingY: number

Vertical spacing between widgets or lines.

Source & inheritance
LogSliderDeadzone: number

Pixel width of the zero dead zone for logarithmic sliders crossing zero.

Source & inheritance
MouseCursorScale: number

Software mouse cursor scale when IO.MouseDrawCursor is enabled.

Source & inheritance
PopupBorderSize: number

Border thickness around popups and tooltips.

Source & inheritance
PopupRounding: number

Popup corner radius; tooltips use WindowRounding instead.

Source & inheritance
ScrollbarRounding: number

Corner radius of scrollbar grabs.

Source & inheritance
ScrollbarSize: number

Vertical scrollbar width and horizontal scrollbar height.

Source & inheritance
SelectableTextAlignX: number

Selectable text horizontal alignment; zero keeps same-line items left-aligned.

Source & inheritance
SelectableTextAlignY: number

Selectable text vertical alignment from zero (top) to one (bottom).

Source & inheritance
SeparatorTextAlignX: number

Separator label horizontal alignment from zero (left) to one (right).

Source & inheritance
SeparatorTextAlignY: number

Separator label vertical alignment; one half centers it on the line.

Source & inheritance
SeparatorTextBorderSize: number

Separator line thickness in SeparatorText().

Source & inheritance
SeparatorTextPaddingX: number

Horizontal inset of separator text from the separator's outer edges.

Source & inheritance
SeparatorTextPaddingY: number

Vertical separator-text padding, usually equal to FramePaddingY.

Source & inheritance
TabBarBorderSize: number

Tab-bar separator thickness, drawn with the active tab color.

Source & inheritance
TabBarOverlineSize: number

Thickness of the overline highlighting the selected tab.

Source & inheritance
TabBorderSize: number

Border thickness around individual tabs.

Source & inheritance
TabCloseButtonMinWidthSelected: number

Selected-tab close width: -1 always, 0 on hover, positive on hover if wide.

Source & inheritance
TabCloseButtonMinWidthUnselected: number

Unselected close width: -1 always, 0 hover, positive hover/min width. Set 3.4028234663852886e38 to hide the close button.

Source & inheritance
TableAngledHeadersAngle: number

Angled-header angle in radians; supported range is about +/-0.873 (50 degrees).

Source & inheritance
TableAngledHeadersTextAlignX: number

Angled-header text horizontal alignment within the cell, from zero to one.

Source & inheritance
TableAngledHeadersTextAlignY: number

Angled-header text vertical alignment within the cell, from zero to one.

Source & inheritance
TabRounding: number

Radius of the upper corners of tabs.

Source & inheritance
TouchExtraPaddingX: number

Horizontal touch hit-box expansion; overlapping hits favor the first widget.

Source & inheritance
TouchExtraPaddingY: number

Vertical touch hit-box expansion; overlapping hits favor the first widget.

Source & inheritance
WindowBorderHoverPadding: number

Resize hit-test padding on both sides of the window border.

Source & inheritance
WindowBorderSize: number

Window border thickness, normally zero or one.

Source & inheritance
WindowMenuButtonPosition: number

Title-bar collapse/menu button side as ImGuiDir: None, Left or Right.

Source & inheritance
WindowMinSizeX: number

Global minimum window width; use constraints for individual windows.

Source & inheritance
WindowMinSizeY: number

Global minimum window height; use constraints for individual windows.

Source & inheritance
WindowPaddingX: number

Horizontal padding inside windows.

Source & inheritance
WindowPaddingY: number

Vertical padding inside windows.

Source & inheritance
WindowRounding: number

Window corner radius; zero makes square corners.

Source & inheritance
WindowTitleAlignX: number

Title text horizontal alignment: zero left, one right.

Source & inheritance
WindowTitleAlignY: number

Title text vertical alignment: zero top, one bottom; default one half.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0