mgui/toolrgn.h

Go to the documentation of this file.
00001 /**
00002  * \file mgui/toolrgn.h
00003  * \brief MGUI::TOOL_REGION class definition
00004  *
00005  * \if NODOC
00006  * $Id: toolrgn.h_v 1.3 2003/10/03 19:58:19 linux32build!build Exp $
00007  *
00008  * $Log: toolrgn.h_v $
00009  * Revision 1.3  2003/10/03 19:58:19  linux32build!build
00010  * Doxygen
00011  *
00012  * Revision 1.2  2003/09/15 13:49:32  fileserver!dwilliss
00013  * Doxygen
00014  *
00015  * Revision 1.1  2003/01/10 23:09:13  mju
00016  * Initial revision
00017  *
00018  * \endif
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 //! TOOL_REGION - Region tool
00037 class TOOL_REGION : public TOOL_BASE {
00038    public:
00039 
00040       //! Constructor.
00041       explicit TOOL_REGION (
00042          TOOLCANVAS *canvas
00043          );
00044 
00045       //! Destructor.
00046       virtual ~TOOL_REGION ();
00047 
00048       //! Assignment from REGION2D
00049       TOOL_REGION& operator= (
00050          const REGION2D& rhs
00051          );
00052 
00053       //! Get reference to region.
00054       const REGION2D& GetRegion (
00055          ) const { return (m_region); }
00056 
00057       //! Assign region to tool.
00058       void SetRegion (
00059          const REGION2D& region
00060          ) { operator=(region); };
00061 
00062    private:
00063       #ifndef GENERATING_DOXYGEN_OUTPUT
00064       //! Tool position values
00065       REGION2D m_region;
00066 
00067       //! TOOL_BASE overrides.
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 }  // End namespace MGUI
00075 
00076 
00077 #endif   // INC_MGUI_TOOLRGN_H

Generated on Thu Aug 12 06:18:30 2004 for TNTsdk by doxygen 1.3.4-20031026