22#ifndef INCLUDED_CCONSOLE
23#define INCLUDED_CCONSOLE
61 void Update(
const float deltaRealTime);
65 void InsertChar(
const int szChar,
const wchar_t cooked);
InReaction conInputHandler(const SDL_Event_ *ev)
Definition: CConsole.cpp:667
CConsole * g_Console
Definition: CConsole.cpp:58
Definition: Canvas2D.h:36
In-game console.
Definition: CConsole.h:44
VfsPath m_HistoryFile
Definition: CConsole.h:104
void FlushBuffer()
Definition: CConsole.cpp:160
bool IsActive() const
Definition: CConsole.h:75
int m_FontOffset
Definition: CConsole.h:83
float m_Y
Definition: CConsole.h:87
void ToggleVisible()
Definition: CConsole.cpp:133
int m_BufferPos
Definition: CConsole.h:101
bool IsEmpty() const
Definition: CConsole.cpp:344
void UpdateScreenSize(int w, int h)
Definition: CConsole.cpp:108
void DrawHistory(CTextRenderer &textRenderer)
Definition: CConsole.cpp:243
int m_MaxHistoryLines
Definition: CConsole.h:105
bool m_Toggle
Definition: CConsole.h:108
int m_FontHeight
Definition: CConsole.h:81
void Update(const float deltaRealTime)
Definition: CConsole.cpp:167
bool IsBOB() const
Definition: CConsole.cpp:334
const wchar_t * GetBuffer()
Definition: CConsole.cpp:557
void LoadHistory()
Definition: CConsole.cpp:596
void DrawBuffer(CTextRenderer &textRenderer)
Definition: CConsole.cpp:271
void SetVisible(bool visible)
Definition: CConsole.cpp:148
std::mutex m_Mutex
Definition: CConsole.h:79
std::deque< std::wstring > m_BufHistory
Definition: CConsole.h:96
std::deque< std::wstring > m_MsgHistory
Definition: CConsole.h:95
float m_Height
Definition: CConsole.h:88
void DrawCursor(CTextRenderer &textRenderer)
Definition: CConsole.cpp:298
float m_X
Definition: CConsole.h:86
bool IsEOB() const
Definition: CConsole.cpp:329
std::unique_ptr< wchar_t[]> m_Buffer
Definition: CConsole.h:100
void SaveHistory()
Definition: CConsole.cpp:627
void DrawWindow(CCanvas2D &canvas)
Definition: CConsole.cpp:215
CConsole()
Definition: CConsole.cpp:60
int m_FontWidth
Definition: CConsole.h:82
size_t m_CharsPerPage
Definition: CConsole.h:84
void InsertChar(const int szChar, const wchar_t cooked)
Definition: CConsole.cpp:350
bool IsFull() const
Definition: CConsole.cpp:339
void Init()
Definition: CConsole.cpp:85
bool m_Visible
Definition: CConsole.h:107
bool m_QuitHotkeyWasShown
Definition: CConsole.h:111
double m_PrevTime
Definition: CConsole.h:109
int m_MsgHistPos
Definition: CConsole.h:98
void InsertMessage(const std::string &message)
Definition: CConsole.cpp:515
void ProcessBuffer(const wchar_t *szLine)
Definition: CConsole.cpp:575
double m_CursorBlinkRate
Definition: CConsole.h:112
float m_Width
Definition: CConsole.h:89
bool m_CursorVisState
Definition: CConsole.h:110
void SetBuffer(const wchar_t *szMessage)
Definition: CConsole.cpp:563
void Render(CCanvas2D &canvas)
Definition: CConsole.cpp:194
float m_VisibleFrac
Definition: CConsole.h:93
int m_BufferLength
Definition: CConsole.h:102
void ShowQuitHotkeys()
Definition: CConsole.cpp:117
Definition: TextRenderer.h:34