clan::WindowManager Class Reference

Manages one or more windows. More...

#include <window_manager.h>

Public Member Functions

 WindowManager ()
 
 ~WindowManager ()
 
void present_main (const std::shared_ptr< WindowController > &controller)
 Shows a main window. More...
 
template<typename T , typename... Types>
std::shared_ptr< T > present_main (Types &&...args)
 
void present_modal (View *owner, const std::shared_ptr< WindowController > &controller)
 Shows a modal dialog. More...
 
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)
 Shows a popup window. More...
 
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. More...
 

Friends

class WindowController
 

Detailed Description

Manages one or more windows.

Constructor & Destructor Documentation

clan::WindowManager::WindowManager ( )
clan::WindowManager::~WindowManager ( )

Member Function Documentation

void clan::WindowManager::present_main ( const std::shared_ptr< WindowController > &  controller)

Shows a main window.

Referenced by present_main().

template<typename T , typename... Types>
std::shared_ptr<T> clan::WindowManager::present_main ( Types &&...  args)
inline

References present_main().

void clan::WindowManager::present_modal ( View owner,
const std::shared_ptr< WindowController > &  controller 
)

Shows a modal dialog.

Referenced by present_modal().

template<typename T , typename... Types>
std::shared_ptr<T> clan::WindowManager::present_modal ( View owner,
Types &&...  args 
)
inline

References present_modal().

void clan::WindowManager::present_popup ( View owner,
const Pointf pos,
const std::shared_ptr< WindowController > &  controller 
)

Shows a popup window.

Referenced by present_popup().

template<typename T , typename... Types>
std::shared_ptr<T> clan::WindowManager::present_popup ( View owner,
const Pointf pos,
Types &&...  args 
)
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.

Friends And Related Function Documentation

friend class WindowController
friend

The documentation for this class was generated from the following file: