0.4.1
Loading...
Searching...
No Matches
Screenshotter.hpp
Go to the documentation of this file.
1// This file is part of INSTINCT, the INS Toolkit for Integrated
2// Navigation Concepts and Training by the Institute of Navigation of
3// the University of Stuttgart, Germany.
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9/// @file Screenshotter.hpp
10/// @brief Screenshot utility
11/// @author T. Topp (topp@ins.uni-stuttgart.de)
12/// @date 2024-10-31
13
14#pragma once
15
16#ifdef IMGUI_IMPL_OPENGL_LOADER_GL3W
17
18 #include <string>
19
20namespace NAV::gui::windows
21{
22
23/// @brief Shows a window for taking screenshots
24/// @param[in, out] show Flag which indicates whether the window is shown
25void ShowScreenshotter(bool* show = nullptr);
26
27/// @brief Copies the file given to the clipboard
28/// @param[in] path Path to the file
29void CopyFileToClipboard(const char* path);
30
31/// @brief Json file containing the ImPlot style used for taking screenshots
32extern std::string plotScreenshotImPlotStyleFile;
33
34/// If true, copy screenshots to clipboard
35extern bool copyScreenshotsToClipboard;
36
37} // namespace NAV::gui::windows
38
39#endif