yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::UIConfig Struct Reference

Centralized UI dimension constants. More...

#include <ui_config.h>

Static Public Attributes

static constexpr float kActivityBarWidth = 48.0f
 
static constexpr float kStatusBarHeight = 28.0f
 
static constexpr float kPanelWidthNarrow = 300.0f
 
static constexpr float kPanelWidthMedium = 360.0f
 
static constexpr float kPanelWidthWide = 400.0f
 
static constexpr float kPanelWidthAgentChat = kPanelWidthWide
 
static constexpr float kPanelWidthProposals = kPanelWidthWide
 
static constexpr float kPanelWidthSettings = kPanelWidthMedium
 
static constexpr float kPanelWidthHelp = 340.0f
 
static constexpr float kPanelWidthNotifications = kPanelWidthMedium
 
static constexpr float kPanelWidthProperties = 340.0f
 
static constexpr float kPanelWidthProject = kPanelWidthMedium
 
static constexpr float kPanelHeaderHeight = 44.0f
 
static constexpr float kMaxPanelWidthRatio = 0.35f
 
static constexpr float kPanelMinWidthAbsolute = 180.0f
 
static constexpr float kPanelMinWidthAgentChat = 360.0f
 
static constexpr float kPanelMinWidthProposals = 360.0f
 
static constexpr float kPanelMinWidthSettings = 340.0f
 
static constexpr float kPanelMinWidthHelp = 340.0f
 
static constexpr float kPanelMinWidthNotifications = 300.0f
 
static constexpr float kPanelMinWidthProperties = 340.0f
 
static constexpr float kPanelMinWidthProject = 320.0f
 
static constexpr float kContentMinHeightChat = 120.0f
 
static constexpr float kContentMinHeightList
 
static constexpr float kContentMinHeightCanvas
 
static constexpr float kContentMinWidthSidebar = 160.0f
 
static constexpr float kIconButtonSmall = 24.0f
 
static constexpr float kIconButtonMedium = 32.0f
 
static constexpr float kIconButtonLarge = 48.0f
 
static constexpr float kIconButtonToolbar = 32.0f
 
static constexpr float kActivityBarIconWidth = 48.0f
 
static constexpr float kActivityBarIconHeight = 40.0f
 
static constexpr float kPanelPaddingSmall = 4.0f
 
static constexpr float kPanelPaddingMedium = 8.0f
 
static constexpr float kPanelPaddingLarge = 12.0f
 
static constexpr float kSplitterWidth = 6.0f
 
static constexpr float kHeaderButtonSpacing = 6.0f
 
static constexpr float kHeaderButtonGap = 2.0f
 
static constexpr float kAnimationSpeed = 8.0f
 
static constexpr float kAnimationSnapThreshold = 0.01f
 

Detailed Description

Centralized UI dimension constants.

Replaces scattered magic numbers across the UI layer. All values are in logical pixels and may be scaled by density presets at runtime.

Definition at line 16 of file ui_config.h.

Member Data Documentation

◆ kActivityBarWidth

constexpr float yaze::gui::UIConfig::kActivityBarWidth = 48.0f
staticconstexpr

Definition at line 18 of file ui_config.h.

Referenced by yaze::editor::ActivityBar::DrawActivityBarStrip().

◆ kStatusBarHeight

constexpr float yaze::gui::UIConfig::kStatusBarHeight = 28.0f
staticconstexpr

Definition at line 21 of file ui_config.h.

Referenced by yaze::editor::DungeonStatusBar::Draw().

◆ kPanelWidthNarrow

constexpr float yaze::gui::UIConfig::kPanelWidthNarrow = 300.0f
staticconstexpr

Definition at line 24 of file ui_config.h.

◆ kPanelWidthMedium

constexpr float yaze::gui::UIConfig::kPanelWidthMedium = 360.0f
staticconstexpr

Definition at line 25 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthWide

constexpr float yaze::gui::UIConfig::kPanelWidthWide = 400.0f
staticconstexpr

Definition at line 26 of file ui_config.h.

◆ kPanelWidthAgentChat

constexpr float yaze::gui::UIConfig::kPanelWidthAgentChat = kPanelWidthWide
staticconstexpr

Definition at line 29 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthProposals

constexpr float yaze::gui::UIConfig::kPanelWidthProposals = kPanelWidthWide
staticconstexpr

Definition at line 30 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthSettings

constexpr float yaze::gui::UIConfig::kPanelWidthSettings = kPanelWidthMedium
staticconstexpr

Definition at line 31 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthHelp

constexpr float yaze::gui::UIConfig::kPanelWidthHelp = 340.0f
staticconstexpr

Definition at line 32 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthNotifications

constexpr float yaze::gui::UIConfig::kPanelWidthNotifications = kPanelWidthMedium
staticconstexpr

Definition at line 33 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthProperties

constexpr float yaze::gui::UIConfig::kPanelWidthProperties = 340.0f
staticconstexpr

Definition at line 34 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelWidthProject

constexpr float yaze::gui::UIConfig::kPanelWidthProject = kPanelWidthMedium
staticconstexpr

Definition at line 35 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetDefaultPanelWidth().

◆ kPanelHeaderHeight

