Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
has_text.h
1#ifndef OE_GUI_COMPONENT_UTIL_HAS_TEXT_H
2#define OE_GUI_COMPONENT_UTIL_HAS_TEXT_H
3
4#include <vector>
5#include <string>
6
7namespace oe::gui::component
8{
9 class HasText
10 {
11 public:
12 // Defined in component.cpp
13 void setText(const std::string& text);
14
15 std::string getText()
16 {
17 return _text;
18 }
19
20 void setAlign(const int& align)
21 {
22 _align = align;
23 }
24
25 int getAlign()
26 {
27 return _align;
28 }
29
30 protected:
31 int _align;
32 std::string _text;
33 std::vector<std::string> _text_lines;
34 };
35}
36#endif
Definition has_text.h:10
UI components.
Definition component.h:15