#include <C4FullScreen.h>
Public Types | |
enum | WindowKind { W_GuiWindow , W_Console , W_Viewport , W_Fullscreen , W_Control } |
Public Member Functions | |
C4FullScreen () | |
~C4FullScreen () override | |
void | Execute () |
bool | ViewportCheck () |
bool | ShowAbortDlg () |
bool | ActivateMenuMain () |
void | CloseMenu () |
bool | MenuKeyControl (BYTE command) |
C4Window * | Init (C4AbstractApp *application) |
void | Close () override |
void | Clear () override |
void | CharIn (const char *c) override |
void | PerformUpdate () override |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
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 | |
C4MainMenu * | MainMenu |
bool | Active {false} |
C4Surface * | pSurface {nullptr} |
WindowKind | eKind |
Protected Member Functions | |
virtual C4Window * | Init (WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size) |
Definition at line 27 of file C4FullScreen.h.
|
inherited |
Enumerator | |
---|---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control |
Definition at line 263 of file C4Window.h.
C4FullScreen::C4FullScreen | ( | ) |
|
override |
bool C4FullScreen::ActivateMenuMain | ( | ) |
Definition at line 181 of file C4FullScreen.cpp.
References C4MainMenu::ActivateMain(), CloseMenu(), C4GameOverDlg::IsShown(), MainMenu, and NO_OWNER.
Referenced by C4Game::InitKeyboard().
|
overridevirtual |
Reimplemented from C4Window.
Definition at line 34 of file C4FullScreen.cpp.
References C4GUI::Screen::CharIn(), and pGUI.
|
overridevirtual |
Reimplemented from C4Window.
Definition at line 72 of file C4FullScreen.cpp.
References C4Window::Clear(), and C4Window::pSurface.
Referenced by C4Application::Clear().
|
overridevirtual |
Implements C4Window.
Definition at line 60 of file C4FullScreen.cpp.
References Application, Game, C4Game::IsRunning, C4Application::Quit(), and ShowAbortDlg().
void C4FullScreen::CloseMenu | ( | ) |
Definition at line 195 of file C4FullScreen.cpp.
References C4GUI::Dialog::Close(), C4Menu::IsActive(), and MainMenu.
Referenced by ActivateMenuMain(), C4Game::Clear(), C4Game::Init(), C4GameOverDlg::OnShown(), and ViewportCheck().
|
virtualinherited |
Definition at line 105 of file C4AppT.cpp.
Referenced by C4StartupOptionsDlg::C4StartupOptionsDlg().
void C4FullScreen::Execute | ( | ) |
Definition at line 82 of file C4FullScreen.cpp.
References C4Menu::Execute(), MainMenu, and C4Window::RequestUpdate().
Referenced by C4Application::Draw().
|
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(), C4GUI::DialogWindow::PerformUpdate(), and C4Game::PreInit().
|
inherited |
Definition at line 107 of file C4AppT.cpp.
Referenced by C4Application::GameTick().
C4Window * C4FullScreen::Init | ( | C4AbstractApp * | application | ) |
Definition at line 54 of file C4FullScreen.cpp.
References Application, C4Application::GetConfigHeight(), C4Application::GetConfigWidth(), Init(), and C4Window::W_Fullscreen.
Referenced by C4Application::DoInit().
C4Window * C4Window::Init |
Definition at line 322 of file C4AppT.cpp.
Referenced by Init().
|
protectedvirtualinherited |
Definition at line 109 of file C4AppT.cpp.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4ConsoleGUI::CreateConsoleWindow(), C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
bool C4FullScreen::MenuKeyControl | ( | BYTE | command | ) |
Definition at line 213 of file C4FullScreen.cpp.
References C4Menu::KeyControl(), and MainMenu.
Referenced by C4Game::InitKeyboard().
|
overridevirtual |
Reimplemented from C4Window.
Definition at line 208 of file C4FullScreen.cpp.
References C4GraphicsSystem::Execute(), and GraphicsSystem.
|
virtualinherited |
Definition at line 110 of file C4AppT.cpp.
|
virtualinherited |
Definition at line 112 of file C4AppT.cpp.
Referenced by Execute().
|
inherited |
Definition at line 111 of file C4AppT.cpp.
Referenced by C4GUI::DialogWindow::Init(), and C4ViewportWindow::Init().
|
inherited |
Definition at line 113 of file C4AppT.cpp.
Referenced by C4Application::DoInit(), C4GUI::DialogWindow::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().
bool C4FullScreen::ShowAbortDlg | ( | ) |
Definition at line 165 of file C4FullScreen.cpp.
References C4AbortGameDialog::IsShown(), C4GameOverDlg::IsShown(), pGUI, and C4GUI::Screen::ShowRemoveDlg().
Referenced by Close(), C4Game::InitKeyboard(), and C4MainMenu::MenuCommand().
|
inherited |
Definition at line 153 of file C4WindowSDL.cpp.
bool C4FullScreen::ViewportCheck | ( | ) |
Definition at line 93 of file C4FullScreen.cpp.
References C4Window::Active, C4Game::C4S, CloseMenu(), C4ViewportList::CloseViewport(), C4ViewportList::CreateViewport(), C4SHead::Film, C4PlayerList::First, C4GraphicsSystem::FlashMessage(), StdStrBuf::Format(), FormatString(), Game, StdStrBuf::getData(), C4KeyboardInput::GetKeyCodeNameByKeyName(), C4ViewportList::GetViewport(), C4ViewportList::GetViewportCount(), GraphicsSystem, C4Scenario::Head, C4Viewport::Init(), C4MouseControl::Init(), C4Game::KeyboardInput, LoadResStr(), MouseControl, NO_OWNER, C4ScriptGuiWindowPropertyName::player, Players, C4SHead::Replay, and Viewports.
Referenced by C4Game::InitGameFinal(), C4Game::JoinPlayer(), and C4PlayerList::Remove().
|
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 ViewportCheck().
|
inherited |
Definition at line 276 of file C4Window.h.
C4MainMenu* C4FullScreen::MainMenu |
Definition at line 30 of file C4FullScreen.h.
Referenced by ActivateMenuMain(), C4FullScreen(), CloseMenu(), C4Game::DoKeyboardInput(), C4Viewport::DrawMenu(), Execute(), C4Viewport::IsViewportMenu(), MenuKeyControl(), and ~C4FullScreen().
|
inherited |
Definition at line 275 of file C4Window.h.
Referenced by C4ConsoleGUIPreviewWindow::C4ConsoleGUIPreviewWindow(), C4Console::Clear(), 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().