Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

CSBar.h

Go to the documentation of this file.
00001 #ifndef CSBar_h
00002 #define CSBar_h
00003 
00004 // USES SDL_Surface
00005 
00006 #ifdef WIN32
00007 #pragma warning(disable : 4786 )
00008 #endif
00009 
00010 #include <vector>
00011 #include <string>
00012 
00013 #include "CSGrafikElement.h"
00014 #include "CSDesktop.h"
00015 #include "CSLog.h"
00016 
00017 class CSBar;
00018 typedef std::vector<CSBar *> CSBars;
00019 
00020 class CSBar : public CSGrafikElement
00021 {
00022     private:
00023         int mAutoPlacingType;
00024 
00025     protected:
00026         void layoutSetupBar();
00027 
00028     public:
00029         static const char *CLASS;
00030         virtual std::string getType() {return (std::string) CLASS;}
00031 
00032         CSBar(int type);
00033         virtual ~CSBar();
00034         
00035         void initBar();
00036         void addElementAt(CSGrafikElement *element, int place);
00037         virtual void layoutSetup(){layoutSetupBar();}
00038         int getPosition()
00039         {
00040             return getLayoutData().getPosition();
00041         }
00042 };
00043 
00044 #endif // CSBar_h

Generated on Wed Jul 14 00:43:28 2004 for CSLib by doxygen 1.3.6