clan::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

clan::WindowController::WindowController ( )
virtual clan::WindowController::~WindowController ( )
virtual

Member Function Documentation

void clan::WindowController::dismiss ( )

Closes the window.

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

Returns the root view.

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

Sets the size of the window.

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

Sets the size of the window.

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

Sets the icon used for the window.

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

Changes the root view.

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

Sets the window title.

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

Returns the window title.

Friends And Related Function Documentation

friend class WindowManager
friend

Member Data Documentation

SlotContainer clan::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: