Encapsulates ImGui style properties for visual design. More...
#include <theme_properties.h>
Public Member Functions | |
| void | Apply () const |
| void | LoadFromCurrent () |
| void | Reset () |
| std::string | GenerateStyleCode () const |
Public Attributes | |
| ImVec2 | window_padding = ImVec2(10, 10) |
| ImVec2 | frame_padding = ImVec2(10, 2) |
| ImVec2 | cell_padding = ImVec2(4, 5) |
| ImVec2 | item_spacing = ImVec2(10, 5) |
| ImVec2 | item_inner_spacing = ImVec2(5, 5) |
| float | window_rounding = 0.0f |
| float | child_rounding = 0.0f |
| float | frame_rounding = 5.0f |
| float | popup_rounding = 0.0f |
| float | scrollbar_rounding = 5.0f |
| float | grab_rounding = 0.0f |
| float | tab_rounding = 0.0f |
| float | window_border_size = 0.0f |
| float | child_border_size = 1.0f |
| float | popup_border_size = 1.0f |
| float | frame_border_size = 0.0f |
| float | tab_border_size = 0.0f |
| float | indent_spacing = 20.0f |
| float | scrollbar_size = 14.0f |
| float | grab_min_size = 15.0f |
Encapsulates ImGui style properties for visual design.
This allows layout designer to expose theming properties directly, eliminating the need for complex Display Settings menus.
Definition at line 18 of file theme_properties.h.
| void yaze::editor::layout_designer::ThemeProperties::Apply | ( | ) | const |
Definition at line 10 of file theme_properties.cc.
References cell_padding, child_border_size, child_rounding, frame_border_size, frame_padding, frame_rounding, grab_min_size, grab_rounding, indent_spacing, item_inner_spacing, item_spacing, popup_border_size, popup_rounding, scrollbar_rounding, scrollbar_size, tab_border_size, tab_rounding, window_border_size, window_padding, and window_rounding.
Referenced by yaze::editor::layout_designer::ThemePropertiesPanel::Draw().
| void yaze::editor::layout_designer::ThemeProperties::LoadFromCurrent | ( | ) |
Definition at line 42 of file theme_properties.cc.
References cell_padding, child_border_size, child_rounding, frame_border_size, frame_padding, frame_rounding, grab_min_size, grab_rounding, indent_spacing, item_inner_spacing, item_spacing, popup_border_size, popup_rounding, scrollbar_rounding, scrollbar_size, tab_border_size, tab_rounding, window_border_size, window_padding, and window_rounding.
Referenced by yaze::editor::layout_designer::ThemePropertiesPanel::Draw().
| void yaze::editor::layout_designer::ThemeProperties::Reset | ( | ) |
Definition at line 70 of file theme_properties.cc.
Referenced by yaze::editor::layout_designer::ThemePropertiesPanel::Draw().
| std::string yaze::editor::layout_designer::ThemeProperties::GenerateStyleCode | ( | ) | const |
Definition at line 74 of file theme_properties.cc.
References cell_padding, child_border_size, child_rounding, frame_border_size, frame_padding, frame_rounding, grab_min_size, grab_rounding, indent_spacing, item_inner_spacing, item_spacing, popup_border_size, popup_rounding, scrollbar_rounding, scrollbar_size, tab_border_size, tab_rounding, window_border_size, window_padding, and window_rounding.
| ImVec2 yaze::editor::layout_designer::ThemeProperties::window_padding = ImVec2(10, 10) |
Definition at line 20 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawPaddingSection(), GenerateStyleCode(), and LoadFromCurrent().
| ImVec2 yaze::editor::layout_designer::ThemeProperties::frame_padding = ImVec2(10, 2) |
Definition at line 21 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawPaddingSection(), GenerateStyleCode(), and LoadFromCurrent().
| ImVec2 yaze::editor::layout_designer::ThemeProperties::cell_padding = ImVec2(4, 5) |
Definition at line 22 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawPaddingSection(), GenerateStyleCode(), and LoadFromCurrent().
| ImVec2 yaze::editor::layout_designer::ThemeProperties::item_spacing = ImVec2(10, 5) |
Definition at line 23 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawPaddingSection(), GenerateStyleCode(), and LoadFromCurrent().
| ImVec2 yaze::editor::layout_designer::ThemeProperties::item_inner_spacing = ImVec2(5, 5) |
Definition at line 24 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawPaddingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::window_rounding = 0.0f |
Definition at line 27 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::child_rounding = 0.0f |
Definition at line 28 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::frame_rounding = 5.0f |
Definition at line 29 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::popup_rounding = 0.0f |
Definition at line 30 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::scrollbar_rounding = 5.0f |
Definition at line 31 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::grab_rounding = 0.0f |
Definition at line 32 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::tab_rounding = 0.0f |
Definition at line 33 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawRoundingSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::window_border_size = 0.0f |
Definition at line 36 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawBordersSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::child_border_size = 1.0f |
Definition at line 37 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawBordersSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::popup_border_size = 1.0f |
Definition at line 38 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawBordersSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::frame_border_size = 0.0f |
Definition at line 39 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawBordersSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::tab_border_size = 0.0f |
Definition at line 40 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawBordersSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::indent_spacing = 20.0f |
Definition at line 43 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawSizesSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::scrollbar_size = 14.0f |
Definition at line 44 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawSizesSection(), GenerateStyleCode(), and LoadFromCurrent().
| float yaze::editor::layout_designer::ThemeProperties::grab_min_size = 15.0f |
Definition at line 45 of file theme_properties.h.
Referenced by Apply(), yaze::editor::layout_designer::ThemePropertiesPanel::DrawSizesSection(), GenerateStyleCode(), and LoadFromCurrent().