-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
constants.hpp
52 lines (40 loc) · 1.32 KB
/
constants.hpp
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
/*
Copyright (C) 2008 - 2018 by Mark de Wever <koraq@xs4all.nl>
Part of the Battle for Wesnoth Project https://www.wesnoth.org/
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.
See the COPYING file for more details.
*/
#pragma once
#include <string>
namespace font {
// font sizes, to be made theme parameters
extern const int SIZE_NORMAL;
// automatic computation of other font sizes, to be made a default for theme-provided values
extern const int SIZE_TINY, SIZE_SMALL,
SIZE_15, SIZE_PLUS, SIZE_LARGE, SIZE_TITLE, SIZE_XLARGE;
// For arbitrary scaling:
// (Not used in defining the SIZE_* consts because of spurious compiler warnings.)
inline int relative_size(int size)
{
return (SIZE_NORMAL * size / 14);
}
// GUI1 built-in maximum
extern const size_t max_text_line_width;
// String constants
extern const std::string
ellipsis,
nbsp,
unicode_minus,
unicode_en_dash,
unicode_em_dash,
unicode_figure_dash,
unicode_multiplication_sign,
unicode_bullet,
weapon_numbers_sep,
weapon_details_sep;
} // end namespace font