-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.cpccText.h
47 lines (37 loc) · 1.34 KB
/
gui.cpccText.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
/* *****************************************
* File: gui.cpccText.h
* Version: see function getClassVersion()
* Purpose: Portable (cross-platform), light-weight, c++ library
* *****************************************
* Library: Cross Platform C++ Classes (cpcc)
* Copyright: 2013 StarMessage software.
* License: Free for opensource projects.
* Commercial license for closed source projects.
* Web: http://www.StarMessageSoftware.com
* Download: https://code.google.com/p/cpcc/
* https://github.com/starmessage/cpcc
* email: sales -at- starmessage.info
* *****************************************
*/
#pragma once
#include "cpccUnicodeSupport.h"
#include "cpccColor.h"
enum eFontQuality { fqAntiAliased=0, fqNonAntiAliased, fqUndefined };
enum eFontWeight { fwNormal=0, fwThin=1, fwUndefined };
enum eTextAlign { taLeft=-1, taCenter=0, taRight=1 };
struct cpccTextParams
{
cpccColor *color;
const cpcc_char *fontName;
float *fontSize;
eTextAlign *textAlign;
float *kerning;
eFontQuality fontQuality;
eFontWeight fontWeight;
bool ignoreRetina;
cpccTextParams():
color(NULL), fontName(NULL), fontSize(NULL),
textAlign(NULL), fontQuality(fqUndefined), fontWeight(fwUndefined), kerning(NULL), ignoreRetina(false)
{ }
};