OpenTTD Source
1.11.0-beta2
|
Go to the documentation of this file.
15 #include "table/strings.h"
31 if (widget < 0)
return;
64 WDP_AUTO,
"take_a_screenshot", 200, 100,
67 _nested_screenshot,
lengthof(_nested_screenshot)
70 void ShowScreenshotWindow()
ScreenshotType
Type of requested screenshot.
void OnPaint() override
The window must be repainted.
@ SC_HEIGHTMAP
Heightmap of the world.
void CreateNestedTree(bool fill_nested=true)
Perform the first part of the initialization of a nested widget tree.
@ SC_ZOOMEDIN
Fully zoomed in screenshot of the visible area.
Window(WindowDesc *desc)
Empty constructor, initialization has been moved to InitNested() called from the constructor of the d...
High level window description.
@ WDP_AUTO
Find a place automatically.
@ WC_SCREENSHOT
Screenshot window; Window numbers:
Coordinates of a point in 2D.
@ WC_NONE
No window, redirects to WC_MAIN_WINDOW.
void OnClick(Point pt, int widget, int click_count) override
A click with the left mouse button has been made on the window.
void DeleteWindowById(WindowClass cls, WindowNumber number, bool force)
Delete a window by its class and window number (if it is open).
@ SC_WORLD
World screenshot.
@ SC_DEFAULTZOOM
Zoomed to default zoom level screenshot of the visible area.
void FinishInitNested(WindowNumber window_number=0)
Perform the second part of the initialization of a nested widget tree.
#define lengthof(x)
Return the length of an fixed size array.
@ SC_VIEWPORT
Screenshot of viewport.
void MakeScreenshotWithConfirm(ScreenshotType t)
Make a screenshot.
Data structure for an opened window.
void DrawWidgets() const
Paint all widgets of a window.
@ SC_MINIMAP
Minimap screenshot.