#include <ttauri/GUI/gui_system.hpp>
|
|
thread_id const | thread_id |
| |
|
|
static os_handle | instance |
| |
◆ global()
Get a reference to the global gui_system.
The first time this function is called it will initialize the gui_system.
- Returns
- A reference to the global gui_system.
◆ init()
| virtual void tt::gui_system::init |
( |
| ) |
|
|
inlinevirtualnoexcept |
Initialize after construction.
Call this function directly after the constructor on the same thread.
◆ is_gui_thread()
| bool tt::gui_system::is_gui_thread |
( |
| ) |
const |
|
inlinenoexcept |
Check if this thread is the same as the gui thread.
◆ loop()
| virtual int tt::gui_system::loop |
( |
| ) |
|
|
pure virtual |
Start the GUI event loop.
This function will start the GUI event loop. The event loop will monitor keyboard & mouse event, changes in window size & position and rendering of all windows.
When all windows are closed this function will return with an exit code of zero, or the return value from the delegate. Calling exit() will also cause this function to return.
- Returns
- exit code.
Implemented in tt::gui_system_win32.
◆ make_window()
template<typename... Args>
| gui_window & tt::gui_system::make_window |
( |
Args &&... | args | ) |
|
|
inline |
Create a new window.
- Parameters
-
- Returns
- A reference to the new window.
◆ num_windows()
| ssize_t tt::gui_system::num_windows |
( |
| ) |
|
Count the number of windows managed by the GUI.
The documentation for this class was generated from the following file: