OpenBarnyard
 
Loading...
Searching...
No Matches
TDebugConsole_Win.h
Go to the documentation of this file.
1#pragma once
2
3#include <windows.h>
4
6
7constexpr const TCHAR* TDebugConsoleUUID = "{1B5D8052-529A-4c88-9DDE-EE523D440B00}";
8
10{
11public:
14
15 TBOOL Show( TBOOL state );
16 TBOOL Toggle();
17
18 // Returns TTRUE if the console is visible
19 TBOOL IsVisible() const { return m_Visible; }
20
21 // Returns TTRUE if the console is created
22 TBOOL IsCreated() const { return m_Created; }
23
24 // Tries to find handle of the debug console
25 HWND FindConsole() const;
26
27private:
28 // Gets called after logging system printed something to a log file
29 static TBOOL __stdcall OnLog( TDebugConsole* a_pCaller, TUtil* a_pOwner, TUtil::LogEvent* pLogEvent );
30
31private:
32 TBOOL m_Visible = TFALSE;
33 TBOOL m_Created = TFALSE;
34 HWND m_HWND;
36};
37
TOSHI_NAMESPACE_START constexpr const TCHAR * TDebugConsoleUUID
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
char TCHAR
Definition Typedefs.h:20
#define TFALSE
Definition Typedefs.h:24
bool TBOOL
Definition Typedefs.h:6
TBOOL Show(TBOOL state)
TBOOL IsVisible() const
TBOOL IsCreated() const
HWND FindConsole() const
Definition TUtil.h:14