00001 #ifndef __CAnimationFrame__ 00002 #define __CAnimationFrame__ 00003 00004 #include "CControl.hpp" 00005 using Exponent::GUI::Controls::CControl; 00006 00007 // =========================================================================== 00008 00009 namespace Exponent 00010 { 00011 namespace GUI 00012 { 00013 namespace Controls 00014 { 00032 class CAnimationFrame : public CControl 00033 { 00035 EXPONENT_CLASS_DECLARATION; 00038 // =========================================================================== 00039 00040 public: 00041 00042 // =========================================================================== 00043 00050 CAnimationFrame(IControlRoot *root, const long uniqueId, const CRect &area); 00051 00055 virtual ~CAnimationFrame(); 00056 00057 // =========================================================================== 00058 00064 virtual void setAnimationImage(IImage *theImage, const long heightOfEachFrame); 00065 00066 // =========================================================================== 00067 00072 virtual void drawControl(CGraphics &graphics); 00073 00078 virtual void setFrameNumber(const long frameNumber); 00079 00084 virtual void handleLeftButtonDown(CMouseEvent &event); 00085 00086 // =========================================================================== 00087 00088 protected: 00089 00090 // =========================================================================== 00091 00092 long m_frameHeight; 00093 long m_frameNumber; 00094 CRect m_offsetArea; 00095 }; 00096 } 00097 } 00098 } 00099 #endif // End of CAnimationFrame.hpp