|
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 |
| 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 WidgetType , typename... Args> | |
| std::pair< std::shared_ptr< gui_window >, WidgetType & > | make_window (hi::label const &label, Args &&...args) |
| Create a new window with an embedded widget. | |
| 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::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.
|
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 with an embedded widget.
| WidgetType | The widget to construct in the window. |
| label | The label for the window. The label is also passed to the widget. |
| args | The arguments that are forwarded to the constructor of the window's widget. |
|
noexcept |
Request all windows to constrain.
| observer<std::string> v1::gui_system::selected_theme = "default" |
The name of the selected theme.