24 using Ptr = std::unique_ptr<TextInput>;
35 template <
typename... Params>
37 return std::make_unique<TextInput>(std::forward<Params>(
params)...);
41 const std::string& placeholder,
43 std::shared_ptr<font::Loader> fonts,
54 static std::string prev_input;
std::unique_ptr< DynText > Ptr
Definition: dyntext.hpp:16
Definition: textinput.hpp:22
void doClick(float x, float y) override
Performs a click at the specified (x,y) position in the GUI coordinate frame.
Definition: textinput.cpp:73
bool hasHandle(Handle handle) const override
======================================================================================
Definition: textinput.cpp:53
std::unique_ptr< TextInput > Ptr
Definition: textinput.hpp:24
Widget * borrow(Handle handle) override
Gives a pointer to the subwidget specified by the handle.
Definition: textinput.cpp:58
static Ptr make(Params &&... params)
Constructs a TextInput unique ptr widget.
Definition: textinput.hpp:36
void doHover(float x, float y) override
Performs a hover action at the specified (x,y) position in the GUI coordinate frame.
Definition: textinput.cpp:81
void render() override
======================================================================================
Definition: textinput.cpp:48
GLint GLenum GLint x
Definition: glad.h:1655
GLint y
Definition: glad.h:1516
GLenum const GLfloat * params
Definition: glad.h:1522
Definition: dyntext.hpp:19