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

Public Member Functions

 application_win32 (std::weak_ptr< application_delegate > const &delegate, std::vector< std::string > const &arguments, os_handle instance)
 
 application_win32 (const application_win32 &)=delete
 
application_win32operator= (const application_win32 &)=delete
 
 application_win32 (application_win32 &&)=delete
 
application_win32operator= (application_win32 &&)=delete
 
void init () override
 Two phase construction.
 
void run_from_main_loop (std::function< void()> function) override
 
int loop () override
 
void exit (int exit_code) override
 Exit the main loop and exit the application.
 
std::vector< void * > win32_windows () noexcept
 Get a win32 handle to each window of the application.
 
void post_message (void *window, unsigned int Msg, ptrdiff_t wParam=0, ptrdiff_t lParam=0) noexcept
 Send a win32 message to a window, on the thread associated with that window.
 
void post_message (std::vector< void * > const &windows, unsigned int Msg, ptrdiff_t wParam=0, ptrdiff_t lParam=0) noexcept
 Send a win32 message to a list of windows, on the thread associated with each of those windows.
 
- Public Member Functions inherited from tt::application
 application (std::weak_ptr< application_delegate > const &delegate, std::vector< std::string > const &arguments, 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
 

Additional Inherited Members

- Data Fields inherited from tt::application
std::weak_ptr< application_delegatedelegate
 
std::vector< std::stringarguments
 
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.
 
date::time_zone const * timeZone = nullptr
 The system timezone.
 
thread_id main_thread_id
 Thread id of the main thread.
 
std::atomic< bool > inLoop
 
- Static Public Attributes inherited from tt::application
static applicationglobal
 

Member Function Documentation

◆ exit()

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

Exit the main loop and exit the application.

Implements tt::application.

◆ init()

void tt::application_win32::init ( )
overridevirtual

Two phase construction.

Reimplemented from tt::application.

◆ loop()

int tt::application_win32::loop ( )
overridevirtual

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

Implements tt::application.

◆ post_message() [1/2]

void tt::application_win32::post_message ( std::vector< void * > const & windows,
unsigned int Msg,
ptrdiff_t wParam = 0,
ptrdiff_t lParam = 0 )
noexcept

Send a win32 message to a list of windows, on the thread associated with each of those windows.

◆ post_message() [2/2]

void tt::application_win32::post_message ( void * window,
unsigned int Msg,
ptrdiff_t wParam = 0,
ptrdiff_t lParam = 0 )
noexcept

Send a win32 message to a window, on the thread associated with that window.

◆ run_from_main_loop()

void tt::application_win32::run_from_main_loop ( std::function< void()> function)
overridevirtual

Run the given function on the main thread.

Implements tt::application.

◆ win32_windows()

std::vector< void * > tt::application_win32::win32_windows ( )
noexcept

Get a win32 handle to each window of the application.


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