-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmisc_inst.h
110 lines (98 loc) · 4.33 KB
/
misc_inst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
/***************************************************************************
* Copyright (C) 2010, 2011 by Terraneo Federico *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* As a special exception, if other files instantiate templates or use *
* macros or inline functions from this file, or you compile this file *
* and link it with other works to produce a work based on this file, *
* this file does not by itself cause the resulting work to be covered *
* by the GNU General Public License. However the source code for this *
* file must still be made available in accordance with the GNU General *
* Public License. This exception does not invalidate any other reasons *
* why a work based on this file might be covered by the GNU General *
* Public License. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, see <http://www.gnu.org/licenses/> *
***************************************************************************/
/**
* \file misc_inst.h
* This file contains some constants and type instantiations, such as
* default colors such as white and black, and font types such as droid11()
*/
#pragma once
#include "color.h"
#include "font.h"
namespace mxgui {
/**
* \addtogroup pub_iface
* \{
*/
#ifdef MXGUI_FONT_MISCFIXED
/// \hideinitializer
/// MiscFixed, an 8x16 fixed width font
extern const Font miscFixed;
#ifdef MXGUI_ENABLE_BOLD_FONTS
/// \hideinitializer
/// MiscFixed bold, an 8x16 fixed width font
extern const Font miscFixedBold;
#endif //MXGUI_ENABLE_BOLD_FONTS
#endif //MXGUI_FONT_MISCFIXED
#ifdef MXGUI_FONT_DROID11
/// \hideinitializer
/// Droid 11, a variable width antialiased font
extern const Font droid11;
#ifdef MXGUI_ENABLE_BOLD_FONTS
/// \hideinitializer
/// Droid 11 bold, a variable width antialiased font
extern const Font droid11b;
#endif //MXGUI_ENABLE_BOLD_FONTS
#endif //MXGUI_FONT_MISCFIXED
#ifdef MXGUI_FONT_DROID21
/// \hideinitializer
/// Droid 21, a variable width antialiased font
extern const Font droid21;
#ifdef MXGUI_ENABLE_BOLD_FONTS
/// \hideinitializer
/// Droid 21 bold, a variable width antialiased font
extern const Font droid21b;
#endif //MXGUI_ENABLE_BOLD_FONTS
#endif //MXGUI_FONT_DROID21
#ifdef MXGUI_FONT_TAHOMA
/// \hideinitializer
/// Tahoma, a variable width font
extern const Font tahoma;
#endif //MXGUI_FONT_TAHOMA
#ifdef MXGUI_COLOR_DEPTH_1_BIT_LINEAR
const Color white(1); ///< White color constant
const Color black(0); ///< Black color constant
#elif defined(MXGUI_COLOR_DEPTH_8_BIT)
const Color white(0xff); ///< White color constant
const Color black(0x00); ///< Black color constant
const Color grey(0x92); ///< Grey color constant
const Color red(0xe0); ///< Red color constant
const Color green(0x1c); ///< Green color constant
const Color blue(0x03); ///< Blue color constant
#elif defined(MXGUI_COLOR_DEPTH_16_BIT)
const Color white(0xffff); ///< White color constant
const Color black(0x0000); ///< Black color constant
const Color darkGrey(0x4208); ///< Dark grey color constant
const Color grey(0x8410); ///< Grey color constant
const Color lightGrey(0xc618);///< Light grey color constant
const Color red(0xf800); ///< Red color constant
const Color green(0x07e0); ///< Green color constant
const Color blue(0x001f); ///< Blue color constant
#endif
/**
* \}
*/
} // namespace mxgui