]> Shamusworld >> Repos - apple2/blobdiff - src/gui/textedit.h
Converted to SDL 2, added fullscreen toggle.
[apple2] / src / gui / textedit.h
index e7b1cf0047b5209ab35a1a12428567d9f5487cec..11904bfb7c0f12f8139b4ae65ba66d885e1dacdc 100755 (executable)
 class TextEdit: public Element
 {
        public:
-               TextEdit(uint32 x = 0, uint32 y = 0, uint32 w = 0, uint32 h = 0, std::string s = "", Element * parent = NULL);
+               TextEdit(uint32_t x = 0, uint32_t y = 0, uint32_t w = 0, uint32_t h = 0, std::string s = "", Element * parent = NULL);
                ~TextEdit();
-               virtual void HandleKey(SDLKey key);
-               virtual void HandleMouseMove(uint32 x, uint32 y);
-               virtual void HandleMouseButton(uint32 x, uint32 y, bool mouseDown);
+               virtual void HandleKey(SDL_Scancode key);
+               virtual void HandleMouseMove(uint32_t x, uint32_t y);
+               virtual void HandleMouseButton(uint32_t x, uint32_t y, bool mouseDown);
                virtual void Draw(void);
                virtual void Notify(Element *);
                std::string GetText(void);
@@ -28,12 +28,12 @@ class TextEdit: public Element
                bool activated, clicked, inside;
                SDL_Surface * img;
                std::string text;
-               uint32 caretPos, scrollPos;
+               uint32_t caretPos, scrollPos;
 
        private:
                bool activatedSave, clickedSave, insideSave;
-               uint32 caretPosSave, scrollPosSave, lengthSave;
-               uint32 hiliteColor, cursorColor;
+               uint32_t caretPosSave, scrollPosSave, lengthSave;
+               uint32_t hiliteColor, cursorColor;
 };
 
 #endif // __TEXTEDIT_H__