32 #include "../../Core/Math/point.h"
33 #include "window_controller.h"
38 class WindowManagerImpl;
48 static void present_main(
const std::shared_ptr<WindowController> &controller);
50 template<
typename T,
typename... Types>
53 auto controller = std::make_shared<T>(std::forward<Types>(args)...);
59 static void present_modal(
View *owner,
const std::shared_ptr<WindowController> &controller);
61 template<
typename T,
typename... Types>
64 auto controller = std::make_shared<T>(std::forward<Types>(args)...);
72 template<
typename T,
typename... Types>
75 auto controller = std::make_shared<T>(std::forward<Types>(args)...);
85 std::unique_ptr<WindowManagerImpl> impl;
static void present_main(const std::shared_ptr< WindowController > &controller)
Shows a main window.
static std::shared_ptr< T > present_popup(View *owner, const Pointf &pos, Types &&...args)
Definition: window_manager.h:73
Base class for controllers managing windows.
Definition: window_controller.h:40
2D (x,y) point structure - Float
Definition: point.h:68
static void present_modal(View *owner, const std::shared_ptr< WindowController > &controller)
Shows a modal dialog.
Manages one or more windows.
Definition: window_manager.h:41
static void present_popup(View *owner, const Pointf &pos, const std::shared_ptr< WindowController > &controller)
Shows a popup window.
static std::shared_ptr< T > present_main(Types &&...args)
Definition: window_manager.h:51
static std::shared_ptr< T > present_modal(View *owner, Types &&...args)
Definition: window_manager.h:62
View for an area of the user interface.
Definition: view.h:68
static void set_exit_on_last_close(bool enable=true)
Notifices RunLoop to exit when last presented window is dismissed.
Definition: Application/application.h:35