6#include "application.hpp"
13constexpr unsigned int WM_WIN_LANGUAGE_CHANGE = 0x8000 - 1;
14constexpr unsigned int WM_APP_CALL_FUNCTION = 0x8000 + 1;
32 void exit(
int exit_code)
override;
40 void post_message(
void *window,
unsigned int Msg, ptrdiff_t wParam = 0, ptrdiff_t lParam = 0) noexcept;
44 void post_message(
std::vector<
void *> const &windows,
unsigned int Msg, ptrdiff_t wParam = 0, ptrdiff_t lParam = 0) noexcept;
47 typename
timer::callback_ptr_type languages_maintenance_callback;
49 void init_audio() override;
Definition application.hpp:36
std::weak_ptr< application_delegate > delegate
Definition application.hpp:42
os_handle instance
Handle to the operating system's application-instance.
Definition application.hpp:50
std::vector< std::string > arguments
Definition application.hpp:46
Definition Application_win32.hpp:16
void init() override
Two phase construction.
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.
std::vector< void * > win32_windows() noexcept
Get a win32 handle to each window of the application.
void run_from_main_loop(std::function< void()> function) override
void exit(int exit_code) override
Exit the main loop and exit the application.
A timer which will execute callbacks at given intervals.
Definition timer.hpp:19