OpenTTD Source 20250428-master-g68ba2735ea
|
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 31 of file viewport_type.h.
int Viewport::height |
Screen height of the viewport.
Definition at line 35 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), HandleAutoscroll(), IsPtInWindowViewport(), MakeLargeWorldScreenshot(), MakeScreenshotWithConfirm(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::left |
Screen coordinate left edge of the viewport.
Definition at line 32 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), HandleAutoscroll(), IsPtInWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
std::shared_ptr<LinkGraphOverlay> Viewport::overlay |
Definition at line 43 of file viewport_type.h.
int Viewport::top |
Screen coordinate top edge of the viewport.
Definition at line 33 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), HandleAutoscroll(), IsPtInWindowViewport(), LargeWorldCallback(), MarkViewportDirty(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::virtual_height |
height << zoom
Definition at line 40 of file viewport_type.h.
Referenced by ClampViewportToMap(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), MarkViewportDirty(), IntroGameViewportCommand::PositionForViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::virtual_left |
Virtual left coordinate.
Definition at line 37 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), SmallMapWindow::DrawMapIndicators(), LargeWorldCallback(), MarkViewportDirty(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and TranslateXYToTileCoord().
int Viewport::virtual_top |
Virtual top coordinate.
Definition at line 38 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), SmallMapWindow::DrawMapIndicators(), LargeWorldCallback(), MarkViewportDirty(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and TranslateXYToTileCoord().
int Viewport::virtual_width |
width << zoom
Definition at line 39 of file viewport_type.h.
Referenced by ClampViewportToMap(), DoZoomInOutWindow(), SmallMapWindow::DrawMapIndicators(), MarkViewportDirty(), IntroGameViewportCommand::PositionForViewport(), SmallMapWindow::SmallMapCenterOnCurrentPos(), SndPlayScreenCoordFx(), and NWidgetViewport::UpdateViewportCoordinates().
int Viewport::width |
Screen width of the viewport.
Definition at line 34 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), HandleAutoscroll(), IsPtInWindowViewport(), LargeWorldCallback(), MakeLargeWorldScreenshot(), MakeScreenshotWithConfirm(), ViewportSign::MarkDirty(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().
ZoomLevel Viewport::zoom |
The zoom level of the viewport.
Definition at line 42 of file viewport_type.h.
Referenced by CheckClickOnVehicle(), CheckClickOnViewportSign(), CheckClickOnViewportSign(), ConZoomToLevel(), DoZoomInOutWindow(), HandleAutoscroll(), HandleZoomMessage(), LargeWorldCallback(), ViewportSign::MarkDirty(), MarkViewportDirty(), SndPlayScreenCoordFx(), TranslateXYToTileCoord(), and NWidgetViewport::UpdateViewportCoordinates().