-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathgui.hpp
33 lines (23 loc) · 1.3 KB
/
gui.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is part of CosmoScout VR //
////////////////////////////////////////////////////////////////////////////////////////////////////
// SPDX-FileCopyrightText: German Aerospace Center (DLR) <[email protected]>
// SPDX-License-Identifier: MIT
#ifndef CS_GUI_GUI_HPP
#define CS_GUI_GUI_HPP
#include "cs_gui_export.hpp"
/// This namespace contains global functionality to interact with the user interface. The UI is a
/// web application running in the Chromium Embedded Framework (CEF).
namespace cs::gui {
/// Launches GUI child processes. For each GUI web site, a separate process is spawned by the
/// Chromium Embedded Framework. For the main process, this method returns immediately, for all
/// others it blocks until the child process has terminated.
CS_GUI_EXPORT void executeWebProcess(int argc, char* argv[]); // NOLINT(modernize-avoid-c-arrays)
/// Initializes CEF. Needs to be called after executeWebProcess().
CS_GUI_EXPORT void init();
/// Shuts down CEF.
CS_GUI_EXPORT void cleanUp();
/// Triggers the CEF update function. This should be called once a frame.
CS_GUI_EXPORT void update();
} // namespace cs::gui
#endif // CS_GUI_GUI_HPP