summaryrefslogtreecommitdiff
path: root/hammer/HammerVGui.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /hammer/HammerVGui.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'hammer/HammerVGui.h')
-rw-r--r--hammer/HammerVGui.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/hammer/HammerVGui.h b/hammer/HammerVGui.h
new file mode 100644
index 0000000..ade889e
--- /dev/null
+++ b/hammer/HammerVGui.h
@@ -0,0 +1,35 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Implements all the functions exported by the GameUI dll
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#pragma once
+
+class IMatSystemSurface;
+class CVGuiWnd;
+
+extern IMatSystemSurface *g_pMatSystemSurface;
+
+class CHammerVGui
+{
+public:
+ CHammerVGui(void);
+ ~CHammerVGui(void);
+
+ bool Init( HWND hWindow );
+ void Simulate();
+ void Shutdown();
+ bool HasFocus( CVGuiWnd *pWnd );
+ void SetFocus( CVGuiWnd *pWnd );
+ bool IsInitialized() { return m_hMainWindow != NULL; };
+
+
+protected:
+
+ HWND m_hMainWindow;
+ CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus
+};
+
+CHammerVGui *HammerVGui(); \ No newline at end of file