HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
hikogui
GUI
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
9
namespace
hi::inline
v1
{
10
class
gui_system;
11
12
class
gui_system_delegate
{
13
public
:
14
virtual
~gui_system_delegate
() =
default
;
15
16
[[nodiscard]]
virtual
void
init(
gui_system
& self)
noexcept
{};
17
18
[[nodiscard]]
virtual
void
deinit(
gui_system
& self)
noexcept
{};
19
25
[[nodiscard]]
virtual
std::optional<int>
last_window_closed
(
gui_system
& sender)
26
{
27
return
0;
28
};
29
};
30
31
}
// namespace hi::inline v1
v1
DOXYGEN BUG.
Definition
algorithm.hpp:13
v1::gui_system
Graphics system.
Definition
gui_system.hpp:27
v1::gui_system_delegate
Definition
gui_system_delegate.hpp:12
v1::gui_system_delegate::last_window_closed
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:25
Generated on Mon Apr 22 2024 12:52:51 for HikoGUI by
1.10.0