00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef INC_MGUI_TOOLSELP_H
00022 #define INC_MGUI_TOOLSELP_H
00023
00024 #ifndef INC_MGUI_TOOLBASE_H
00025 #include <mgui/toolbase.h>
00026 #endif
00027
00028 namespace MGUI {
00029
00030
00031
00032
00033 class TOOL_SELECTPOINT : public TOOL_LIMITED {
00034 public:
00035
00036
00037 explicit TOOL_SELECTPOINT (
00038 TOOLCANVAS *canvas
00039 );
00040
00041
00042 virtual ~TOOL_SELECTPOINT ();
00043
00044
00045 const DPOINT2D& GetPoint (
00046 ) const { return (m_point); }
00047
00048 private:
00049 #ifndef GENERATING_DOXYGEN_OUTPUT
00050
00051 enum ZONE {
00052 ZONE_NoFunction = 0,
00053 ZONE_Outside,
00054 };
00055
00056 class CONTROLFORM : public MGUI::CTRL {
00057 public:
00058 CONTROLFORM (
00059 );
00060 virtual ~CONTROLFORM (
00061 );
00062 private:
00063 };
00064
00065
00066 DPOINT2D m_point;
00067
00068
00069 ZONE m_CursorZone;
00070
00071
00072 void ComputeCursorZone (const DPOINT2D&);
00073 void UpdateCursor () const;
00074
00075
00076 virtual void v_DoDraw (MGD::CONTEXT*);
00077 virtual void v_DoMove (double dx, double dy, ADJUSTFLAGS flags);
00078 virtual void v_OnLButtonDown (MGUI::POINT point, KEYSTATE keystate);
00079 virtual void v_OnMouseMove (MGUI::POINT point, KEYSTATE keystate);
00080 #endif // GENERATING_DOXYGEN_OUTPUT
00081 };
00082
00083
00084 }
00085
00086
00087 #endif // INC_MGUI_TOOLSELP_H