Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

ColorCubePanel.h

00001 #ifndef _COLOR_CUBE_PANEL_
00002 #define _COLOR_CUBE_PANEL_
00003 
00004 
00005 #include "LifeVariables.h"
00006 #include "ColorCube.h"
00007 #include "GuiComponent.h"
00008 #include "TxPoint.h"
00009 
00010 #define COLOR_CUBE_PANEL_WIDTH 100 
00011 #define COLOR_CUBE_PANEL_HEIGHT 100
00012 #define COLOR_CUBE_PANEL_X_POS X_RES / 2
00013 #define COLOR_CUBE_PANEL_Y_POS Y_RES / 2 
00014 
00020 class ColorCubePanel: public GuiComponent {
00021     private:        
00022         ColorCube *colorCube;
00023         bool dragging;
00024 
00025     public:
00026         TxPoint *point;
00027 
00028         ColorCubePanel();
00029 
00030         ~ColorCubePanel() {
00031             delete colorCube;            
00032         }
00033         
00035         void render();
00036 
00038         bool onMouseDown(int x, int y);
00039 
00043         void onMouseDrag(int x, int y);
00044 
00045         void refreshDragBounds(int x, int y);
00046 
00047 };
00048 #endif

Generated on Mon Dec 12 15:20:26 2005 for CCube by  doxygen 1.4.1