HoverRace  2.0
Styles.h
Go to the documentation of this file.
1 
2 // Styles.h
3 //
4 // Copyright (c) 2015 Michael Imamura.
5 //
6 // Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
7 // you may not use this file except in compliance with the License.
8 //
9 // A copy of the license should have been attached to the package from which
10 // you have taken this file. If you can not find the license you can not use
11 // this file.
12 //
13 //
14 // The author makes no representations about the suitability of
15 // this software for any purpose. It is provided "as is" "AS IS",
16 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
17 // implied.
18 //
19 // See the License for the specific language governing permissions
20 // and limitations under the License.
21 
22 #pragma once
23 
24 #include "../Vec.h"
25 #include "UiFont.h"
26 #include "Color.h"
27 
28 #if defined(_WIN32) && defined(HR_ENGINE_SHARED)
29 # ifdef MR_ENGINE
30 # define MR_DllDeclare __declspec( dllexport )
31 # else
32 # define MR_DllDeclare __declspec( dllimport )
33 # endif
34 #else
35 # define MR_DllDeclare
36 #endif
37 
38 namespace HoverRace {
39 namespace Display {
40 
45 class Styles {
46 
47 public:
48  Styles();
49 
50 public:
51  void Reload();
52 
53 public:
54  // Standard text.
61 
62  // Announcements.
69 
70  // HUD text.
75 
76  // Console text.
81 
82  // UI widgets (buttons, etc.).
86 
87  // Dialog background shading color.
89 
90  // Attributes for grid containers.
93 
94  // Colors specific to button-like widgets.
99 
100  // Headings, titles.
103 };
104 
105 } // namespace Display
106 } // namespace HoverRace
107 
108 #undef MR_DllDeclare
Definition: Color.h:40
Color consoleCursorFg
Definition: Styles.h:79
Color announcementHeadFg
Definition: Styles.h:64
Vec2 gridPadding
Definition: Styles.h:92
Color buttonDisabledBg
Definition: Styles.h:97
Describes a font used for the UI.
Definition: UiFont.h:44
UiFont headingFont
Definition: Styles.h:101
Vec2 gridMargin
Definition: Styles.h:91
Color formFg
Definition: Styles.h:84
UiFont hudNormalFont
Definition: Styles.h:71
Shared styles for UI components.
Definition: Styles.h:45
Color dialogBg
Definition: Styles.h:88
Color headingFg
Definition: Styles.h:102
Color consoleBg
Definition: Styles.h:80
UiFont hudNormalHeadFont
Definition: Styles.h:72
Color bodyAsideFg
Definition: Styles.h:60
UiFont formFont
Definition: Styles.h:83
UiFont consoleFont
Definition: Styles.h:77
Definition: Vec.h:38
Color announcementSymbolFg
Definition: Styles.h:67
Color formDisabledFg
Definition: Styles.h:85
Color bodyFg
Definition: Styles.h:56
UiFont bodyHeadFont
Definition: Styles.h:57
UiFont hudSmallHeadFont
Definition: Styles.h:74
UiFont bodyFont
Definition: Styles.h:55
Color buttonBg
Definition: Styles.h:95
UiFont hudSmallFont
Definition: Styles.h:73
Color buttonPressedBg
Definition: Styles.h:98
UiFont announcementBodyFont
Definition: Styles.h:65
Color announcementBg
Definition: Styles.h:68
UiFont bodyAsideFont
Definition: Styles.h:59
Styles()
Definition: Styles.cpp:31
Definition: Announcement.h:24
void Reload()
Definition: Styles.cpp:37
Color consoleFg
Definition: Styles.h:78
Color announcementBodyFg
Definition: Styles.h:66
Color bodyHeadFg
Definition: Styles.h:58
UiFont announcementHeadFont
Definition: Styles.h:63
Color buttonFocusedBg
Definition: Styles.h:96