|
HikoGUI
A low latency retained GUI
|
Public Member Functions | |
| void | run_from_event_queue (std::function< void()> function) override |
| int | loop () override |
| Start the GUI event loop. | |
| void | exit (int exit_code) override |
Public Member Functions inherited from tt::gui_system | |
| gui_system (const gui_system &)=delete | |
| gui_system & | operator= (const gui_system &)=delete |
| gui_system (gui_system &&)=delete | |
| gui_system & | operator= (gui_system &&)=delete |
| virtual void | init () noexcept |
| Initialize after construction. | |
| virtual void | deinit () noexcept |
| void | set_delegate (std::weak_ptr< gui_system_delegate > delegate) noexcept |
| gui_window & | add_window (std::unique_ptr< gui_window > window) |
| template<typename... Args> | |
| gui_window & | make_window (Args &&...args) |
| Create a new window. | |
| ssize_t | num_windows () |
| void | render (hires_utc_clock::time_point display_time_point) |
| bool | is_gui_thread () const noexcept |
| Check if this thread is the same as the gui thread. | |
Additional Inherited Members | |
Static Public Member Functions inherited from tt::gui_system | |
| static gui_system & | global () noexcept |
| Get a reference to the global gui_system. | |
Data Fields inherited from tt::gui_system | |
| thread_id const | thread_id |
Static Public Attributes inherited from tt::gui_system | |
| static os_handle | instance |
|
overridevirtual |
Implements tt::gui_system.
|
overridevirtual |
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.
Implements tt::gui_system.
|
overridevirtual |
Implements tt::gui_system.