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.

55 lines
1.1 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: Implements all the functions exported by the GameUI dll
  4. //
  5. // $NoKeywords: $
  6. //===========================================================================//
  7. #ifdef COMPILER_MSVC
  8. #pragma once
  9. #endif
  10. #include "vgui/vgui.h"
  11. #include "tier3/tier3.h"
  12. namespace vgui
  13. {
  14. class Panel;
  15. }
  16. class IMatSystemSurface;
  17. class CVGuiWnd;
  18. FORWARD_DECLARE_HANDLE( InputContextHandle_t );
  19. class CHammerVGui
  20. {
  21. public:
  22. CHammerVGui(void);
  23. ~CHammerVGui(void);
  24. bool Init( HWND hWindow );
  25. void Simulate();
  26. void Shutdown();
  27. bool HasFocus( CVGuiWnd *pWnd );
  28. void SetFocus( CVGuiWnd *pWnd );
  29. bool IsInitialized() { return m_hMainWindow != NULL; };
  30. vgui::HScheme GetHammerScheme() { return m_hHammerScheme; }
  31. protected:
  32. CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus
  33. bool m_bCurrentDialogIsModal; // m_pActiveWindow->IsModal()
  34. HWND m_hMainWindow;
  35. vgui::Panel *m_pDummyPopup;
  36. vgui::HScheme m_hHammerScheme;
  37. InputContextHandle_t m_hVguiInputContext;
  38. };
  39. CHammerVGui *HammerVGui();