00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INC_MGUI_TOOLRGN_H
00022 #define INC_MGUI_TOOLRGN_H
00023
00024 #ifndef INC_MGUI_TOOLBASE_H
00025 #include <mgui/toolbase.h>
00026 #endif
00027
00028 #ifndef INC_MI32_REGION2D_H
00029 #include <mi32/region2d.h>
00030 #endif
00031
00032
00033 namespace MGUI {
00034
00035
00036
00037 class TOOL_REGION : public TOOL_BASE {
00038 public:
00039
00040
00041 explicit TOOL_REGION (
00042 TOOLCANVAS *canvas
00043 );
00044
00045
00046 virtual ~TOOL_REGION ();
00047
00048
00049 TOOL_REGION& operator= (
00050 const REGION2D& rhs
00051 );
00052
00053
00054 const REGION2D& GetRegion (
00055 ) const { return (m_region); }
00056
00057
00058 void SetRegion (
00059 const REGION2D& region
00060 ) { operator=(region); };
00061
00062 private:
00063 #ifndef GENERATING_DOXYGEN_OUTPUT
00064
00065 REGION2D m_region;
00066
00067
00068 virtual void v_DoDraw (MGD::CONTEXT*);
00069 virtual void v_OnLButtonDown (MGUI::POINT point, KEYSTATE keystate);
00070 virtual void v_OnMouseMove (MGUI::POINT point, KEYSTATE keystate);
00071 #endif // GENERATING_DOXYGEN_OUTPUT
00072 };
00073
00074 }
00075
00076
00077 #endif // INC_MGUI_TOOLRGN_H