OpenTTD Source
20241121-master-g67a0fccfad
|
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. More... | |
Variables | |
static constexpr NWidgetPart | _nested_screenshot [] |
static WindowDesc | _screenshot_window_desc (WDP_AUTO, "take_a_screenshot", 200, 100, WC_SCREENSHOT, WC_NONE, 0, _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().
|
staticconstexpr |
Definition at line 50 of file screenshot_gui.cpp.