Elaztek Developer Hub
Blamite Game Engine - blam!  00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
BlamThemeMetrics Class Reference

Class representing Blamite theme metrics. More...

#include <themes.h>

+ Collaboration diagram for BlamThemeMetrics:

Public Member Functions

void ApplyMetrics ()
 Applies the metrics to the engine UI. More...
 

Public Attributes

std::string name
 The name of the theme metrics. More...
 
std::string id
 The ID of the theme metrics. More...
 
ImVec2 window_padding = ImVec2(8, 8)
 Window padding. More...
 
ImVec2 frame_padding = ImVec2(4, 3)
 Frame padding. More...
 
ImVec2 item_spacing = ImVec2(8, 4)
 Outer item spacing. More...
 
ImVec2 item_inner_spacing = ImVec2(4, 4)
 Inner item spacing. More...
 
ImVec2 touch_extra_padding = ImVec2(0, 0)
 Extra padding to use when using touch UI. More...
 
float indent_spacing = 21
 Default indentation spacing amount. More...
 
float scrollbar_size = 14
 Scrollbar size. More...
 
float grab_min_size = 10
 Minimum grab handle size. More...
 
float window_border = 1
 Window border thickness. More...
 
float child_border = 1
 Child window border thickness. More...
 
float popup_border = 1
 Popup modal border thickness. More...
 
float frame_border = 0
 Frame border thickness. More...
 
float tab_border = 0
 Tab border thickness. More...
 
float window_rounding = 7
 The amount of rounding to apply to window frames. More...
 
float child_rounding = 0
 The amount of rounding to apply to child window frames. More...
 
float frame_rounding = 0
 The amount of rounding to apply to non-window frames. More...
 
float popup_rounding = 0
 The amount of rounding to apply to popup modals. More...
 
float grab_rounding = 0
 The amount of rounding to apply to grab handles. More...
 
float tab_rounding = 4
 The amount of rounding to apply to tab corners. More...
 
float scrollbar_rounding = 9
 The amount of rounding to apply to scrollbars. More...
 
ImGuiDir window_menu_button_pos = ImGuiDir_Left
 Window button alignment direction. More...
 
ImGuiDir color_button_pos = ImGuiDir_Right
 Color button alignment direction. More...
 
ImVec2 window_title_align = ImVec2(0, 0.5f)
 Window title alignment. More...
 
ImVec2 button_text_align = ImVec2(0.5f, 0.5f)
 Button text alignment. More...
 
ImVec2 selectable_text_align = ImVec2(0, 0)
 Selectable text alignment. More...
 
ImVec2 safe_area_padding = ImVec2(3, 3)
 Safe area padding. More...
 
ImVec2 display_window_padding = ImVec2(19, 19)
 Display window padding. More...
 
bool anti_aliased_lines = true
 Whether or not lines should be anti-aliased. More...
 
bool anti_aliased_fill = true
 Whether or not filled areas should be anti-aliased. More...
 
float curve_tesselation_tolerance = 1.25f
 Curve tesselation tolerance. More...
 
float global_alpha = 1.0f
 Global alpha. More...
 
ImVec2 window_min_size = ImVec2(32, 32)
 Minimum window size. More...
 
float imgui_mouse_scale = 1.0f
 Custom cursor scale. More...
 
float column_min_spacing = 6.0f
 Minimum column spacing. More...
 

Detailed Description

Class representing Blamite theme metrics.

Theme metrics are used to control the sizes, padding, and margins of the UI - rather than the colors.

Member Function Documentation

◆ ApplyMetrics()

void BlamThemeMetrics::ApplyMetrics ( )

Applies the metrics to the engine UI.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ anti_aliased_fill

bool BlamThemeMetrics::anti_aliased_fill = true

Whether or not filled areas should be anti-aliased.

◆ anti_aliased_lines

bool BlamThemeMetrics::anti_aliased_lines = true

Whether or not lines should be anti-aliased.

◆ button_text_align

ImVec2 BlamThemeMetrics::button_text_align = ImVec2(0.5f, 0.5f)

Button text alignment.

