NAP
Public Member Functions | Public Attributes | List of all members
Style Struct Reference

#include <imguiservice.h>

Public Member Functions

 Style ()=default
 

Public Attributes

bool mAntiAliasedLines = true
 Property: 'AntiAliasedLines' Enable anti-aliasing on lines/borders. Disable if you are really tight on CPU/GPU. More...
 
bool mAntiAliasedFill = true
 Property: 'AntiAliasedFill' Enable anti-aliasing on filled shapes (rounded rectangles, circles, etc.) More...
 
glm::vec2 mWindowPadding = { 10.0, 10.0f }
 Property: 'WindowPadding' Padding within a window. More...
 
float mWindowRounding = 0.0f
 Property: 'WindowRounding' Radius of window corners rounding. Set to 0.0f to have rectangular windows. More...
 
glm::vec2 mFramePadding = { 5.0f, 5.0f }
 Property: 'FramePadding' Padding within a framed rectangle (used by most widgets). More...
 
float mFrameRounding = 0.0f
 Property: 'FrameRounding' Radius of frame corners rounding. Set to 0.0f to have rectangular frame (used by most widgets). More...
 
glm::vec2 mItemSpacing = { 12.0f, 6.0f }
 Property: 'ItemSpacing' Horizontal and vertical spacing between widgets/lines. More...
 
glm::vec2 mItemInnerSpacing = { 8.0f, 6.0f }
 Property: 'ItemInnerSpacing' Horizontal and vertical spacing between within elements of a composed widget (e.g. a slider and its label). More...
 
float mIndentSpacing = 25.0f
 Property: 'IndentSpacing' Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2). More...
 
float mScrollbarSize = 13.0f
 Property: 'ScrollbarSize' Width of the vertical scrollbar, Height of the horizontal scrollbar. More...
 
float mScrollbarRounding = 0.0f
 Property: 'ScrollbarRounding' Radius of grab corners for scrollbar. More...
 
float mGrabMinSize = 5.0f
 Property: 'GrabMinSize' Minimum width/height of a grab box for slider/scrollbar. More...
 
float mGrabRounding = 0.0f
 Property: 'GrabRounding' Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs. More...
 
float mWindowBorderSize = 0.0f
 Property: 'WindowBorderSize' Thickness of border around windows. Generally set to 0.0f or 1.0f. (Other values are not well tested and more CPU/GPU costly). More...
 
float mPopupRounding = 0.0f
 Property: 'PopupRounding' Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding) More...
 
float mChildRounding = 0.0f
 Property: 'ChildRounding' Radius of child window corners rounding. Set to 0.0f to have rectangular windows. More...
 
glm::vec2 mWindowTitleAlign = { 0.5f, 0.5f }
 Property: 'WindowTitleAlign' Alignment for title bar text. Defaults to (0.5f,0.5f) for vertically & horizontally centered. More...
 
float mPopupBorderSize = 0.0f
 Property: 'PopupBorderSize' 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). More...
 
float mTabRounding = 0.0f
 Property: 'TabRounding' Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs. More...
 
glm::vec2 mTouchExtraPadding = { 0.0f, 0.0f }
 Property: 'TouchExtraPadding' Expand reactive bounding box for touch-based system where touch position is not accurate enough. We don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much! More...
 

Description

Configurable GUI style options

Constructor & Destructor Documentation

◆ Style()

Style ( )
default

Member Data Documentation

◆ mAntiAliasedFill

bool mAntiAliasedFill = true

Property: 'AntiAliasedFill' Enable anti-aliasing on filled shapes (rounded rectangles, circles, etc.)

◆ mAntiAliasedLines

bool mAntiAliasedLines = true

Property: 'AntiAliasedLines' Enable anti-aliasing on lines/borders. Disable if you are really tight on CPU/GPU.

◆ mChildRounding

float mChildRounding = 0.0f

Property: 'ChildRounding' Radius of child window corners rounding. Set to 0.0f to have rectangular windows.

◆ mFramePadding

glm::vec2 mFramePadding = { 5.0f, 5.0f }

Property: 'FramePadding' Padding within a framed rectangle (used by most widgets).

◆ mFrameRounding

float mFrameRounding = 0.0f

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

◆ mGrabMinSize

float mGrabMinSize = 5.0f

Property: 'GrabMinSize' Minimum width/height of a grab box for slider/scrollbar.

◆ mGrabRounding

float mGrabRounding = 0.0f

Property: 'GrabRounding' Radius of grabs corners rounding. Set to 0.0f to have rectangular slider grabs.

◆ mIndentSpacing

float mIndentSpacing = 25.0f

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

◆ mItemInnerSpacing

glm::vec2 mItemInnerSpacing = { 8.0f, 6.0f }

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

◆ mItemSpacing

glm::vec2 mItemSpacing = { 12.0f, 6.0f }

Property: 'ItemSpacing' Horizontal and vertical spacing between widgets/lines.

◆ mPopupBorderSize

float mPopupBorderSize = 0.0f

Property: 'PopupBorderSize' 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).

◆ mPopupRounding

float mPopupRounding = 0.0f

Property: 'PopupRounding' Radius of popup window corners rounding. (Note that tooltip windows use WindowRounding)

◆ mScrollbarRounding

float mScrollbarRounding = 0.0f

Property: 'ScrollbarRounding' Radius of grab corners for scrollbar.

◆ mScrollbarSize

float mScrollbarSize = 13.0f

Property: 'ScrollbarSize' Width of the vertical scrollbar, Height of the horizontal scrollbar.

◆ mTabRounding

float mTabRounding = 0.0f

Property: 'TabRounding' Radius of upper corners of a tab. Set to 0.0f to have rectangular tabs.

◆ mTouchExtraPadding

glm::vec2 mTouchExtraPadding = { 0.0f, 0.0f }

Property: 'TouchExtraPadding' Expand reactive bounding box for touch-based system where touch position is not accurate enough. We don't sort widgets so priority on overlap will always be given to the first widget. So don't grow this too much!

◆ mWindowBorderSize

float mWindowBorderSize = 0.0f

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

◆ mWindowPadding

glm::vec2 mWindowPadding = { 10.0, 10.0f }

Property: 'WindowPadding' Padding within a window.

◆ mWindowRounding

float mWindowRounding = 0.0f

Property: 'WindowRounding' Radius of window corners rounding. Set to 0.0f to have rectangular windows.

◆ mWindowTitleAlign

glm::vec2 mWindowTitleAlign = { 0.5f, 0.5f }

Property: 'WindowTitleAlign' Alignment for title bar text. Defaults to (0.5f,0.5f) for vertically & horizontally centered.