|
HikoGUI
A low latency retained GUI
|
#include <hikogui/GUI/gui_system.hpp>
Public Member Functions | |
| 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 |
| std::shared_ptr< gui_window > | add_window (std::shared_ptr< gui_window > window) |
| template<typename... Args> | |
| std::shared_ptr< gui_window > | make_window (Args &&...args) |
| Create a new window. | |
| void | request_reconstrain () noexcept |
| Request all windows to constrain. | |
Static Public Member Functions | |
| static std::unique_ptr< gui_system > | make_unique (std::weak_ptr< gui_system_delegate > delegate={}) noexcept |
| Make a gui_system instance. | |
Data Fields | |
| std::unique_ptr< gfx_system > | gfx |
| std::unique_ptr< hi::theme_book > | theme_book |
| std::unique_ptr< hi::keyboard_bindings > | keyboard_bindings |
| thread_id const | thread_id |
| observer< std::string > | selected_theme = "default" |
| The name of the selected theme. | |
Static Public Attributes | |
| static os_handle | instance |
Graphics system.
Initialize after construction.
Call this function directly after the constructor on the same thread.
|
staticnoexcept |
Make a gui_system instance.
This will instantiate a gui_system instance appropriate for the current operating system.
| delegate | An optional delegate. |
|
inline |
Create a new window.
| args | The arguments that are forwarded to the constructor of hi::gui_window_win32. |
|
noexcept |
Request all windows to constrain.
| observer<std::string> v1::gui_system::selected_theme = "default" |
The name of the selected theme.