CUGL 2.0
Cornell University Game Library
Public Member Functions | Public Attributes | List of all members
cugl::TextInputEvent Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TextInputEvent() [1/2]

cugl::TextInputEvent::TextInputEvent ( )
inline

Constructs a new text input event with the default values

◆ TextInputEvent() [2/2]

cugl::TextInputEvent::TextInputEvent ( const std::string &  text,
const std::string &  suffix,
const Timestamp stamp 
)
inline

Constructs a new text input event with the given values

Parameters
textThe current text input buffer
suffixThe substring added by this specific event
stampThe timestamp for the event

Member Data Documentation

◆ added

std::string cugl::TextInputEvent::added

The substring added by this specific event

◆ buffer

std::string cugl::TextInputEvent::buffer

The current buffer for the text input

◆ timestamp

Timestamp cugl::TextInputEvent::timestamp

The time of the text input event


The documentation for this class was generated from the following file: