#include <C4ViewportWindow.h>
|
| C4ViewportWindow (C4Viewport *cvp) |
|
void | EditCursorMove (int X, int Y, uint32_t) |
|
C4Window * | Init (int32_t iPlayer) |
|
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 () |
|
Definition at line 32 of file C4ViewportWindow.h.
◆ WindowKind
Enumerator |
---|
W_GuiWindow | |
W_Console | |
W_Viewport | |
W_Fullscreen | |
W_Control | |
Definition at line 263 of file C4Window.h.
◆ C4ViewportWindow()
C4ViewportWindow::C4ViewportWindow |
( |
C4Viewport * |
cvp | ) |
|
|
inline |
◆ CharIn()
virtual void C4Window::CharIn |
( |
const char * |
| ) |
|
|
inlinevirtualinherited |
◆ Clear()
◆ Close()
void C4ViewportWindow::Close |
( |
| ) |
|
|
overridevirtual |
◆ EditCursorMove()
void C4ViewportWindow::EditCursorMove |
( |
int |
X, |
|
|
int |
Y, |
|
|
uint32_t |
state |
|
) |
| |
Definition at line 154 of file C4ViewportWindow.cpp.
bool Move(float iX, float iY, float zoom, DWORD dwKeyState)
float WindowToGameX(int32_t win_x)
float WindowToGameY(int32_t win_y)
References Console, cvp, C4Console::EditCursor, C4Viewport::GetZoom(), C4EditCursor::Move(), C4Viewport::WindowToGameX(), C4Viewport::WindowToGameY(), and X.
◆ EnumerateMultiSamples()
void C4Window::EnumerateMultiSamples |
( |
std::vector< int > & |
samples, |
|
|
int |
min_expected = 0 |
|
) |
| const |
|
virtualinherited |
◆ FlashWindow()
void C4Window::FlashWindow |
( |
| ) |
|
|
inherited |
◆ GetSize()
bool C4Window::GetSize |
( |
C4Rect * |
pRect | ) |
|
|
inherited |
◆ GrabMouse()
void C4Window::GrabMouse |
( |
bool |
grab | ) |
|
|
inherited |
◆ Init() [1/3]
C4Window * C4ViewportWindow::Init |
( |
int32_t |
iPlayer | ) |
|
Definition at line 133 of file C4ViewportWindow.cpp.
140 if (!result)
return result;
143 #ifndef WITH_QT_EDITOR
C4Application Application
const char * LoadResStr(const char *id)
StdStrBuf FormatString(const char *szFmt,...)
const char * GetSubkeyPath(const char *subkey)
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
bool RestorePosition(const char *szWindowName, const char *szSubKey, bool fHidden=false)
References Application, Config, FormatString(), C4PlayerList::Get(), C4Player::GetName(), C4Config::GetSubkeyPath(), C4Window::Init(), LoadResStr(), NO_OWNER, Players, C4Window::pSurface, C4Window::RestorePosition(), and C4Window::W_Viewport.
◆ Init() [2/3]
◆ Init() [3/3]
|
protectedvirtualinherited |
◆ PerformUpdate()
void C4ViewportWindow::PerformUpdate |
( |
| ) |
|
|
overridevirtual |
◆ ReInit()
◆ RequestUpdate()
void C4Window::RequestUpdate |
( |
| ) |
|
|
virtualinherited |
◆ RestorePosition()
bool C4Window::RestorePosition |
( |
const char * |
szWindowName, |
|
|
const char * |
szSubKey, |
|
|
bool |
fHidden = false |
|
) |
| |
|
inherited |
◆ SetSize()
void C4Window::SetSize |
( |
unsigned int |
cx, |
|
|
unsigned int |
cy |
|
) |
| |
|
inherited |
◆ SetTitle()
void C4Window::SetTitle |
( |
const char * |
Title | ) |
|
|
inherited |
◆ StorePosition()
bool C4Window::StorePosition |
( |
const char * |
szWindowName, |
|
|
const char * |
szSubKey, |
|
|
bool |
fStoreSize = true |
|
) |
| |
|
inherited |
◆ Active
bool C4Window::Active {false} |
|
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().
◆ cvp
◆ eKind
◆ pSurface
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(), 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().
The documentation for this class was generated from the following files: