rag
graphic 2d engine
TextEdit.h
1 #ifndef _TextEdit_H_
2 #define _TextEdit_H_
3 
4 #include <rag/DisplayObject.h>
5 
6 namespace events
7 {
8  static const std::string TEXTEDIT_FINISHED = "TextEditFinished";
9 }
10 
11 namespace rag
12 {
15  {
16  public:
17  TextEdit(rag::DisplayObject* parent, const std::string& text);
18 
19  void close(bool cancel = false);
20 
21  const std::string& getValue() { return textValue; }
22 
23  static TextEdit* getInstance();
24 
25  private:
26 
27  void* handle;
28  std::string textValue;
29 
30  static TextEdit* instance;
31  };
32 }
33 
34 #endif
Creates a native window to edit a text.
Definition: TextEdit.h:14
Definition: Bitmap.h:8
Core object used to display things in screen.
Definition: DisplayObject.h:23
Definition: Event.h:11