- Main Page
- Classes
- Files

- File List

# textboxbase.h

    00001 #ifndef _TEXTBOX_BASE_H_
    00002 #define _TEXTBOX_BASE_H_
    00003
    00004 #include <nds.h>
    00005 #include "woopsistring.h"
    00006 #include "gadgetstyle.h"
    00007 #include "keyboardeventhandler.h"
    00008 #include "gadgeteventargs.h"
    00009
    00010 namespace WoopsiUI {
    00011
    00015         class TextBoxBase {
    00016         public:
    00017
    00021                 virtual void showCursor() = 0;
    00022
    00026                 virtual void hideCursor() = 0;
    00027
    00032                 virtual void setText(const WoopsiString& text) = 0;
    00033
    00039                 virtual void appendText(const WoopsiString& text) = 0;
    00040
    00045                 virtual void removeText(const u32 startIndex) = 0;
    00046
    00053                 virtual void removeText(const u32 startIndex, const u32 count) = 0;
    00054
    00060                 virtual void insertText(const WoopsiString& text, const u32 index) = 0;
    00061
    00066                 virtual void insertTextAtCursor(const WoopsiString& text) = 0;
    00067
    00074                 virtual void moveCursorToPosition(const s32 position) = 0;
    00075
    00081                 virtual const s32 getCursorPosition() const = 0;
    00082
    00087                 virtual bool opensKeyboard() const = 0;
    00088
    00092                 virtual void disableKeyboardPopup() = 0;
    00093
    00097                 virtual void enableKeyboardPopup() = 0;
    00098         };
    00099 }
    00100
    00101 #endif