blob: 536a2ea33188ac3cbd7c1e15f55221fdc7139e7a (
plain)
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
|
#pragma once
#include "color.hpp"
namespace yg
{
struct FontDesc
{
bool m_isStatic;
int m_size;
yg::Color m_color;
bool m_isMasked;
yg::Color m_maskColor;
FontDesc(bool isStatic = true, int size = 10, yg::Color const & color = yg::Color(0, 0, 0, 255),
bool isMasked = true, yg::Color const & maskColor = yg::Color(255, 255, 255, 255));
void SetRank(uint8_t rank);
bool operator != (FontDesc const & src) const;
bool operator == (FontDesc const & src) const;
bool operator < (FontDesc const & src) const;
bool operator > (FontDesc const & src) const;
static FontDesc const & defaultFont;
};
}
|