#include <C4Viewport.h>
Public Member Functions | |
| C4Viewport () | |
| ~C4Viewport () | |
| float | GetZoom () |
| void | SetZoom (float zoom_value) |
| float | GetGUIZoom () const |
| void | Execute () |
| void | ClearPointers (C4Object *obj) |
| void | SetOutputSize (int32_t draw_x, int32_t draw_y, int32_t out_x, int32_t out_y, int32_t out_wdt, int32_t out_hgt) |
| void | CalculateZoom () |
| void | ChangeZoom (float by_factor) |
| void | SetZoom (float to_zoom, bool direct=false) |
| void | SetZoomLimits (float to_min_zoom, float to_max_zoom) |
| float | GetZoomByViewRange (int32_t size_x, int32_t size_y) const |
| float | GetZoomLimitMin () const |
| float | GetZoomLimitMax () const |
| float | GetZoomTarget () const |
| bool | Init (int32_t for_player, bool set_temporary_only) |
| void | DropFile (const char *filename, float x, float y) |
| bool | TogglePlayerLock () |
| bool | GetPlayerLock () |
| void | NextPlayer () |
| C4Rect | GetOutputRect () |
| bool | IsViewportMenu (class C4Menu *menu) |
| C4Viewport * | GetNext () |
| int32_t | GetPlayer () |
| void | CenterPosition () |
| void | DisableFoW () |
| void | EnableFoW () |
| float | GetViewX () |
| float | GetViewY () |
| float | GetViewCenterX () |
| float | GetViewCenterY () |
| float | WindowToGameX (int32_t win_x) |
| float | WindowToGameY (int32_t win_y) |
| void | ScrollView (float by_x, float by_y) |
| void | SetViewX (float x) |
| void | SetViewY (float y) |
| void | SetViewOffset (int32_t x, int32_t y) |
| float | GetZoom () const |
| void | AdjustPosition (bool immediate=false) |
| C4ViewportWindow * | GetWindow () |
| bool | UpdateOutputSize (int32_t new_width=0, int32_t new_height=0) |
| bool | ViewPositionByScrollBars () |
| bool | ScrollBarsByViewPosition () |
Public Attributes | |
| int32_t | ViewWdt |
| int32_t | ViewHgt |
| float | BorderLeft |
| float | BorderTop |
| float | BorderRight |
| float | BorderBottom |
| int32_t | DrawX |
| int32_t | DrawY |
| C4TargetFacet | last_game_draw_cgo |
| C4TargetFacet | last_gui_draw_cgo |
| bool | fIsNoOwnerViewport |
Protected Member Functions | |
| void | DrawPlayerStartup (C4TargetFacet &cgo) |
| void | Draw (C4TargetFacet &cgo, bool draw_game, bool draw_overlay) |
| void | DrawOverlay (C4TargetFacet &cgo, const ZoomData &GameZoom) |
| void | DrawMenu (C4TargetFacet &cgo) |
| void | DrawPlayerInfo (C4TargetFacet &cgo) |
| void | InitZoom () |
| void | BlitOutput () |
| void | AdjustZoomAndPosition () |
Protected Attributes | |
| float | Zoom |
| float | ZoomTarget |
| float | ZoomLimitMin |
| float | ZoomLimitMax |
| int32_t | ViewportOpenFrame |
| int32_t | Player |
| bool | PlayerLock |
| int32_t | OutX |
| int32_t | OutY |
| bool | ResetMenuPositions |
| C4Viewport * | Next |
| std::unique_ptr< C4ViewportWindow > | pWindow |
| std::unique_ptr< C4FoWRegion > | pFoW |
Friends | |
| class | C4MouseControl |
| class | C4ViewportWindow |
| class | C4ViewportList |
| class | C4GraphicsSystem |
| class | C4ConsoleQtViewportView |
Definition at line 29 of file C4Viewport.h.
| C4Viewport::C4Viewport | ( | ) |
Definition at line 102 of file C4Viewport.cpp.
References BorderBottom, BorderLeft, BorderRight, BorderTop, DrawX, DrawY, fIsNoOwnerViewport, Next, OutX, OutY, Player, PlayerLock, ResetMenuPositions, ViewHgt, ViewportOpenFrame, ViewWdt, Zoom, ZoomLimitMax, ZoomLimitMin, and ZoomTarget.
| C4Viewport::~C4Viewport | ( | ) |
Definition at line 122 of file C4Viewport.cpp.
References DisableFoW(), and pWindow.
| void C4Viewport::AdjustPosition | ( | bool | immediate = false | ) |
Definition at line 653 of file C4Viewport.cpp.
References C4PVM_Scrolling, C4ViewportScrollBorder, Clamp(), Config, C4Config::Controls, fIsNoOwnerViewport, fixtof(), C4Config::General, C4PlayerList::Get(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), C4MouseControl::InitCentered, Landscape, C4ConfigControls::MouseAutoScroll, MouseControl, Player, C4ScriptGuiWindowPropertyName::player, PlayerLock, Players, C4ConfigGeneral::ScrollSmooth, ScrollView(), SetViewX(), SetViewY(), ValidPlr(), ViewHgt, ViewWdt, C4MouseControl::VpX, C4MouseControl::VpY, Zoom, and ZoomTarget.
Referenced by AdjustZoomAndPosition(), and C4Player::SetViewMode().
|
protected |
Definition at line 599 of file C4Viewport.cpp.
References AdjustPosition(), C4GFX_ZoomStep, CalculateZoom(), ViewHgt, ViewWdt, Zoom, and ZoomTarget.
Referenced by Execute().
|
protected |
Definition at line 432 of file C4Viewport.cpp.
References DrawX, DrawY, C4Rect::Hgt, OutX, OutY, pWindow, ViewHgt, ViewWdt, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by Execute().
| void C4Viewport::CalculateZoom | ( | ) |
Definition at line 481 of file C4Viewport.cpp.
References C4Game::FrameCounter, Game, C4PlayerList::Get(), C4Landscape::GetHeight(), C4Landscape::GetWidth(), InitZoom(), Landscape, Player, C4ScriptGuiWindowPropertyName::player, Players, SetZoomLimits(), ViewHgt, ViewportOpenFrame, and ViewWdt.
Referenced by AdjustZoomAndPosition(), and SetOutputSize().
| void C4Viewport::CenterPosition | ( | ) |
Definition at line 755 of file C4Viewport.cpp.
References C4Landscape::GetHeight(), C4Landscape::GetWidth(), Landscape, SetViewX(), SetViewY(), ViewHgt, ViewWdt, and Zoom.
Referenced by C4ViewportList::CreateViewport().
| void C4Viewport::ChangeZoom | ( | float | by_factor | ) |
Definition at line 519 of file C4Viewport.cpp.
References ZoomLimitMax, ZoomLimitMin, and ZoomTarget.
Referenced by SetZoomLimits().
| void C4Viewport::ClearPointers | ( | C4Object * | obj | ) |
Definition at line 957 of file C4Viewport.cpp.
| void C4Viewport::DisableFoW | ( | ) |
Definition at line 829 of file C4Viewport.cpp.
References pFoW.
Referenced by EnableFoW(), and ~C4Viewport().
|
protected |
Definition at line 235 of file C4Viewport.cpp.
References Application, C4Draw::BlitSurfaceTile(), BorderBottom, BorderLeft, BorderRight, BorderTop, C4D_Foreground, C4Game::C4S, C4ST_STARTNEW, C4ST_STOP, Console, C4EditCursor::Draw(), C4PathFinder::Draw(), C4PXSSystem::Draw(), C4Sky::Draw(), C4Landscape::Draw(), C4ObjectList::Draw(), C4GameMessageList::Draw(), C4Draw::DrawBoxDw(), C4Game::DrawCrewOverheadText(), C4ParticleSystem::DrawGlobalParticles(), C4ObjectList::DrawIfCategory(), DrawOverlay(), C4Network2::DrawStatus(), DrawX, DrawY, C4Console::EditCursor, C4GraphicsResource::fctBackground, C4SHead::Film, C4GameObjects::ForeObjects, Game, C4PlayerList::Get(), GetGUIZoom(), C4Landscape::GetSky(), GetViewX(), GetViewY(), GraphicsResource, GraphicsSystem, C4Scenario::Head, C4Facet::Hgt, C4Rect::Hgt, C4Application::isEditor, Landscape, last_game_draw_cgo, last_gui_draw_cgo, Messages, Network, C4Draw::NoPrimaryClipper(), Objects, Particles, C4Game::PathFinder, pDraw, pFoW, Player, C4ScriptGuiWindowPropertyName::player, Players, PXS, C4FoWRegion::Render(), C4SHead::Replay, C4Game::ScriptGuiRoot, C4TargetFacet::Set(), C4Draw::SetFoW(), C4Draw::SetPrimaryClipper(), C4Draw::SetZoom(), C4GraphicsSystem::ShowLights, C4GraphicsSystem::ShowNetstatus, C4GraphicsSystem::ShowPathfinder, C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4FoWRegion::Update(), ViewHgt, ViewWdt, C4Facet::Wdt, C4Rect::Wdt, ZoomData::X, C4Facet::X, C4Rect::x, ZoomData::Y, C4Facet::Y, C4Rect::y, Zoom, ZoomData::Zoom, and C4TargetFacet::Zoom.
Referenced by C4GraphicsSystem::DoSaveScreenshot(), and Execute().
|
protected |
Definition at line 163 of file C4Viewport.cpp.
References ACenter, C4Draw::ActivateBlitModulation(), C4Draw::DeactivateBlitModulation(), C4Menu::Draw(), C4GraphicsResource::FontRegular, FormatString(), FullScreen, C4PlayerList::Get(), StdStrBuf::getData(), GraphicsResource, C4Facet::Hgt, C4Menu::IsActive(), C4MouseControl::IsDragging(), C4MouseControl::IsViewport(), LoadResStr(), C4FullScreen::MainMenu, MouseControl, pDraw, Player, C4ScriptGuiWindowPropertyName::player, Players, C4Menu::ResetLocation(), ResetMenuPositions, C4TargetFacet::Set(), C4Draw::SetZoom(), C4Facet::Surface, C4TargetFacet::TargetX, C4TargetFacet::TargetY, C4Draw::TextOut(), C4Facet::Wdt, C4Facet::X, C4Facet::Y, and C4TargetFacet::Zoom.
Referenced by DrawOverlay().
|
protected |
Definition at line 132 of file C4Viewport.cpp.
References C4Game::C4S, C4ST_STARTNEW, C4ST_STOP, C4MouseControl::Draw(), DrawMenu(), DrawPlayerInfo(), C4SHead::Film, Game, C4Scenario::Head, C4MouseControl::IsViewport(), MouseControl, pGUI, pWindow, C4GUI::Screen::RenderMouse(), and C4SHead::Replay.
Referenced by Draw().
|
protected |
Definition at line 775 of file C4Viewport.cpp.
References DrawPlayerStartup(), Player, and ValidPlr().
Referenced by DrawOverlay().
|
protected |
Definition at line 848 of file C4Viewport.cpp.
References ACenter, C4Facet::Draw(), DrawMessageOffset, C4GraphicsResource::FontRegular, C4PlayerList::Get(), GfxR, GraphicsResource, C4Facet::Hgt, pDraw, Player, C4ScriptGuiWindowPropertyName::player, Players, C4Facet::Surface, C4Draw::TextOut(), C4Facet::Wdt, C4Facet::X, and C4Facet::Y.
Referenced by DrawPlayerInfo().
| void C4Viewport::DropFile | ( | const char * | filename, |
| float | x, | ||
| float | y | ||
| ) |
Definition at line 47 of file C4Viewport.cpp.
References C4Game::DropFile(), Game, GetViewX(), GetViewY(), and Zoom.
| void C4Viewport::EnableFoW | ( | ) |
Definition at line 834 of file C4Viewport.cpp.
References DisableFoW(), C4PlayerList::Get(), C4Landscape::GetFoW(), C4Landscape::HasFoW(), Landscape, NO_OWNER, pFoW, Player, and Players.
Referenced by Init().
| void C4Viewport::Execute | ( | ) |
Definition at line 443 of file C4Viewport.cpp.
References AdjustZoomAndPosition(), Application, BlitOutput(), C4Game::C4S, C4Network2::Clients, C4Game::DebugMode, Draw(), DrawX, DrawY, FullScreen, Game, GameScript, C4PlayerInfoList::GetJoinIssuedPlayerCount(), C4Network2ClientList::GetLocal(), C4Value::getPropList(), GetViewX(), GetViewY(), C4Application::isEditor, C4Network2::isEnabled(), C4Network2Client::isObserver(), C4Scenario::Landscape, Network, NO_OWNER, pDraw, Player, C4Game::PlayerInfos, C4Draw::PrepareRendering(), C4Window::pSurface, C4ScriptUniform::Push(), pWindow, C4GameScriptHost::ScenPropList, C4Draw::scriptUniform, C4SLandscape::Secret, C4TargetFacet::Set(), ViewHgt, ViewWdt, and Zoom.
Referenced by C4ViewportWindow::PerformUpdate().
|
inline |
Definition at line 50 of file C4Viewport.h.
References ViewWdt.
Referenced by Draw(), C4MouseControl::Move(), and C4ScriptGuiWindow::OnMouseIn().
|
inline |
Definition at line 69 of file C4Viewport.h.
References Next.
Referenced by C4Menu::GetViewport().
|
inline |
Definition at line 67 of file C4Viewport.h.
References OutX, OutY, ViewHgt, and ViewWdt.
Referenced by C4GUI::Dialog::ApplyElementOffset(), C4GUI::Dialog::ApplyInvElementOffset(), C4GUI::Screen::MouseInput(), and C4MouseControl::Move().
|
inline |
Definition at line 70 of file C4Viewport.h.
References Player.
Referenced by C4MainMenu::DoRefillInternal().
|
inline |
|
inline |
|
inline |
|
inline |
Return x-position of upper left corner of viewport in landscape coordinates
Definition at line 76 of file C4Viewport.h.
Referenced by Draw(), DropFile(), Execute(), C4MouseControl::Move(), and WindowToGameX().
|
inline |
Return y-position of upper left corner of viewport in landscape coordinates
Definition at line 78 of file C4Viewport.h.
Referenced by Draw(), DropFile(), Execute(), C4MouseControl::Move(), and WindowToGameY().
|
inline |
|
inline |
Definition at line 48 of file C4Viewport.h.
References Zoom.
Referenced by C4ViewportWindow::EditCursorMove().
|
inline |
| float C4Viewport::GetZoomByViewRange | ( | int32_t | size_x, |
| int32_t | size_y | ||
| ) | const |
Definition at line 558 of file C4Viewport.cpp.
References ViewHgt, and ViewWdt.
Referenced by C4Player::ZoomLimitsToViewport(), and C4Player::ZoomToViewport().
|
inline |
|
inline |
|
inline |
| bool C4Viewport::Init | ( | int32_t | for_player, |
| bool | set_temporary_only | ||
| ) |
Definition at line 786 of file C4Viewport.cpp.
References Application, EnableFoW(), fIsNoOwnerViewport, C4GraphicsSystem::FlashMessage(), C4Game::FrameCounter, Game, GraphicsSystem, C4Application::isEditor, NO_OWNER, Player, pWindow, TogglePlayerLock(), UpdateOutputSize(), ValidPlr(), and ViewportOpenFrame.
Referenced by C4ViewportList::CreateViewport(), C4MainMenu::MenuCommand(), NextPlayer(), and C4FullScreen::ViewportCheck().
|
protected |
Definition at line 505 of file C4Viewport.cpp.
References C4PlayerList::Get(), C4Landscape::GetWidth(), Landscape, Player, C4ScriptGuiWindowPropertyName::player, Players, ViewWdt, Zoom, and ZoomTarget.
Referenced by CalculateZoom().
| bool C4Viewport::IsViewportMenu | ( | class C4Menu * | menu | ) |
Definition at line 994 of file C4Viewport.cpp.
References FullScreen, C4PlayerList::Get(), C4Menu::IsActive(), C4FullScreen::MainMenu, Player, C4ScriptGuiWindowPropertyName::player, and Players.
| void C4Viewport::NextPlayer | ( | ) |
Definition at line 962 of file C4Viewport.cpp.
References C4Game::C4S, C4SHead::Film, C4PlayerList::First, Game, C4PlayerList::Get(), C4Scenario::Head, Init(), NO_OWNER, Player, C4ScriptGuiWindowPropertyName::player, Players, and C4SHead::Replay.
Referenced by C4ViewportList::ViewportNextPlayer().
| bool C4Viewport::ScrollBarsByViewPosition | ( | ) |
Definition at line 710 of file C4Console.cpp.
Referenced by UpdateOutputSize().
| void C4Viewport::ScrollView | ( | float | by_x, |
| float | by_y | ||
| ) |
Scroll the viewport by x,y
Definition at line 882 of file C4Viewport.cpp.
References SetViewX(), and SetViewY().
Referenced by AdjustPosition(), C4ViewportList::FreeScroll(), C4MouseControl::ScrollView(), SetOutputSize(), and UpdateOutputSize().
| void C4Viewport::SetOutputSize | ( | int32_t | draw_x, |
| int32_t | draw_y, | ||
| int32_t | out_x, | ||
| int32_t | out_y, | ||
| int32_t | out_wdt, | ||
| int32_t | out_hgt | ||
| ) |
Definition at line 926 of file C4Viewport.cpp.
References CalculateZoom(), DrawX, DrawY, C4PlayerList::Get(), MouseControl, OutX, OutY, pGUI, Player, C4ScriptGuiWindowPropertyName::player, Players, ResetMenuPositions, ScrollView(), C4GUI::Screen::SetPreferredDlgRect(), C4MouseControl::UpdateClip(), ViewHgt, and ViewWdt.
Referenced by C4GraphicsSystem::DoSaveScreenshot(), and C4ViewportList::RecalculateViewports().
|
inline |
Set the view offset of the normal viewport center. Used by C4Script function SetViewOffset.
Definition at line 94 of file C4Viewport.h.
| void C4Viewport::SetViewX | ( | float | x | ) |
Set the view position.
Definition at line 888 of file C4Viewport.cpp.
References Clamp(), fIsNoOwnerViewport, C4Landscape::GetWidth(), Landscape, ViewWdt, and Zoom.
Referenced by AdjustPosition(), CenterPosition(), and ScrollView().
| void C4Viewport::SetViewY | ( | float | y | ) |
Definition at line 907 of file C4Viewport.cpp.
References Clamp(), fIsNoOwnerViewport, C4Landscape::GetHeight(), Landscape, ViewHgt, and Zoom.
Referenced by AdjustPosition(), CenterPosition(), and ScrollView().
| void C4Viewport::SetZoom | ( | float | to_zoom, |
| bool | direct = false |
||
| ) |
Definition at line 526 of file C4Viewport.cpp.
References Application, C4Application::isEditor, NO_OWNER, Player, Zoom, ZoomLimitMax, ZoomLimitMin, and ZoomTarget.
| void C4Viewport::SetZoom | ( | float | zoom_value | ) |
| void C4Viewport::SetZoomLimits | ( | float | to_min_zoom, |
| float | to_max_zoom | ||
| ) |
Definition at line 547 of file C4Viewport.cpp.
References ChangeZoom(), ZoomLimitMax, and ZoomLimitMin.
Referenced by CalculateZoom().
| bool C4Viewport::TogglePlayerLock | ( | ) |
Definition at line 711 of file C4Console.cpp.
Referenced by Init().
| bool C4Viewport::UpdateOutputSize | ( | int32_t | new_width = 0, |
| int32_t | new_height = 0 |
||
| ) |
Definition at line 52 of file C4Viewport.cpp.
References C4PlayerList::Get(), C4Rect::Hgt, OutX, OutY, Player, C4ScriptGuiWindowPropertyName::player, Players, pWindow, ResetMenuPositions, ScrollBarsByViewPosition(), ScrollView(), ViewHgt, ViewWdt, C4Rect::Wdt, C4Rect::x, and C4Rect::y.
Referenced by Init(), and C4ViewportWindow::PerformUpdate().
| bool C4Viewport::ViewPositionByScrollBars | ( | ) |
|
inline |
Definition at line 85 of file C4Viewport.h.
References GetViewX(), and Zoom.
Referenced by C4ViewportWindow::EditCursorMove().
|
inline |
Definition at line 86 of file C4Viewport.h.
References GetViewY(), and Zoom.
Referenced by C4ViewportWindow::EditCursorMove().
|
friend |
Definition at line 141 of file C4Viewport.h.
|
friend |
Definition at line 140 of file C4Viewport.h.
|
friend |
Definition at line 31 of file C4Viewport.h.
|
friend |
Definition at line 139 of file C4Viewport.h.
|
friend |
Definition at line 138 of file C4Viewport.h.
| float C4Viewport::BorderBottom |
Definition at line 39 of file C4Viewport.h.
Referenced by C4Viewport(), C4GraphicsSystem::DoSaveScreenshot(), and Draw().
| float C4Viewport::BorderLeft |
Definition at line 39 of file C4Viewport.h.
Referenced by C4Viewport(), C4GraphicsSystem::DoSaveScreenshot(), and Draw().
| float C4Viewport::BorderRight |
Definition at line 39 of file C4Viewport.h.
Referenced by C4Viewport(), C4GraphicsSystem::DoSaveScreenshot(), and Draw().
| float C4Viewport::BorderTop |
Definition at line 39 of file C4Viewport.h.
Referenced by C4Viewport(), C4GraphicsSystem::DoSaveScreenshot(), and Draw().
| int32_t C4Viewport::DrawX |
Definition at line 40 of file C4Viewport.h.
Referenced by BlitOutput(), C4Viewport(), Draw(), Execute(), and SetOutputSize().
| int32_t C4Viewport::DrawY |
Definition at line 41 of file C4Viewport.h.
Referenced by BlitOutput(), C4Viewport(), Draw(), Execute(), and SetOutputSize().
| bool C4Viewport::fIsNoOwnerViewport |
Definition at line 46 of file C4Viewport.h.
Referenced by AdjustPosition(), C4Viewport(), Init(), C4ObjectMenu::IsReadOnly(), SetViewX(), and SetViewY().
| C4TargetFacet C4Viewport::last_game_draw_cgo |
Definition at line 43 of file C4Viewport.h.
Referenced by Draw(), and C4MouseControl::Move().
| C4TargetFacet C4Viewport::last_gui_draw_cgo |
Definition at line 44 of file C4Viewport.h.
Referenced by Draw(), and C4MouseControl::Move().
|
protected |
Definition at line 112 of file C4Viewport.h.
Referenced by C4Viewport(), C4ViewportList::Clear(), C4ViewportList::ClearPointers(), C4ViewportList::CloseViewport(), C4ViewportList::CreateViewport(), C4ViewportList::DisableFoW(), C4ViewportList::EnableFoW(), C4ViewportList::Execute(), C4ViewportList::GetAudibility(), GetNext(), C4ViewportList::GetViewport(), C4ViewportList::GetViewportCount(), C4ViewportList::MouseMoveToViewport(), C4ViewportList::RecalculateViewports(), C4ViewportList::SortViewportsByPlayerControl(), C4ViewportList::ViewportZoomIn(), and C4ViewportList::ViewportZoomOut().
|
protected |
Definition at line 110 of file C4Viewport.h.
Referenced by BlitOutput(), C4Viewport(), GetOutputRect(), C4MouseControl::Move(), SetOutputSize(), C4MouseControl::UpdateClip(), and UpdateOutputSize().
|
protected |
Definition at line 110 of file C4Viewport.h.
Referenced by BlitOutput(), C4Viewport(), GetOutputRect(), C4MouseControl::Move(), SetOutputSize(), C4MouseControl::UpdateClip(), and UpdateOutputSize().
|
protected |
Definition at line 114 of file C4Viewport.h.
Referenced by DisableFoW(), Draw(), and EnableFoW().
|
protected |
Definition at line 108 of file C4Viewport.h.
Referenced by AdjustPosition(), C4Viewport(), CalculateZoom(), C4GraphicsSystem::DoSaveScreenshot(), Draw(), DrawMenu(), DrawPlayerInfo(), DrawPlayerStartup(), EnableFoW(), Execute(), GetPlayer(), Init(), InitZoom(), IsViewportMenu(), NextPlayer(), SetOutputSize(), SetZoom(), and UpdateOutputSize().
|
protected |
Definition at line 109 of file C4Viewport.h.
Referenced by AdjustPosition(), C4Viewport(), and GetPlayerLock().
|
protected |
Definition at line 113 of file C4Viewport.h.
Referenced by BlitOutput(), DrawOverlay(), Execute(), GetWindow(), Init(), UpdateOutputSize(), and ~C4Viewport().
|
protected |
Definition at line 111 of file C4Viewport.h.
Referenced by C4Viewport(), DrawMenu(), SetOutputSize(), and UpdateOutputSize().
| int32_t C4Viewport::ViewHgt |
Definition at line 37 of file C4Viewport.h.
Referenced by AdjustPosition(), AdjustZoomAndPosition(), BlitOutput(), C4Viewport(), CalculateZoom(), CenterPosition(), Draw(), Execute(), GetOutputRect(), GetViewCenterY(), GetZoomByViewRange(), C4MouseControl::Move(), SetOutputSize(), SetViewY(), C4MouseControl::UpdateClip(), UpdateOutputSize(), and C4MouseControl::UpdateScrolling().
|
protected |
Definition at line 107 of file C4Viewport.h.
Referenced by C4Viewport(), CalculateZoom(), and Init().
| int32_t C4Viewport::ViewWdt |
Definition at line 36 of file C4Viewport.h.
Referenced by AdjustPosition(), AdjustZoomAndPosition(), BlitOutput(), C4Viewport(), CalculateZoom(), CenterPosition(), Draw(), Execute(), GetGUIZoom(), GetOutputRect(), GetViewCenterX(), GetZoomByViewRange(), InitZoom(), C4MouseControl::Move(), SetOutputSize(), SetViewX(), C4MouseControl::UpdateClip(), UpdateOutputSize(), and C4MouseControl::UpdateScrolling().
|
protected |
Definition at line 104 of file C4Viewport.h.
Referenced by AdjustPosition(), AdjustZoomAndPosition(), C4Viewport(), CenterPosition(), Draw(), DropFile(), Execute(), GetViewCenterX(), GetViewCenterY(), GetZoom(), InitZoom(), C4MouseControl::Move(), SetViewX(), SetViewY(), SetZoom(), C4MouseControl::UpdateScrolling(), WindowToGameX(), and WindowToGameY().
|
protected |
Definition at line 106 of file C4Viewport.h.
Referenced by C4Viewport(), ChangeZoom(), GetZoomLimitMax(), SetZoom(), and SetZoomLimits().
|
protected |
Definition at line 106 of file C4Viewport.h.
Referenced by C4Viewport(), ChangeZoom(), GetZoomLimitMin(), SetZoom(), and SetZoomLimits().
|
protected |
Definition at line 105 of file C4Viewport.h.
Referenced by AdjustPosition(), AdjustZoomAndPosition(), C4Viewport(), ChangeZoom(), GetZoomTarget(), InitZoom(), and SetZoom().