rag
graphic 2d engine
TextEvent.h
1 #ifndef Rag_TextEvent_h
2 #define Rag_TextEvent_h
3 
4 #include <rag/Event.h>
5 
6 namespace events
7 {
8  static const std::string TEXT_INPUT = "TextInput";
9 
11  class TextEvent: public Event
12  {
13  public:
14 
15  TextEvent(std::string type): Event(type) {};
16 
17  std::string text;
18  std::string lastCharacter;
19  };
20 
21 }
22 
23 #endif
Dispatched by InputText when user writes one character.
Definition: TextEvent.h:11
Base class for event system.
Definition: Event.h:24
Event(std::string type)
Creates a new event of the given type.
Definition: Event.h:30
std::string type
The type of the event. The string should be unique for this event.
Definition: Event.h:36
Definition: Event.h:11