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 <cstdint>
5
#include <vector>
6
#include <string>
7
8
namespace
oe::gui::component
9
{
10
class
HasText
11
{
12
public
:
13
// Defined in component.cpp
14
void
setText(
const
std::string& text);
15
16
std::string getText()
17
{
18
return
_text;
19
}
20
21
void
setAlign(
const
int32_t align)
22
{
23
_align = align;
24
}
25
26
int32_t getAlign()
27
{
28
return
_align;
29
}
30
31
protected
:
32
int32_t _align;
33
std::string _text;
34
std::vector<std::string> _text_lines;
35
};
36
}
37
#endif
oe::gui::component::HasText
Definition
has_text.h:11
oe::gui::component
UI components.
Definition
component.h:13
OxygenEngine
gui
component
util
has_text.h
Generated by
1.15.0