imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
Loading...
Searching...
No Matches
imgui_kit::StyleParameters Struct Reference

Visual style of the user interface (theme and window styling). More...

#include <user_interface_parameters.h>

Public Member Functions

 StyleParameters ()
 Constructs style parameters with the default theme.
 
 StyleParameters (Theme theme)
 Constructs style parameters with the given theme.
 
 StyleParameters (Theme theme, ImVec4 bgColor)
 Constructs style parameters with the given theme and background colour.
 
void apply () const
 Applies the style to the current ImGui context.
 

Public Attributes

Theme theme
 Colour theme applied to the interface (see imgui_kit::Theme).
 
ImVec4 windowBgColor
 Background colour of the main window.
 
ImVec2 windowPadding
 Padding within windows, in pixels.
 
float windowRounding
 Corner rounding radius of windows, in pixels.
 
float transparency
 Overall window transparency (alpha), 0.0-1.0.
 
ImVec4 textColor
 Default text colour.
 

Detailed Description

Visual style of the user interface (theme and window styling).

Warning
apply() currently only applies theme. The remaining fields (windowBgColor, windowPadding, windowRounding, transparency, textColor) are stored but not yet forwarded to ImGui::GetStyle().

Constructor & Destructor Documentation

◆ StyleParameters() [1/3]

imgui_kit::StyleParameters::StyleParameters ( )

Constructs style parameters with the default theme.

◆ StyleParameters() [2/3]

imgui_kit::StyleParameters::StyleParameters ( Theme  theme)

Constructs style parameters with the given theme.

Parameters
themeColour theme to apply.

◆ StyleParameters() [3/3]

imgui_kit::StyleParameters::StyleParameters ( Theme  theme,
ImVec4  bgColor 
)

Constructs style parameters with the given theme and background colour.

Parameters
themeColour theme to apply.
bgColorBackground colour of the main window.

Member Function Documentation

◆ apply()

void imgui_kit::StyleParameters::apply ( ) const

Applies the style to the current ImGui context.

Warning
Only theme is applied; the other fields are currently ignored.

Member Data Documentation

◆ textColor

ImVec4 imgui_kit::StyleParameters::textColor

Default text colour.

Warning
Not yet applied by apply().

◆ theme

Theme imgui_kit::StyleParameters::theme

Colour theme applied to the interface (see imgui_kit::Theme).

◆ transparency

float imgui_kit::StyleParameters::transparency

Overall window transparency (alpha), 0.0-1.0.

Warning
Not yet applied by apply().

◆ windowBgColor

ImVec4 imgui_kit::StyleParameters::windowBgColor

Background colour of the main window.

Warning
Not yet applied by apply().

◆ windowPadding

ImVec2 imgui_kit::StyleParameters::windowPadding

Padding within windows, in pixels.

Warning
Not yet applied by apply().

◆ windowRounding

float imgui_kit::StyleParameters::windowRounding

Corner rounding radius of windows, in pixels.

Warning
Not yet applied by apply().

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