HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
gui_system_delegate.hpp
1// Copyright Take Vos 2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include <optional>
8
9namespace hi::inline v1 {
10class gui_system;
11
13public:
14 [[nodiscard]] virtual void init(gui_system& self) noexcept {};
15
16 [[nodiscard]] virtual void deinit(gui_system& self) noexcept {};
17
23 [[nodiscard]] virtual std::optional<int> last_window_closed(gui_system& sender)
24 {
25 return 0;
26 };
27};
28
29} // namespace hi::inline v1
DOXYGEN BUG.
Definition algorithm.hpp:15
Graphics system.
Definition gui_system.hpp:29
Definition gui_system_delegate.hpp:12
virtual std::optional< int > last_window_closed(gui_system &sender)
This function is called when the last window is closed.
Definition gui_system_delegate.hpp:23