My Project
text.h
Go to the documentation of this file.
1 
12 #pragma once
13 #include "drawinterface.h"
15 
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 };
Button interface class Provide interface for creating/removing custom text.
Definition: text.h:24
Text * SetWeight(int w)
Definition: text.cpp:57
bool redraw() override
Definition: text.cpp:44
Text()
Definition: text.cpp:5
Text * SetColor(COLORREF color)
Definition: text.cpp:50
Text * SetSymbolWidth(int w)
Definition: text.cpp:69
bool display(int X1, int Y1, int X2, int Y2, WCHAR *TEXT) override
Definition: text.cpp:32
Text * SetHeight(int h)
Definition: text.cpp:63
Base draw interface class. Parent of basic draw classes.
Definition: drawinterface.h:22