FPLBase
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
fplbase::TextInputEvent Struct Reference

Holds text input events. More...

#include <input.h>

Detailed Description

Holds text input events.

Public Member Functions

 TextInputEvent (TextInputEventType t)
 Constructor for TextInputEvent.
 
 TextInputEvent (TextInputEventType t, int32_t state, bool repeat, int32_t symbol, int32_t modifier)
 Constructor for TextInputEvent.
 
 TextInputEvent (TextInputEventType t, const char *str)
 Constructor for TextInputEvent.
 
 TextInputEvent (TextInputEventType t, const char *str, int32_t start, int32_t length)
 Constructor for TextInputEvent.
 

Public Attributes

TextInputEventType type
 Type of the event.
 
std::string text
 Input string.
 
union {
   TextInputEventKey   key
 An event parameter for a keyboard input.
 
   TextInputEventEdit   edit
 An event parameter for a text edit in IME (Input Method Editor).
 
}; 
 Union of Text input events.
 

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