#include <C4Gui.h>
Public Types | |
enum | WindowKind { W_GuiWindow , W_Console , W_Viewport , W_Fullscreen , W_Control } |
Public Member Functions | |
DialogWindow () | |
C4Window * | Init (C4AbstractApp *pApp, const char *Title, const C4Rect &rcBounds, const char *szID) |
void | Close () override |
void | PerformUpdate () override |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
virtual void | Clear () |
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 () |
Public Attributes | |
Dialog * | pDialog {nullptr} |
bool | Active {false} |
C4Surface * | pSurface {nullptr} |
WindowKind | eKind |
Protected Member Functions | |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
|
inherited |
Enumerator | |
---|---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control |
Definition at line 263 of file C4Window.h.
|
inlinevirtualinherited |
|
virtualinherited |
Reimplemented in C4FullScreen, and C4Console.
Definition at line 102 of file C4AppT.cpp.
Referenced by C4Console::Clear(), C4FullScreen::Clear(), C4GUI::Dialog::DestroyConsoleWindow(), and C4Window::~C4Window().
|
overridevirtual |
Implements C4Window.
Definition at line 234 of file C4GuiDialogs.cpp.
|
virtualinherited |
Definition at line 105 of file C4AppT.cpp.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().
|
inherited |
Definition at line 75 of file C4AppMac.mm.
Referenced by C4AbstractApp::NotifyUserIfInactive().
|
inherited |
Definition at line 108 of file C4AppT.cpp.
Referenced by C4Application::OnResolutionChanged(), PerformUpdate(), and C4Game::PreInit().
|
inherited |
Definition at line 107 of file C4AppT.cpp.
Referenced by C4Application::GameTick().
C4Window * C4GUI::DialogWindow::Init | ( | C4AbstractApp * | pApp, |
const char * | Title, | ||
const C4Rect & | rcBounds, | ||
const char * | szID | ||
) |
Definition at line 199 of file C4GuiDialogs.cpp.
References Config, FormatString(), C4Config::GetSubkeyPath(), C4Rect::Hgt, C4Window::Init(), C4Window::RestorePosition(), C4Window::SetSize(), C4Window::W_GuiWindow, and C4Rect::Wdt.
Referenced by C4GUI::Dialog::CreateConsoleWindow().
C4Window * C4Window::Init |
Definition at line 322 of file C4AppT.cpp.
|
protectedvirtualinherited |
Definition at line 109 of file C4AppT.cpp.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4ConsoleGUI::CreateConsoleWindow(), Init(), and C4ViewportWindow::Init().
|
overridevirtual |
Reimplemented from C4Window.
Definition at line 214 of file C4GuiDialogs.cpp.
References C4GUI::Dialog::Draw(), C4Window::GetSize(), C4Surface::Hgt, C4Rect::Hgt, pDialog, pGL, CStdGL::PrepareRendering(), C4Window::pSurface, C4TargetFacet::Set(), C4Surface::Wdt, and C4Rect::Wdt.
|
virtualinherited |
Definition at line 110 of file C4AppT.cpp.
|
virtualinherited |
Definition at line 112 of file C4AppT.cpp.
Referenced by C4FullScreen::Execute().
|
inherited |
Definition at line 111 of file C4AppT.cpp.
Referenced by Init(), and C4ViewportWindow::Init().
|
inherited |
Definition at line 113 of file C4AppT.cpp.
Referenced by C4Application::DoInit(), Init(), C4AbstractApp::SetVideoMode(), and C4GUI::Dialog::UpdateSize().
|
inherited |
Definition at line 114 of file C4AppT.cpp.
Referenced by C4Console::CloseGame(), C4Console::SetCaptionToFilename(), and C4GUI::Dialog::SetTitle().
|
inherited |
Definition at line 153 of file C4WindowSDL.cpp.
|
inherited |
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().
|
inherited |
Definition at line 276 of file C4Window.h.
Dialog* C4GUI::DialogWindow::pDialog {nullptr} |
Definition at line 2033 of file C4Gui.h.
Referenced by C4GUI::Dialog::CreateConsoleWindow(), and PerformUpdate().
|
inherited |
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(), PerformUpdate(), C4Application::PreInit(), C4ViewportList::RecalculateViewports(), C4GUI::Screen::Render(), CStdGL::RestoreDeviceObjects(), C4Game::SaveGameTitle(), C4ConsoleGUIPreviewWindow::~C4ConsoleGUIPreviewWindow(), and C4FullScreen::~C4FullScreen().