Player12
An open source football management simulator
Loading...
Searching...
No Matches
gui_constants.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <array>
12
16namespace GUIConstants
17{
18
19// Button sizes
21constexpr float BUTTON_WIDTH = 120.0f;
23constexpr float BUTTON_HEIGHT = 40.0f;
24
25// Menu Button sizes
27constexpr float MENU_BUTTON_WIDTH = 200.0f;
29constexpr float MENU_BUTTON_HEIGHT = 50.0f;
30
31// Window layout
33constexpr float CENTER_PIVOT = 0.5f;
34
39{
40 int width;
41 int height;
42};
43
45constexpr std::array<int, 8> FPS_OPTIONS = {30, 60, 75, 90, 120, 144, 165, 240};
46
48constexpr std::array<Resolution, 6> RESOLUTIONS = {
49 Resolution{1280, 720}, Resolution{1366, 768}, Resolution{1600, 900},
50 Resolution{1920, 1080}, Resolution{2560, 1440}, Resolution{3840, 2160}};
51
52} // namespace GUIConstants
Namespace containing all GUI-related constants.
Definition gui_constants.h:17
constexpr float BUTTON_HEIGHT
Default button height.
Definition gui_constants.h:23
constexpr float MENU_BUTTON_WIDTH
Default menu button width.
Definition gui_constants.h:27
constexpr std::array< Resolution, 6 > RESOLUTIONS
Supported resolution options.
Definition gui_constants.h:48
constexpr std::array< int, 8 > FPS_OPTIONS
Supported FPS options.
Definition gui_constants.h:45
constexpr float MENU_BUTTON_HEIGHT
Default menu button height.
Definition gui_constants.h:29
constexpr float BUTTON_WIDTH
Default button width.
Definition gui_constants.h:21
constexpr float CENTER_PIVOT
Center pivot for layout alignment.
Definition gui_constants.h:33
Represents a screen resolution.
Definition gui_constants.h:39
int width
Definition gui_constants.h:40
int height
Definition gui_constants.h:41