uicore::WindowController Class Reference

Base class for controllers managing windows. More...

#include <window_controller.h>

Public Member Functions

 WindowController ()
 
virtual ~WindowController ()
 
void dismiss ()
 Closes the window. More...
 
const std::shared_ptr< View > & root_view () const
 Returns the root view. More...
 
void set_content_size (const Sizef &size, bool resizable=true)
 Sets the size of the window. More...
 
void set_frame_size (const Sizef &size, bool resizable=true)
 Sets the size of the window. More...
 
void set_icon (const std::vector< std::string > &icon_images)
 Sets the icon used for the window. More...
 
void set_root_view (std::shared_ptr< View > root_view)
 Changes the root view. More...
 
void set_title (const std::string &title)
 Sets the window title. More...
 
const std::stringtitle () const
 Returns the window title. More...
 

Public Attributes

SlotContainer slots
 Slot container helping with automatic disconnection of connected slots when the controller is destroyed. More...
 

Friends

class WindowManager
 

Detailed Description

Base class for controllers managing windows.

Constructor & Destructor Documentation

uicore::WindowController::WindowController ( )
virtual uicore::WindowController::~WindowController ( )
virtual

Member Function Documentation

void uicore::WindowController::dismiss ( )

Closes the window.

const std::shared_ptr<View>& uicore::WindowController::root_view ( ) const

Returns the root view.

void uicore::WindowController::set_content_size ( const Sizef size,
bool  resizable = true 
)

Sets the size of the window.

void uicore::WindowController::set_frame_size ( const Sizef size,
bool  resizable = true 
)

Sets the size of the window.

void uicore::WindowController::set_icon ( const std::vector< std::string > &  icon_images)

Sets the icon used for the window.

void uicore::WindowController::set_root_view ( std::shared_ptr< View root_view)

Changes the root view.

void uicore::WindowController::set_title ( const std::string title)

Sets the window title.

const std::string& uicore::WindowController::title ( ) const

Returns the window title.

Friends And Related Function Documentation

friend class WindowManager
friend

Member Data Documentation

SlotContainer uicore::WindowController::slots

Slot container helping with automatic disconnection of connected slots when the controller is destroyed.


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