◆ child_border

float BlamThemeMetrics::child_border = 1

Child window border thickness.

◆ child_rounding

float BlamThemeMetrics::child_rounding = 0

The amount of rounding to apply to child window frames.

◆ color_button_pos

ImGuiDir BlamThemeMetrics::color_button_pos = ImGuiDir_Right

Color button alignment direction.

◆ column_min_spacing

float BlamThemeMetrics::column_min_spacing = 6.0f

Minimum column spacing.

◆ curve_tesselation_tolerance

float BlamThemeMetrics::curve_tesselation_tolerance = 1.25f

Curve tesselation tolerance.

◆ display_window_padding

ImVec2 BlamThemeMetrics::display_window_padding = ImVec2(19, 19)

Display window padding.

◆ frame_border

float BlamThemeMetrics::frame_border = 0

Frame border thickness.

◆ frame_padding

ImVec2 BlamThemeMetrics::frame_padding = ImVec2(4, 3)

Frame padding.

◆ frame_rounding

float BlamThemeMetrics::frame_rounding = 0

The amount of rounding to apply to non-window frames.

◆ global_alpha

float BlamThemeMetrics::global_alpha = 1.0f

Global alpha.

◆ grab_min_size

float BlamThemeMetrics::grab_min_size = 10

Minimum grab handle size.

◆ grab_rounding

float BlamThemeMetrics::grab_rounding = 0

The amount of rounding to apply to grab handles.

◆ id

std::string BlamThemeMetrics::id

The ID of the theme metrics.

◆ imgui_mouse_scale

float BlamThemeMetrics::imgui_mouse_scale = 1.0f

Custom cursor scale.

◆ indent_spacing

float BlamThemeMetrics::indent_spacing = 21

Default indentation spacing amount.

◆ item_inner_spacing

ImVec2 BlamThemeMetrics::item_inner_spacing = ImVec2(4, 4)

Inner item spacing.

◆ item_spacing

ImVec2 BlamThemeMetrics::item_spacing = ImVec2(8, 4)

Outer item spacing.

◆ name

std::string BlamThemeMetrics::name

The name of the theme metrics.

◆ popup_border

float BlamThemeMetrics::popup_border = 1

Popup modal border thickness.

◆ popup_rounding

float BlamThemeMetrics::popup_rounding = 0

The amount of rounding to apply to popup modals.

◆ safe_area_padding

ImVec2 BlamThemeMetrics::safe_area_padding = ImVec2(3, 3)

Safe area padding.

◆ scrollbar_rounding

float BlamThemeMetrics::scrollbar_rounding = 9

The amount of rounding to apply to scrollbars.

◆ scrollbar_size

float BlamThemeMetrics::scrollbar_size = 14

Scrollbar size.

◆ selectable_text_align

ImVec2 BlamThemeMetrics::selectable_text_align = ImVec2(0, 0)

Selectable text alignment.

◆ tab_border

float BlamThemeMetrics::tab_border = 0

Tab border thickness.

◆ tab_rounding

float BlamThemeMetrics::tab_rounding = 4

The amount of rounding to apply to tab corners.

◆ touch_extra_padding

ImVec2 BlamThemeMetrics::touch_extra_padding = ImVec2(0, 0)

Extra padding to use when using touch UI.

◆ window_border

float BlamThemeMetrics::window_border = 1

Window border thickness.

◆ window_menu_button_pos

ImGuiDir BlamThemeMetrics::window_menu_button_pos = ImGuiDir_Left

Window button alignment direction.

◆ window_min_size

ImVec2 BlamThemeMetrics::window_min_size = ImVec2(32, 32)

Minimum window size.

◆ window_padding

ImVec2 BlamThemeMetrics::window_padding = ImVec2(8, 8)

Window padding.

◆ window_rounding

float BlamThemeMetrics::window_rounding = 7

The amount of rounding to apply to window frames.

◆ window_title_align

ImVec2 BlamThemeMetrics::window_title_align = ImVec2(0, 0.5f)

Window title alignment.


The documentation for this class was generated from the following files: