Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

DropDownScrollWnd.h

Go to the documentation of this file.
00001 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00002 // DropDownScrollWnd.h
00003 // Author: Richard van Balen
00004 
00005 #ifndef OglGui_DropDownScrollWnd_h
00006 #define OglGui_DropDownScrollWnd_h
00007 
00008 #ifndef OglGui_DropDownWindow_h
00009 #include "OglGui/DropDownWindow.h"
00010 #endif
00011 
00012 #ifndef OglGui_ScrollWnd_h
00013 #include "OglGui/ScrollWnd.h"
00014 #endif
00015 
00016 namespace OglGui
00017 {
00018 
00019 class DropDownScrollWnd : public DropDownWindow
00020 {
00021 public:
00022     DropDownScrollWnd(Window* parent, int x, int y, int w, strconst txt="",
00023                       int sW=200, int sH=200, bool is2D=true,
00024                       int hor=1, int vert=1, int options=PlusMinus):
00025         DropDownWindow(parent, x, y, w, 20, txt, options)
00026     {
00027         Init(sW,sH,hor,vert,is2D);
00028     }
00029 
00030     DropDownScrollWnd(Window* parent, int w, strconst txt="",
00031                       int sW=200, int sH=200, bool is2D=true,
00032                       int hor=1, int vert=1, int options=PlusMinus):
00033         DropDownWindow(parent, w, 20, txt, options)
00034     {
00035         Init(sW,sH,hor,vert,is2D);
00036     }
00037 
00038     ScrollWnd* Scroller()
00039     {
00040         return mScrollWnd;
00041     }
00042 
00043 protected:
00044     ScrollWnd* mScrollWnd;
00045 
00046 private:
00047     void Init(int sW, int sH, int hor, int ver, bool is2D)
00048     {
00049         mScrollWnd = new ScrollWnd(this,sW,sH,is2D,hor,ver);
00050         AddWindow(mScrollWnd,0);
00051     }
00052 };
00053 
00054 } // Namespace OglGui
00055 #endif
00056 

Generated on Fri Mar 19 09:31:35 2010 for ImpalaSrc by  doxygen 1.5.1