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::string & | title () 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 |
Base class for controllers managing windows.
uicore::WindowController::WindowController | ( | ) |
|
virtual |
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.
|
friend |
SlotContainer uicore::WindowController::slots |
Slot container helping with automatic disconnection of connected slots when the controller is destroyed.