HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
GUI
gui_system_delegate.hpp
1
// Distributed under the Boost Software License, Version 1.0.
2
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
3
4
#pragma once
5
6
#include <optional>
7
8
namespace
tt {
9
class
gui_system;
10
11
class
gui_system_delegate
{
12
public
:
13
[[nodiscard]]
virtual
void
init(
gui_system
&self)
noexcept
{};
14
15
[[nodiscard]]
virtual
void
deinit(
gui_system
&self)
noexcept
{};
16
20
[[nodiscard]]
virtual
std::optional<int>
last_window_closed
(
gui_system
&self) {
return
0; };
21
};
22
23
}
tt::gui_system
Graphics system.
Definition
gui_system.hpp:24
tt::gui_system_delegate
Definition
gui_system_delegate.hpp:11
tt::gui_system_delegate::last_window_closed
virtual std::optional< int > last_window_closed(gui_system &self)
This function is called when the last window is closed.
Definition
gui_system_delegate.hpp:20
Generated on Mon Apr 22 2024 12:53:38 for HikoGUI by
1.10.0