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
6namespace 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
Definition component.h:22
T * createChild(Args &&... args)
Definition component.h:64
Definition textbox.h:9
Textbox(std::string &value, int max_size)
Textbox * setMask(const char mask)
Definition textbox.h:24
UI components.
Definition component.h:15