rag
graphic 2d engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
rag
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
events::TextEvent
Dispatched by InputText when user writes one character.
Definition:
TextEvent.h:11
events::Event
Base class for event system.
Definition:
Event.h:24
events::Event::Event
Event(std::string type)
Creates a new event of the given type.
Definition:
Event.h:30
events::Event::type
std::string type
The type of the event. The string should be unique for this event.
Definition:
Event.h:36
events
Definition:
Event.h:11
Generated by
1.8.10