CScrollEvent.hpp

Go to the documentation of this file.
00001 #ifndef __CScrollEvent__
00002 #define __CScrollEvent__
00003 
00004 #include <MathTools/CRect.hpp>
00005 using Exponent::MathTools::CRect;
00006 
00007 //  ===========================================================================
00008 
00009 namespace Exponent
00010 {
00011     namespace GUI
00012     {
00013         namespace Events
00014         {
00033             class CScrollEvent : public CCountedObject
00034             {
00036                 EXPONENT_CLASS_DECLARATION;
00039 //  ===========================================================================
00040 
00041             public:
00042 
00043 //  ===========================================================================
00044 
00049                 enum EScrollDirection
00050                 {
00051                     e_scrollVertical = 0,       
00052                     e_scrollHorizontal          
00053                 };
00054 
00055 //  ===========================================================================
00056 
00062                 CScrollEvent(const EScrollDirection direction, const CRect &viewPort);
00063 
00067                 virtual ~CScrollEvent();
00068 
00069 //  ===========================================================================
00070 
00075                 void setViewPort(const CRect &viewPort) { m_viewPort = viewPort; }
00076 
00081                 void setDirection(const EScrollDirection direction) { m_direction = direction; }
00082 
00083 //  ===========================================================================
00084 
00089                 EScrollDirection getDirection() const { return m_direction; }
00090 
00095                 const CRect &getViewPort() const { return m_viewPort; }
00096 
00097 //  ===========================================================================
00098 
00099             protected:
00100 
00101 //  ===========================================================================
00102 
00103                 EScrollDirection m_direction;       
00104                 CRect m_viewPort;                   
00105             };
00106         }
00107     }
00108 }
00109 #endif  // End of CScrollEvent.hpp

Infinity API - CScrollEvent.hpp Source File generated on 7 Mar 2007