HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::gui_system_win32 Class Referencefinal
Inheritance diagram for tt::gui_system_win32:
tt::gui_system

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_systemoperator= (const gui_system &)=delete
 
 gui_system (gui_system &&)=delete
 
gui_systemoperator= (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_windowadd_window (std::unique_ptr< gui_window > window)
 
template<typename... Args>
gui_windowmake_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_systemglobal () 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
 

Member Function Documentation

◆ exit()

void tt::gui_system_win32::exit ( int exit_code)
overridevirtual

Implements tt::gui_system.

◆ loop()

int tt::gui_system_win32::loop ( )
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.

Returns
exit code.

Implements tt::gui_system.

◆ run_from_event_queue()

void tt::gui_system_win32::run_from_event_queue ( std::function< void()> function)
overridevirtual

Implements tt::gui_system.


The documentation for this class was generated from the following file: