Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- 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 ~TextBoxBase() { };
    00022
    00026                 virtual void showCursor() = 0;
    00027
    00031                 virtual void hideCursor() = 0;
    00032
    00037                 virtual void setText(const WoopsiString& text) = 0;
    00038
    00044                 virtual void appendText(const WoopsiString& text) = 0;
    00045
    00050                 virtual void removeText(const u32 startIndex) = 0;
    00051
    00058                 virtual void removeText(const u32 startIndex, const u32 count) = 0;
    00059
    00065                 virtual void insertText(const WoopsiString& text, const u32 index) = 0;
    00066
    00071                 virtual void insertTextAtCursor(const WoopsiString& text) = 0;
    00072
    00079                 virtual void moveCursorToPosition(const s32 position) = 0;
    00080
    00086                 virtual const s32 getCursorPosition() const = 0;
    00087
    00092                 virtual bool opensKeyboard() const = 0;
    00093
    00097                 virtual void disableKeyboardPopup() = 0;
    00098
    00102                 virtual void enableKeyboardPopup() = 0;
    00103         };
    00104 }
    00105
    00106 #endif