forked from perilouswithadollarsign/cstrike15_src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHammerVGui.h
56 lines (39 loc) · 1.08 KB
/
HammerVGui.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//===== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======//
//
// Purpose: Implements all the functions exported by the GameUI dll
//
// $NoKeywords: $
//===========================================================================//
#ifdef COMPILER_MSVC
#pragma once
#endif
#include "vgui/vgui.h"
#include "tier3/tier3.h"
namespace vgui
{
class Panel;
}
class IMatSystemSurface;
class CVGuiWnd;
FORWARD_DECLARE_HANDLE( InputContextHandle_t );
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; };
vgui::HScheme GetHammerScheme() { return m_hHammerScheme; }
protected:
CVGuiWnd *m_pActiveWindow; // the VGUI window that has the focus
bool m_bCurrentDialogIsModal; // m_pActiveWindow->IsModal()
HWND m_hMainWindow;
vgui::Panel *m_pDummyPopup;
vgui::HScheme m_hHammerScheme;
InputContextHandle_t m_hVguiInputContext;
};
CHammerVGui *HammerVGui();