yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::anonymous_namespace{dashboard_panel.cc} Namespace Reference

Classes

struct  FlowLayout
 

Functions

FlowLayout ComputeFlowLayout (float avail_width, float min_width, float max_width, float min_height, float max_height, float aspect_ratio, float spacing, int max_columns, int item_count)
 
ImVec4 ScaleColor (const ImVec4 &color, float scale, float alpha)
 
ImVec4 ScaleColor (const ImVec4 &color, float scale)
 
ImVec4 WithAlpha (ImVec4 color, float alpha)
 
ImVec4 GetEditorAccentColor (EditorType type, const gui::Theme &theme)
 

Variables

constexpr float kDashboardCardBaseWidth = 180.0f
 
constexpr float kDashboardCardBaseHeight = 120.0f
 
constexpr float kDashboardCardWidthMaxFactor = 1.35f
 
constexpr float kDashboardCardHeightMaxFactor = 1.35f
 
constexpr float kDashboardCardMinWidthFactor = 0.9f
 
constexpr float kDashboardCardMinHeightFactor = 0.9f
 
constexpr int kDashboardMaxColumns = 5
 
constexpr float kDashboardRecentBaseWidth = 150.0f
 
constexpr float kDashboardRecentBaseHeight = 35.0f
 
constexpr float kDashboardRecentWidthMaxFactor = 1.3f
 
constexpr int kDashboardMaxRecentColumns = 4
 

Function Documentation

◆ ComputeFlowLayout()

FlowLayout yaze::editor::anonymous_namespace{dashboard_panel.cc}::ComputeFlowLayout ( float avail_width,
float min_width,
float max_width,
float min_height,
float max_height,
float aspect_ratio,
float spacing,
int max_columns,
int item_count )

◆ ScaleColor() [1/2]

ImVec4 yaze::editor::anonymous_namespace{dashboard_panel.cc}::ScaleColor ( const ImVec4 & color,
float scale,
float alpha )

Definition at line 92 of file dashboard_panel.cc.

◆ ScaleColor() [2/2]

ImVec4 yaze::editor::anonymous_namespace{dashboard_panel.cc}::ScaleColor ( const ImVec4 & color,
float scale )

Definition at line 96 of file dashboard_panel.cc.

◆ WithAlpha()

ImVec4 yaze::editor::anonymous_namespace{dashboard_panel.cc}::WithAlpha ( ImVec4 color,
float alpha )

Definition at line 100 of file dashboard_panel.cc.

◆ GetEditorAccentColor()

Variable Documentation

◆ kDashboardCardBaseWidth

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardBaseWidth = 180.0f
constexpr

Definition at line 28 of file dashboard_panel.cc.

◆ kDashboardCardBaseHeight

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardBaseHeight = 120.0f
constexpr

Definition at line 29 of file dashboard_panel.cc.

◆ kDashboardCardWidthMaxFactor

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardWidthMaxFactor = 1.35f
constexpr

Definition at line 30 of file dashboard_panel.cc.

◆ kDashboardCardHeightMaxFactor

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardHeightMaxFactor = 1.35f
constexpr

Definition at line 31 of file dashboard_panel.cc.

◆ kDashboardCardMinWidthFactor

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardMinWidthFactor = 0.9f
constexpr

Definition at line 32 of file dashboard_panel.cc.

◆ kDashboardCardMinHeightFactor

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardCardMinHeightFactor = 0.9f
constexpr

Definition at line 33 of file dashboard_panel.cc.

◆ kDashboardMaxColumns

constexpr int yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardMaxColumns = 5
constexpr

Definition at line 34 of file dashboard_panel.cc.

◆ kDashboardRecentBaseWidth

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardRecentBaseWidth = 150.0f
constexpr

Definition at line 35 of file dashboard_panel.cc.

◆ kDashboardRecentBaseHeight

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardRecentBaseHeight = 35.0f
constexpr

Definition at line 36 of file dashboard_panel.cc.

◆ kDashboardRecentWidthMaxFactor

constexpr float yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardRecentWidthMaxFactor = 1.3f
constexpr

Definition at line 37 of file dashboard_panel.cc.

◆ kDashboardMaxRecentColumns

constexpr int yaze::editor::anonymous_namespace{dashboard_panel.cc}::kDashboardMaxRecentColumns = 4
constexpr

Definition at line 38 of file dashboard_panel.cc.