00001 00029 #ifndef INC_MGUI_TOOLREGION_H 00030 #define INC_MGUI_TOOLREGION_H 00031 00032 #ifndef INC_MGUI_TOOLBASE_H 00033 #include <mgui/toolbase.h> 00034 #endif 00035 00036 #ifndef INC_MI32_REGION2D_H 00037 #include <mi32/region2d.h> 00038 #endif 00039 00040 namespace MGUI { 00041 00042 //===================================================================================================================== 00043 00045 class TOOL_REGION : public TOOL_BASE { 00046 public: 00047 00049 explicit TOOL_REGION ( 00050 TOOLCANVAS *canvas 00051 ); 00052 00054 virtual ~TOOL_REGION (); 00055 00057 TOOL_REGION& operator= ( 00058 const REGION2D& rhs 00059 ); 00060 00062 const REGION2D& GetRegion ( 00063 ) const { return (m_region); } 00064 00066 void SetRegion ( 00067 const REGION2D& region 00068 ) { operator=(region); }; 00069 00070 private: 00071 #ifndef GENERATING_DOXYGEN_OUTPUT 00072 // Tool position values 00073 REGION2D m_region; 00074 00075 // TOOL_BASE overrides. 00076 virtual void v_DoDraw (); 00077 virtual int v_GenerateRegion (REGION2D& region) const; 00078 virtual bool v_OnPointerButtonDown (MGUI::POINT point, POINTERBUTTON button, KEYSTATE keystate); 00079 virtual void v_OnPointerMove (MGUI::POINT point, POINTERBUTTON button, KEYSTATE keystate); 00080 #endif // GENERATING_DOXYGEN_OUTPUT 00081 }; 00082 00083 //===================================================================================================================== 00084 00085 } // End namespace MGUI 00086 00087 #endif // INC_MGUI_TOOLREGION_H
1.6.1