CUGL 2.0
Cornell University Game Library
|
#include <CUTextInput.h>
Public Member Functions | |
TextInputEvent () | |
TextInputEvent (const std::string &text, const std::string &suffix, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
std::string | buffer |
std::string | added |
This simple class is a struct to hold text input information
The buffer includes the suffix appended by this event. To get the buffer before the event, compute the appropriate substring.
|
inline |
Constructs a new text input event with the default values
|
inline |
Constructs a new text input event with the given values
text | The current text input buffer |
suffix | The substring added by this specific event |
stamp | The timestamp for the event |
std::string cugl::TextInputEvent::added |
The substring added by this specific event
std::string cugl::TextInputEvent::buffer |
The current buffer for the text input
Timestamp cugl::TextInputEvent::timestamp |
The time of the text input event