Team Fortress 2 Source Code as on 22/4/2020
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.

34 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef TF_MOUSEFORWARDINGPANEL_H
  8. #define TF_MOUSEFORWARDINGPANEL_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include <vgui_controls/EditablePanel.h>
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Invisible panel that forwards up mouse movement
  15. //-----------------------------------------------------------------------------
  16. class CMouseMessageForwardingPanel : public vgui::EditablePanel
  17. {
  18. DECLARE_CLASS_SIMPLE( CMouseMessageForwardingPanel, vgui::EditablePanel );
  19. public:
  20. CMouseMessageForwardingPanel( Panel *parent, const char *name );
  21. virtual void PerformLayout( void );
  22. virtual void OnCursorEntered();
  23. virtual void OnCursorExited();
  24. virtual void OnMousePressed( vgui::MouseCode code );
  25. virtual void OnMouseReleased( vgui::MouseCode code );
  26. virtual void OnMouseDoublePressed( vgui::MouseCode code );
  27. virtual void OnMouseWheeled(int delta);
  28. };
  29. #endif // TF_MOUSEFORWARDINGPANEL_H