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
750 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Implements all the functions exported by the GameUI dll
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #pragma once
  8. class IMatSystemSurface;
  9. class CVGuiWnd;
  10. extern IMatSystemSurface *g_pMatSystemSurface;
  11. class CHammerVGui
  12. {
  13. public:
  14. CHammerVGui(void);
  15. ~CHammerVGui(void);
  16. bool Init( HWND hWindow );
  17. void Simulate();
  18. void Shutdown();
  19. bool HasFocus( CVGuiWnd *pWnd );
  20. void SetFocus( CVGuiWnd *pWnd );
  21. bool IsInitialized() { return m_hMainWindow != NULL; };
  22. protected:
  23. HWND m_hMainWindow;
  24. CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus
  25. };
  26. CHammerVGui *HammerVGui();