Oxygen Engine
Modern C++ 3D Engine using OpenGL
Loading...
Searching...
No Matches
textbox.h
1
#ifndef OE_GUI_COMPONENT_TEXTBOX_H
2
#define OE_GUI_COMPONENT_TEXTBOX_H
3
4
#include "../component.h"
5
6
namespace
oe::gui::component
7
{
8
class
Textbox
:
public
Component
9
{
10
public
:
11
Textbox
(
int
max_size
);
12
16
Textbox
(std::string& value,
int
max_size
);
17
24
Textbox
*
setMask
(
const
char
mask
)
25
{
26
_mask =
mask
;
27
return
this
;
28
}
29
30
void
generate();
31
32
~Textbox
();
33
private
:
34
std::string _value;
35
std::string& _reference_value;
36
int
_max_size;
37
int
_size;
38
int
_old_size;
39
char
* _buffer;
40
char
* _shown_buffer;
41
char
_mask;
42
};
43
}
44
#endif
oe::gui::Component
Definition
component.h:22
oe::gui::Component::createChild
T * createChild(Args &&... args)
Definition
component.h:64
oe::gui::component::Textbox
Definition
textbox.h:9
oe::gui::component::Textbox::Textbox
Textbox(std::string &value, int max_size)
oe::gui::component::Textbox::setMask
Textbox * setMask(const char mask)
Definition
textbox.h:24
oe::gui::component
UI components.
Definition
component.h:15
OxygenEngine
gui
component
textbox.h
Generated by
1.9.8