Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/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:
00031         Window(s16 x, s16 y, u16 width, u16 height, const WoopsiString& title, GadgetStyle* style = NULL);
00032 
00037         void setTitle(const WoopsiString& title);
00038 
00043         const WoopsiString& getTitle() { return _title; };
00044 
00045     protected:
00046         WoopsiString _title;                            
00054         virtual void drawBorder(GraphicsPort* port);
00055 
00059         virtual void onDragStart();
00060         
00068         virtual void onDrag(s16 x, s16 y, s16 vX, s16 vY);
00069         
00073         virtual void onDragStop();
00074 
00078         virtual inline ~Window() { };
00079 
00083         inline Window(const Window& window) : Gadget(window) { };
00084     };
00085 }
00086 
00087 #endif
 All Classes Functions Variables Enumerations Enumerator