Manages one or more windows. More...
#include <window_manager.h>
| Public Member Functions | |
| WindowManager () | |
| ~WindowManager () | |
| void | flip (int interval=-1) | 
| Translates a call to all top-level windows. | |
| void | present_main (const std::shared_ptr< WindowController > &controller, DisplayWindowDescription *desc=nullptr, WindowShowType show_type=WindowShowType::show) | 
| Shows a main window. | |
| template<typename T , typename... Types> | |
| std::shared_ptr< T > | present_main (Types &&... args) | 
| void | present_modal (View *owner, const std::shared_ptr< WindowController > &controller, DisplayWindowDescription *desc=nullptr) | 
| Shows a modal dialog. | |
| template<typename T , typename... Types> | |
| std::shared_ptr< T > | present_modal (View *owner, Types &&... args) | 
| void | present_popup (View *owner, const Pointf &pos, const std::shared_ptr< WindowController > &controller, DisplayWindowDescription *desc=nullptr) | 
| Shows a popup window. | |
| template<typename T , typename... Types> | |
| std::shared_ptr< T > | present_popup (View *owner, const Pointf &pos, Types &&... args) | 
| void | set_exit_on_last_close (bool enable=true) | 
| Notifices RunLoop to exit when last presented window is dismissed. | |
| Friends | |
| class | WindowController | 
Manages one or more windows.
| clan::WindowManager::WindowManager | ( | ) | 
| clan::WindowManager::~WindowManager | ( | ) | 
| void clan::WindowManager::flip | ( | int | interval = -1 | ) | 
Translates a call to all top-level windows.
| void clan::WindowManager::present_main | ( | const std::shared_ptr< WindowController > & | controller, | 
| DisplayWindowDescription * | desc = nullptr, | ||
| WindowShowType | show_type = WindowShowType::show ) | 
Shows a main window.
Referenced by present_main().
| 
 | inline | 
References present_main().
| void clan::WindowManager::present_modal | ( | View * | owner, | 
| const std::shared_ptr< WindowController > & | controller, | ||
| DisplayWindowDescription * | desc = nullptr ) | 
Shows a modal dialog.
Referenced by present_modal().
| 
 | inline | 
References present_modal().
| void clan::WindowManager::present_popup | ( | View * | owner, | 
| const Pointf & | pos, | ||
| const std::shared_ptr< WindowController > & | controller, | ||
| DisplayWindowDescription * | desc = nullptr ) | 
Shows a popup window.
Referenced by present_popup().
| 
 | inline | 
References present_popup().
| void clan::WindowManager::set_exit_on_last_close | ( | bool | enable = true | ) | 
Notifices RunLoop to exit when last presented window is dismissed.
| 
 | friend |