constexpr float yaze::gui::UIConfig::kPanelHeaderHeight = 44.0f
staticconstexpr

◆ kMaxPanelWidthRatio

constexpr float yaze::gui::UIConfig::kMaxPanelWidthRatio = 0.35f
staticconstexpr

Definition at line 39 of file ui_config.h.

◆ kPanelMinWidthAbsolute

constexpr float yaze::gui::UIConfig::kPanelMinWidthAbsolute = 180.0f
staticconstexpr

Definition at line 43 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::SetPanelSizeLimits().

◆ kPanelMinWidthAgentChat

constexpr float yaze::gui::UIConfig::kPanelMinWidthAgentChat = 360.0f
staticconstexpr

Definition at line 44 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthProposals

constexpr float yaze::gui::UIConfig::kPanelMinWidthProposals = 360.0f
staticconstexpr

Definition at line 45 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthSettings

constexpr float yaze::gui::UIConfig::kPanelMinWidthSettings = 340.0f
staticconstexpr

Definition at line 46 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthHelp

constexpr float yaze::gui::UIConfig::kPanelMinWidthHelp = 340.0f
staticconstexpr

Definition at line 47 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthNotifications

constexpr float yaze::gui::UIConfig::kPanelMinWidthNotifications = 300.0f
staticconstexpr

Definition at line 48 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthProperties

constexpr float yaze::gui::UIConfig::kPanelMinWidthProperties = 340.0f
staticconstexpr

Definition at line 49 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kPanelMinWidthProject

constexpr float yaze::gui::UIConfig::kPanelMinWidthProject = 320.0f
staticconstexpr

Definition at line 50 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::GetPanelSizeLimits().

◆ kContentMinHeightChat

constexpr float yaze::gui::UIConfig::kContentMinHeightChat = 120.0f
staticconstexpr

Definition at line 53 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::DrawAgentChatPanel().

◆ kContentMinHeightList

◆ kContentMinHeightCanvas

constexpr float yaze::gui::UIConfig::kContentMinHeightCanvas
staticconstexpr

◆ kContentMinWidthSidebar

constexpr float yaze::gui::UIConfig::kContentMinWidthSidebar = 160.0f
staticconstexpr

◆ kIconButtonSmall

constexpr float yaze::gui::UIConfig::kIconButtonSmall = 24.0f
staticconstexpr

Definition at line 61 of file ui_config.h.

Referenced by yaze::gui::IconSize::Small().

◆ kIconButtonMedium

constexpr float yaze::gui::UIConfig::kIconButtonMedium = 32.0f
staticconstexpr

Definition at line 62 of file ui_config.h.

Referenced by yaze::gui::IconSize::Medium().

◆ kIconButtonLarge

constexpr float yaze::gui::UIConfig::kIconButtonLarge = 48.0f
staticconstexpr

Definition at line 63 of file ui_config.h.

Referenced by yaze::gui::IconSize::Large().

◆ kIconButtonToolbar

constexpr float yaze::gui::UIConfig::kIconButtonToolbar = 32.0f
staticconstexpr

Definition at line 64 of file ui_config.h.

Referenced by yaze::gui::PanelHeader(), and yaze::gui::IconSize::Toolbar().

◆ kActivityBarIconWidth

constexpr float yaze::gui::UIConfig::kActivityBarIconWidth = 48.0f
staticconstexpr

Definition at line 67 of file ui_config.h.

Referenced by yaze::gui::IconSize::ActivityBar().

◆ kActivityBarIconHeight

constexpr float yaze::gui::UIConfig::kActivityBarIconHeight = 40.0f
staticconstexpr

Definition at line 68 of file ui_config.h.

Referenced by yaze::gui::IconSize::ActivityBar().

◆ kPanelPaddingSmall

constexpr float yaze::gui::UIConfig::kPanelPaddingSmall = 4.0f
staticconstexpr

Definition at line 71 of file ui_config.h.

◆ kPanelPaddingMedium

constexpr float yaze::gui::UIConfig::kPanelPaddingMedium = 8.0f
staticconstexpr

Definition at line 72 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::Draw().

◆ kPanelPaddingLarge

constexpr float yaze::gui::UIConfig::kPanelPaddingLarge = 12.0f
staticconstexpr

◆ kSplitterWidth

constexpr float yaze::gui::UIConfig::kSplitterWidth = 6.0f
staticconstexpr

Definition at line 76 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::Draw().

◆ kHeaderButtonSpacing

constexpr float yaze::gui::UIConfig::kHeaderButtonSpacing = 6.0f
staticconstexpr

Definition at line 77 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::DrawPanelHeader().

◆ kHeaderButtonGap

constexpr float yaze::gui::UIConfig::kHeaderButtonGap = 2.0f
staticconstexpr

Definition at line 78 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::DrawPanelHeader().

◆ kAnimationSpeed

constexpr float yaze::gui::UIConfig::kAnimationSpeed = 8.0f
staticconstexpr

Definition at line 81 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::Draw().

◆ kAnimationSnapThreshold

constexpr float yaze::gui::UIConfig::kAnimationSnapThreshold = 0.01f
staticconstexpr

Definition at line 82 of file ui_config.h.

Referenced by yaze::editor::RightPanelManager::Draw().


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