4 // Graphical User Interface text edit class
13 class TextEdit: public Element
16 TextEdit(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0, std::string s = "", Element * parent = NULL);
18 virtual void HandleKey(SDLKey key);
19 virtual void HandleMouseMove(uint32 x, uint32 y);
20 virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown);
21 virtual void Draw(void);
22 virtual void Notify(Element *);
23 std::string GetText(void);
24 void SaveStateVariables(void);
25 void CheckStateAndRedrawIfNeeded(void);
28 bool activated, clicked, inside;
31 uint32 caretPos, scrollPos;
34 bool activatedSave, clickedSave, insideSave;
35 uint32 caretPosSave, scrollPosSave, lengthSave;
36 uint32 hiliteColor, cursorColor;
39 #endif // __TEXTEDIT_H__