|
OpenTTD Source 20251116-master-g21329071df
|
GUI functions related to screenshots. More...
#include "stdafx.h"#include "window_func.h"#include "window_gui.h"#include "screenshot.h"#include "gfx_func.h"#include "widgets/screenshot_widget.h"#include "table/strings.h"#include "safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | ScreenshotWindow |
Functions | |
| void | ShowScreenshotWindow () |
| void | SetScreenshotWindowVisibility (bool hide) |
| Set the visibility of the screenshot window when taking a screenshot. | |
Variables | |
| static constexpr std::initializer_list< NWidgetPart > | _nested_screenshot |
| static WindowDesc | _screenshot_window_desc (WDP_AUTO, "take_a_screenshot", 200, 100, WC_SCREENSHOT, WC_NONE, {}, _nested_screenshot) |
GUI functions related to screenshots.
Definition in file screenshot_gui.cpp.
| void SetScreenshotWindowVisibility | ( | bool | hide | ) |
Set the visibility of the screenshot window when taking a screenshot.
| hide | Are we hiding the window or showing it again after the screenshot is taken? |
Definition at line 84 of file screenshot_gui.cpp.
References FindWindowById(), Window::left, Window::SetDirty(), and WC_SCREENSHOT.
Referenced by RealMakeScreenshot().
| void ShowScreenshotWindow | ( | ) |
Definition at line 74 of file screenshot_gui.cpp.
|
staticconstexpr |
Definition at line 50 of file screenshot_gui.cpp.