rag
graphic 2d engine
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
rag
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
{
14
class
TextEdit
:
public
rag::DisplayObject
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
rag::TextEdit
Creates a native window to edit a text.
Definition:
TextEdit.h:14
rag
Definition:
Bitmap.h:8
rag::DisplayObject
Core object used to display things in screen.
Definition:
DisplayObject.h:23
events
Definition:
Event.h:11
Generated by
1.8.10