OpenTTD Source 20241224-master-gf74b0cf984
|
Data structure for viewport, display of a part of the world. More...
#include <viewport_type.h>
Data Fields | |
int | left |
Screen coordinate left edge of the viewport. | |
int | top |
Screen coordinate top edge of the viewport. | |
int | width |
Screen width of the viewport. | |
int | height |
Screen height of the viewport. | |
int | virtual_left |
Virtual left coordinate. | |
int | virtual_top |
Virtual top coordinate. | |
int | virtual_width |
width << zoom | |
int | virtual_height |
height << zoom | |
ZoomLevel | zoom |
The zoom level of the viewport. | |
std::shared_ptr< LinkGraphOverlay > | overlay |
Data structure for viewport, display of a part of the world.
Definition at line 22 of file viewport_type.h.
int Viewport::height |
Screen height of the viewport.
Definition at line 26 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), HandleAutoscroll(), InitializeWindowViewport(), IsPtInWindowViewport(), MakeLargeWorldScreenshot(), MakeScreenshotWithConfirm(), SetupScreenshotViewport(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::left |
Screen coordinate left edge of the viewport.
Definition at line 23 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), EnsureVisibleCaption(), Window::FindWindowPlacementAndResize(), HandleAutoscroll(), InitializeWindowViewport(), IsPtInWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), PositionWindow(), SetupScreenshotViewport(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
std::shared_ptr<LinkGraphOverlay> Viewport::overlay |
Definition at line 34 of file viewport_type.h.
int Viewport::top |
Screen coordinate top edge of the viewport.
Definition at line 24 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), EnsureVisibleCaption(), Window::FindWindowPlacementAndResize(), HandleAutoscroll(), InitializeWindowViewport(), IsPtInWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), SetupScreenshotViewport(), NewsWindow::SetWindowTop(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::virtual_height |
height << zoom
Definition at line 31 of file viewport_type.h.
Referenced by ClampViewportToMap(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), InitializeWindowViewport(), MarkViewportDirty(), ExtraViewportWindow::OnClick(), IntroGameViewportCommand::PositionForViewport(), SetupScreenshotViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::virtual_left |
Virtual left coordinate.
Definition at line 28 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), InitializeWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), SetupScreenshotViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and TranslateXYToTileCoord().
int Viewport::virtual_top |
Virtual top coordinate.
Definition at line 29 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), InitializeWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), SetupScreenshotViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and TranslateXYToTileCoord().
int Viewport::virtual_width |
width << zoom
Definition at line 30 of file viewport_type.h.
Referenced by ClampViewportToMap(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), InitializeWindowViewport(), MarkViewportDirty(), ExtraViewportWindow::OnClick(), IntroGameViewportCommand::PositionForViewport(), SetupScreenshotViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::width |
Screen width of the viewport.
Definition at line 25 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), HandleAutoscroll(), InitializeWindowViewport(), IsPtInWindowViewport(), LargeWorldCallback(), MakeLargeWorldScreenshot(), MakeScreenshotWithConfirm(), MarkAllViewportsDirty(), ViewportSign::MarkDirty(), SetupScreenshotViewport(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
ZoomLevel Viewport::zoom |
The zoom level of the viewport.
Definition at line 33 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), CheckClickOnViewportSign(), DEF_CONSOLE_CMD(), DoZoomInOutWindow(), HandleAutoscroll(), HandleZoomMessage(), InitializeWindowViewport(), LargeWorldCallback(), ViewportSign::MarkDirty(), MarkViewportDirty(), MainWindow::OnHotkey(), SetupScreenshotViewport(), SndPlayScreenCoordFx(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().