TextField widget. It's like EditBox but no editing.
More...
#include <TextField.h>
Inherits Widget.
|
| TextField () |
|
| TextField (GUISystem *guiSystem, int x, int y, int w, int h, std::string text) |
|
virtual | ~TextField () |
|
void | render (Renderer *renderer) |
|
void | setText (const std::string &text) |
|
std::string | getText () |
|
| Widget () |
|
| Widget (int x, int y, int w, int h) |
|
virtual | ~Widget () |
|
virtual void | keyChar (int uchar) |
|
virtual void | keyDown (int keyCode) |
|
virtual void | mouseMove (int x, int y) |
|
virtual void | stateChange (State state) |
|
virtual void | focusIn () |
|
virtual void | focusOut () |
|
void | addChild (Widget *widget) |
|
void | removeChild (Widget *widget) |
|
void | setParent (Widget *widget) |
|
void | resize (int x, int y, int w, int h) |
|
void | updateAbs () |
|
void | setVisibility (bool visible) |
|
bool | contain (int posX, int posY) |
|
bool | isFocused () |
|
State | getState () |
|
| EventEmitter () |
|
virtual | ~EventEmitter () |
|
void | setQueue (AddToQueue addFunction) |
| Assings addToQueue function so the events can be sent to the queue. More...
|
|
EventListener::Id | addEventListener (EventType eventType, EventListener::Function listenerFunc) |
| Adds an event listener. More...
|
|
void | removeEventListener (EventListener::Id listenerId) |
| Removes an event listener. More...
|
|
void | emitEvent (Event event) |
| Emitts an event. More...
|
|
TextField widget. It's like EditBox but no editing.
Definition at line 13 of file TextField.h.
◆ TextField() [1/2]
◆ TextField() [2/2]
TextField::TextField |
( |
GUISystem * |
guiSystem, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
std::string |
text |
|
) |
| |
◆ ~TextField()
TextField::~TextField |
( |
| ) |
|
|
virtual |
◆ getText()
std::string TextField::getText |
( |
| ) |
|
◆ render()
void TextField::render |
( |
Renderer * |
renderer | ) |
|
|
virtual |
◆ setText()
void TextField::setText |
( |
const std::string & |
text | ) |
|
◆ GUISystem
◆ text
std::string TextField::text |
|
private |
◆ textColor
Color TextField::textColor |
|
protected |
The documentation for this class was generated from the following files: