rag
graphic 2d engine
Keyboard.h
1 #ifndef Rag_Keyboard_h
2 #define Rag_Keyboard_h
3 
4 #include <rag/DisplayObject.h>
5 
6 namespace rag
7 {
8 
10 
15 {
16 
17 public:
18 
19  enum KeyboardType
20  {
21  KeyboardTypeDefault = 0,
22  KeyboardTypeEmail
23  };
24 
26 
29  Keyboard(KeyboardType type = KeyboardTypeDefault);
30 
32  virtual ~Keyboard(){};
33 
35  void show();
36 
38  void hide();
39 
41  virtual void onEvent(const std::string& type, events::Event& event);
42 
45 
46 private:
47 
48  bool shown;
49  KeyboardType type;
50 
51 };
52 
53 } // rag
54 
55 #endif
void show()
Shows the native keyboard.
Definition: Keyboard.cpp:18
static rag::Rectangle size
The size of the native keyboard rectangle.
Definition: Keyboard.h:44
Base class for event system.
Definition: Event.h:24
Interface that allows to listen events.
Definition: EventListener.h:10
Definition: Bitmap.h:8
void hide()
Hides the native keyboard.
Definition: Keyboard.cpp:39
Multiplatform keyboard abstraction.
Definition: Keyboard.h:14
Core object used to display things in screen.
Definition: DisplayObject.h:23
Represents a Rectangle.
Definition: Rectangle.h:10
Keyboard(KeyboardType type=KeyboardTypeDefault)
Default constructor.
Definition: Keyboard.cpp:12
virtual void onEvent(const std::string &type, events::Event &event)
Keyboard implements EventListener. Here is where is listening native events.
Definition: Keyboard.cpp:59
virtual ~Keyboard()
Default destructor.
Definition: Keyboard.h:32