My Project
F:
University
Git
lego
lego
interface
text.h
Go to the documentation of this file.
1
12
#pragma once
13
#include "
drawinterface.h
"
14
class
BaseDrawInterfaceElement
;
15
24
class
Text
:
public
BaseDrawInterfaceElement
25
{
26
public
:
28
Text
();
29
36
Text
(
int
X,
int
Y, WCHAR* TEXT);
37
46
bool
display
(
int
X1,
int
Y1,
int
X2,
int
Y2, WCHAR* TEXT)
override
;
47
51
bool
redraw
()
override
;
52
57
Text
*
SetColor
(COLORREF color);
58
63
Text
*
SetWeight
(
int
w);
64
69
Text
*
SetHeight
(
int
h);
70
75
Text
*
SetSymbolWidth
(
int
w);
76
77
private
:
78
LOGFONT font;
79
int
X;
80
int
Y;
81
WCHAR* TEXT;
82
COLORREF COLOR;
83
};
Text
Button interface class Provide interface for creating/removing custom text.
Definition:
text.h:24
Text::SetWeight
Text * SetWeight(int w)
Definition:
text.cpp:57
Text::redraw
bool redraw() override
Definition:
text.cpp:44
Text::Text
Text()
Definition:
text.cpp:5
drawinterface.h
Text::SetColor
Text * SetColor(COLORREF color)
Definition:
text.cpp:50
Text::SetSymbolWidth
Text * SetSymbolWidth(int w)
Definition:
text.cpp:69
Text::display
bool display(int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override
Definition:
text.cpp:32
Text::SetHeight
Text * SetHeight(int h)
Definition:
text.cpp:63
BaseDrawInterfaceElement
Base draw interface class. Parent of basic draw classes.
Definition:
drawinterface.h:22
Generated by
1.8.12