src/widgets.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2006 by Kirill Kolodyazhniy.
00003 * See the file "license.terms" for information on usage and redistribution
00004 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00005 */
00006 
00007 #ifndef M_WIDGETS_H
00008 #define M_WIDGETS_H
00009 
00010 namespace MWidgets
00011 {       
00012         class Widget;
00014         class Widgets
00015         {
00016         private:
00017                 ATOM m_aWidget;
00018                 int count;
00019                 unsigned int uniqueId;
00020                 bool running;
00021                 static Widgets* m_pSelf;
00022 
00024                 Widgets();
00026                 ~Widgets();
00027         protected:
00028                 friend class Widget;
00030                 void AddWidget();
00032                 void DelWidget();
00033         public:
00035                 void Run();
00037                 unsigned int GetNewId();
00039                 static Widgets* Instance();
00041                 static void Destroy();
00043                 static void Init(Icon* pBigIcon=NULL,Icon* pSmallIcon=NULL);
00045                 ATOM GetAtom();
00046         };
00047 };
00048 
00049 #endif

Generated on Thu Oct 26 13:47:45 2006 for MWidgets by  doxygen 1.4.7