HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
tt::Application_macos Class Referencefinal
Inheritance diagram for tt::Application_macos:
tt::application

Public Member Functions

 Application_macos (const std::shared_ptr< application_delegate > delegate, int argc, char const *const *argv)
 
void runFromMainLoop (std::function< void()> function) override
 
void lastWindowClosed () override
 
int loop () override
 
- Public Member Functions inherited from tt::application
 application (std::weak_ptr< application_delegate > const &delegate, int argc, char *argv[], os_handle instance)
 This function will take ownership of the delegate and delete it during destruction.
 
virtual int main ()
 Start the application.
 
 application (const application &)=delete
 
applicationoperator= (const application &)=delete
 
 application (application &&)=delete
 
applicationoperator= (application &&)=delete
 
virtual void run_from_main_loop (std::function< void()> function)=0
 
virtual void exit (int exit_code=0)=0
 Exit the main loop and exit the application.
 

Data Fields

int argc
 
char const *const * argv
 
- Data Fields inherited from tt::application
std::weak_ptr< application_delegatedelegate
 
int argc
 
char ** argv
 
os_handle instance
 Handle to the operating system's application-instance.
 
gui_window_size initial_window_size = gui_window_size::normal
 The initial window size for the first application window.
 
datum configuration
 The global configuration.
 
thread_id main_thread_id
 Thread id of the main thread.
 
std::atomic< bool > inLoop
 

Additional Inherited Members

- Static Public Attributes inherited from tt::application
static applicationglobal
 

Member Function Documentation

◆ loop()

int tt::Application_macos::loop ( )
overridevirtual

Run the operating system's main loop. Must be called after init().

Implements tt::application.


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