Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef TOOLPOINTHANDLE_H
  8. #define TOOLPOINTHANDLE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "ToolInterface.h"
  13. class CMapPointHandle;
  14. class CToolPointHandle : public CBaseTool
  15. {
  16. public:
  17. CToolPointHandle(void);
  18. void Attach(CMapPointHandle *pPoint);
  19. void CenterOnParent(CMapView *pView);
  20. //
  21. // CBaseTool implementation.
  22. //
  23. virtual ToolID_t GetToolID(void) { return TOOL_POINT_HANDLE; }
  24. virtual bool OnLMouseDown2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  25. virtual bool OnLMouseUp2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  26. virtual bool OnMouseMove2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  27. virtual bool OnContextMenu2D(CMapView2D *pView, UINT nFlags, const Vector2D &vPoint);
  28. virtual void RenderTool2D(CRender2D *pRender);
  29. //virtual void RenderTool3D(CRender3D *pRender);
  30. private:
  31. CMapPointHandle *m_pPoint;
  32. };
  33. #endif // TOOLPOINTHANDLE_H