Player12
An open source football management simulator
Loading...
Searching...
No Matches
GUIConstants Namespace Reference

Namespace containing all GUI-related constants. More...

Classes

struct  Resolution
 Represents a screen resolution. More...
 

Variables

constexpr float BUTTON_WIDTH = 120.0f
 Default button width.
 
constexpr float BUTTON_HEIGHT = 40.0f
 Default button height.
 
constexpr float MENU_BUTTON_WIDTH = 200.0f
 Default menu button width.
 
constexpr float MENU_BUTTON_HEIGHT = 50.0f
 Default menu button height.
 
constexpr float CENTER_PIVOT = 0.5f
 Center pivot for layout alignment.
 
constexpr std::array< int, 8 > FPS_OPTIONS = {30, 60, 75, 90, 120, 144, 165, 240}
 Supported FPS options.
 
constexpr std::array< Resolution, 6 > RESOLUTIONS
 Supported resolution options.
 

Detailed Description

Namespace containing all GUI-related constants.

Variable Documentation

◆ BUTTON_HEIGHT

constexpr float GUIConstants::BUTTON_HEIGHT = 40.0f
constexpr

Default button height.

◆ BUTTON_WIDTH

constexpr float GUIConstants::BUTTON_WIDTH = 120.0f
constexpr

Default button width.

◆ CENTER_PIVOT

constexpr float GUIConstants::CENTER_PIVOT = 0.5f
constexpr

Center pivot for layout alignment.

◆ FPS_OPTIONS

constexpr std::array<int, 8> GUIConstants::FPS_OPTIONS = {30, 60, 75, 90, 120, 144, 165, 240}
constexpr

Supported FPS options.

◆ MENU_BUTTON_HEIGHT

constexpr float GUIConstants::MENU_BUTTON_HEIGHT = 50.0f
constexpr

Default menu button height.

◆ MENU_BUTTON_WIDTH

constexpr float GUIConstants::MENU_BUTTON_WIDTH = 200.0f
constexpr

Default menu button width.

◆ RESOLUTIONS

constexpr std::array<Resolution, 6> GUIConstants::RESOLUTIONS
constexpr
Initial value:
= {
Resolution{1280, 720}, Resolution{1366, 768}, Resolution{1600, 900},
Resolution{1920, 1080}, Resolution{2560, 1440}, Resolution{3840, 2160}}
Represents a screen resolution.
Definition gui_constants.h:39

Supported resolution options.