2 #include "oxygine-include.h" 3 #include "EventDispatcher.h" 13 DECLARE_SMART(InputText, spInputText);
18 enum {EVENT_TEXT_CHANGED = sysEventID(
'I',
'T',
'C') };
19 enum {EVENT_COMPLETE = Event::COMPLETE};
25 void start(spTextField textActor);
28 void setAllowedSymbols(
const std::string& utf8str);
29 void setAllowedSymbols(
const std::wstring& str);
30 void setDisallowedSymbols(
const std::string& utf8str);
31 void setDisallowedSymbols(
const std::wstring& str);
32 void setMaxTextLength(
int);
33 void showCursor(
bool show);
35 static void stopAnyInput();
38 spTextField _textActor;
41 std::string _disallowed;
44 spColorRectSprite _cursor;
50 void _onSysEvent(
Event* event);
53 int _onSDLEvent(SDL_Event* event);
Definition: InputText.h:15
void start(spTextField textActor)
–oxgl-end–!
Definition: Actor.h:14
Definition: EventDispatcher.h:27