![]() |
Blamite Game Engine - blam!
00406.12.10.23.1457.blamite
The core library for the Blamite Game Engine.
|
Class representing Blamite theme metrics. More...
#include <themes.h>
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... | |
Class representing Blamite theme metrics.
Theme metrics are used to control the sizes, padding, and margins of the UI - rather than the colors.
void BlamThemeMetrics::ApplyMetrics | ( | ) |
Applies the metrics to the engine UI.
bool BlamThemeMetrics::anti_aliased_fill = true |
Whether or not filled areas should be anti-aliased.
bool BlamThemeMetrics::anti_aliased_lines = true |
Whether or not lines should be anti-aliased.
float BlamThemeMetrics::child_border = 1 |
Child window border thickness.
float BlamThemeMetrics::child_rounding = 0 |
The amount of rounding to apply to child window frames.
ImGuiDir BlamThemeMetrics::color_button_pos = ImGuiDir_Right |
Color button alignment direction.
float BlamThemeMetrics::column_min_spacing = 6.0f |
Minimum column spacing.
float BlamThemeMetrics::curve_tesselation_tolerance = 1.25f |
Curve tesselation tolerance.
float BlamThemeMetrics::frame_border = 0 |
Frame border thickness.
float BlamThemeMetrics::frame_rounding = 0 |
The amount of rounding to apply to non-window frames.
float BlamThemeMetrics::global_alpha = 1.0f |
Global alpha.
float BlamThemeMetrics::grab_min_size = 10 |
Minimum grab handle size.
float BlamThemeMetrics::grab_rounding = 0 |
The amount of rounding to apply to grab handles.
std::string BlamThemeMetrics::id |
The ID of the theme metrics.
float BlamThemeMetrics::imgui_mouse_scale = 1.0f |
Custom cursor scale.
float BlamThemeMetrics::indent_spacing = 21 |
Default indentation spacing amount.
std::string BlamThemeMetrics::name |
The name of the theme metrics.
float BlamThemeMetrics::popup_border = 1 |
Popup modal border thickness.
float BlamThemeMetrics::popup_rounding = 0 |
The amount of rounding to apply to popup modals.
float BlamThemeMetrics::scrollbar_rounding = 9 |
The amount of rounding to apply to scrollbars.
float BlamThemeMetrics::scrollbar_size = 14 |
Scrollbar size.
float BlamThemeMetrics::tab_border = 0 |
Tab border thickness.
float BlamThemeMetrics::tab_rounding = 4 |
The amount of rounding to apply to tab corners.
Extra padding to use when using touch UI.
float BlamThemeMetrics::window_border = 1 |
Window border thickness.
ImGuiDir BlamThemeMetrics::window_menu_button_pos = ImGuiDir_Left |
Window button alignment direction.
float BlamThemeMetrics::window_rounding = 7 |
The amount of rounding to apply to window frames.