Button interface class Provide interface for creating/removing custom text.
More...
#include "interface/text.h"
Button interface class Provide interface for creating/removing custom text.
- Todo:
- Customise button style
Definition at line 24 of file text.h.
§ Text() [1/2]
Empty constructor. No action.
Definition at line 5 of file text.cpp.
§ Text() [2/2]
Text::Text |
( |
int |
X, |
|
|
int |
Y, |
|
|
WCHAR * |
TEXT |
|
) |
| |
Constructor display text
- Parameters
-
[in] | X | X coordinate |
[in] | Y | Y coordinate |
[in] | TEXT | Text to display |
Definition at line 24 of file text.cpp.
§ display()
bool Text::display |
( |
int |
X1, |
|
|
int |
Y1, |
|
|
int |
X2, |
|
|
int |
Y2, |
|
|
WCHAR * |
TEXT |
|
) |
| |
|
overridevirtual |
Display text
- Parameters
-
[in] | X1 | X coordinate |
[in] | Y1 | Y coordinate |
[in] | X2 | not used |
[in] | Y2 | not used |
[in] | TEXT | Text to display |
Implements BaseDrawInterfaceElement.
Definition at line 32 of file text.cpp.
§ redraw()
§ SetColor()
Text * Text::SetColor |
( |
COLORREF |
color | ) |
|
Set text color
- Parameters
-
Definition at line 50 of file text.cpp.
§ SetHeight()
Text * Text::SetHeight |
( |
int |
h | ) |
|
Set text height
- Parameters
-
Definition at line 63 of file text.cpp.
§ SetSymbolWidth()
Text * Text::SetSymbolWidth |
( |
int |
w | ) |
|
Set symbol width
- Parameters
-
Definition at line 69 of file text.cpp.
§ SetWeight()
Text * Text::SetWeight |
( |
int |
w | ) |
|
Set text weight
- Parameters
-
Definition at line 57 of file text.cpp.
The documentation for this class was generated from the following files:
- F:/University/Git/lego/lego/interface/text.h
- F:/University/Git/lego/lego/interface/text.cpp