#include <C4Window.h>
Public Types | |
enum | WindowKind { W_GuiWindow , W_Console , W_Viewport , W_Fullscreen , W_Control } |
Public Member Functions | |
C4Window () | |
virtual | ~C4Window () |
virtual void | Clear () |
virtual void | Close ()=0 |
virtual void | CharIn (const char *) |
virtual bool | ReInit (C4AbstractApp *pApp) |
virtual void | EnumerateMultiSamples (std::vector< int > &samples, int min_expected=0) const |
bool | StorePosition (const char *szWindowName, const char *szSubKey, bool fStoreSize=true) |
bool | RestorePosition (const char *szWindowName, const char *szSubKey, bool fHidden=false) |
bool | GetSize (C4Rect *pRect) |
void | SetSize (unsigned int cx, unsigned int cy) |
void | SetTitle (const char *Title) |
void | FlashWindow () |
void | GrabMouse (bool grab) |
virtual void | RequestUpdate () |
virtual void | PerformUpdate () |
Public Attributes | |
bool | Active {false} |
C4Surface * | pSurface {nullptr} |
WindowKind | eKind |
Protected Member Functions | |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
Friends | |
class | C4Draw |
class | CStdGL |
class | CStdGLCtx |
class | C4AbstractApp |
Definition at line 257 of file C4Window.h.
enum C4Window::WindowKind |
Enumerator | |
---|---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control |
Definition at line 263 of file C4Window.h.
|
default |
Definition at line 38 of file C4WindowSDL.cpp.
|
virtualdefault |
Definition at line 46 of file C4WindowSDL.cpp.
References Clear().
|
inlinevirtual |
|
virtual |
Reimplemented in C4FullScreen, and C4Console.
Definition at line 102 of file C4AppT.cpp.
Referenced by C4Console::Clear(), C4FullScreen::Clear(), C4GUI::Dialog::DestroyConsoleWindow(), and ~C4Window().
|
pure virtual |
Implemented in C4GUI::DialogWindow, C4FullScreen, C4ViewportWindow, C4ConsoleGUIPreviewWindow, and C4Console.
|
virtual |
Definition at line 105 of file C4AppT.cpp.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().
void C4Window::FlashWindow | ( | ) |
Definition at line 75 of file C4AppMac.mm.
Referenced by C4AbstractApp::NotifyUserIfInactive().
bool C4Window::GetSize | ( | C4Rect * | pRect | ) |
Definition at line 108 of file C4AppT.cpp.
Referenced by C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), and C4Game::PreInit().
void C4Window::GrabMouse | ( | bool | grab | ) |
Definition at line 107 of file C4AppT.cpp.
Referenced by C4Application::GameTick().
|
protectedvirtual |
Definition at line 109 of file C4AppT.cpp.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4ConsoleGUI::CreateConsoleWindow(), C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
|
virtual |
Reimplemented in C4GUI::DialogWindow, C4FullScreen, and C4ViewportWindow.
|
virtual |
Definition at line 110 of file C4AppT.cpp.
|
virtual |
Definition at line 112 of file C4AppT.cpp.
Referenced by C4FullScreen::Execute().
bool C4Window::RestorePosition | ( | const char * | szWindowName, |
const char * | szSubKey, | ||
bool | fHidden = false |
||
) |
Definition at line 111 of file C4AppT.cpp.
Referenced by C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
void C4Window::SetSize | ( | unsigned int | cx, |
unsigned int | cy | ||
) |
Definition at line 113 of file C4AppT.cpp.
Referenced by C4Application::DoInit(), C4GUI::DialogWindow::Init(), C4AbstractApp::SetVideoMode(), and C4GUI::Dialog::UpdateSize().
void C4Window::SetTitle | ( | const char * | Title | ) |
Definition at line 114 of file C4AppT.cpp.
Referenced by C4Console::CloseGame(), C4Console::SetCaptionToFilename(), and C4GUI::Dialog::SetTitle().
bool C4Window::StorePosition | ( | const char * | szWindowName, |
const char * | szSubKey, | ||
bool | fStoreSize = true |
||
) |
Definition at line 153 of file C4WindowSDL.cpp.
|
friend |
Definition at line 326 of file C4Window.h.
|
friend |
Definition at line 323 of file C4Window.h.
|
friend |
Definition at line 324 of file C4Window.h.
|
friend |
Definition at line 325 of file C4Window.h.
bool C4Window::Active {false} |
Definition at line 274 of file C4Window.h.
Referenced by AddMenuItem(), C4Console::C4Console(), C4Console::ClearNetMenu(), C4Console::ClearViewportMenu(), C4Console::CloseGame(), ConsoleDlgProc(), C4Game::DoKeyboardInput(), C4Network2::DoLobby(), C4ConsoleGUI::EnableControls(), C4Console::In(), C4Console::InitGame(), C4Game::InitPlayers(), C4Console::Message(), C4Game::OnResolutionChanged(), C4PlayerInfoList::RestoreSavegameInfos(), C4Network2::RetrieveRes(), C4Console::SaveScenario(), C4GraphicsSystem::ToggleShow8BitSurface(), C4GraphicsSystem::ToggleShowAction(), C4GraphicsSystem::ToggleShowVertices(), C4ConsoleGUI::UpdateHaltCtrls(), C4Console::UpdateMenus(), C4ConsoleGUI::State::UpdateMenuText(), C4Console::UpdateNetMenu(), C4Console::UpdatePlayerMenu(), C4Console::UpdateStatusBars(), C4Console::UpdateViewportMenu(), and C4FullScreen::ViewportCheck().
WindowKind C4Window::eKind |
Definition at line 276 of file C4Window.h.
C4Surface* C4Window::pSurface {nullptr} |
Definition at line 275 of file C4Window.h.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4Console::Clear(), C4FullScreen::Clear(), C4GUI::Dialog::CreateConsoleWindow(), C4GUI::Dialog::DestroyConsoleWindow(), C4GraphicsSystem::DoSaveScreenshot(), C4GUI::Dialog::Draw(), C4ViewportList::DrawFullscreenBackground(), C4Viewport::Execute(), C4GraphicsSystem::FinishDrawing(), C4Draw::Init(), C4ViewportWindow::Init(), C4Game::InitFullscreenComponents(), C4MessageBoard::LogNotify(), C4Application::OnResolutionChanged(), C4GUI::DialogWindow::PerformUpdate(), C4Application::PreInit(), C4ViewportList::RecalculateViewports(), C4GUI::Screen::Render(), CStdGL::RestoreDeviceObjects(), C4Game::SaveGameTitle(), C4ConsoleGUIPreviewWindow::~C4ConsoleGUIPreviewWindow(), and C4FullScreen::~C4FullScreen().