Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- File List

# window.h

    00001 #ifndef _WINDOW_BASE_H_
    00002 #define _WINDOW_BASE_H_
    00003
    00004 #include <nds.h>
    00005 #include "gadget.h"
    00006 #include "fontbase.h"
    00007 #include "graphicsport.h"
    00008 #include "gadgetstyle.h"
    00009
    00010 namespace WoopsiUI {
    00011
    00016         class Window : public Gadget {
    00017
    00018         public:
    00032                 Window(s16 x, s16 y, u16 width, u16 height, const WoopsiString& title, u32 flags, GadgetStyle* style = NULL);
    00033
    00038                 void setTitle(const WoopsiString& title);
    00039
    00044                 const WoopsiString& getTitle() { return _title; };
    00045
    00046         protected:
    00047                 WoopsiString _title;
    00055                 virtual void drawBorder(GraphicsPort* port);
    00056
    00060                 virtual void onDragStart();
    00061
    00069                 virtual void onDrag(s16 x, s16 y, s16 vX, s16 vY);
    00070
    00074                 virtual void onDragStop();
    00075
    00079                 virtual inline ~Window() { };
    00080
    00084                 inline Window(const Window& window) : Gadget(window) { };
    00085         };
    00086 }
    00087
    00088 #endif