uicore::TopLevelWindow Class Reference

#include <top_level_window.h>

+ Inheritance diagram for uicore::TopLevelWindow:

Public Member Functions

 TopLevelWindow (const DisplayWindowDescription &desc)
 
CanvasPtr canvas () const override
 Gets the current canvas used to render. More...
 
DisplayWindowPtr display_window () override
 
void hide ()
 
void show (WindowShowType type=WindowShowType::show)
 
- Public Member Functions inherited from uicore::ViewTree
 ViewTree ()
 
virtual ~ViewTree ()
 
void add_child (const std::shared_ptr< View > &view)
 Add a child view. More...
 
template<typename T , typename... Types>
std::shared_ptr< T > add_child (Types &&...args)
 
std::shared_ptr< Viewadd_child ()
 
Viewfocus_view () const
 The view receiving keyboard events or nullptr if no view has the focus. More...
 
const std::shared_ptr< View > & root_view () const
 Retrieves the root of the view tree. More...
 
void set_root_view (std::shared_ptr< View > root_view)
 Sets a new root view controller for the view tree. More...
 

Protected Member Functions

Pointf client_to_screen_pos (const Pointf &pos) override
 Map from client to screen coordinates. More...
 
Pointf screen_to_client_pos (const Pointf &pos) override
 Map from screen to client coordinates. More...
 
void set_needs_render () override
 Signals that the root view needs to be rendered again. More...
 
- Protected Member Functions inherited from uicore::ViewTree
void dispatch_activation_change (ActivationChangeType type)
 Dispatch activation change event to all views. More...
 
void render (const CanvasPtr &canvas, const Rectf &margin_box)
 Renders view into the specified canvas. More...
 
void set_focus_view (View *view)
 Set or clears the focus. More...
 

Friends

class TopLevelWindow_Impl
 

Constructor & Destructor Documentation

uicore::TopLevelWindow::TopLevelWindow ( const DisplayWindowDescription desc)

Member Function Documentation

CanvasPtr uicore::TopLevelWindow::canvas ( ) const
overridevirtual

Gets the current canvas used to render.

Implements uicore::ViewTree.

Pointf uicore::TopLevelWindow::client_to_screen_pos ( const Pointf pos)
overrideprotectedvirtual

Map from client to screen coordinates.

Implements uicore::ViewTree.

DisplayWindowPtr uicore::TopLevelWindow::display_window ( )
overridevirtual

Gets the display window used

This may return a null DisplayWindow

Implements uicore::ViewTree.

void uicore::TopLevelWindow::hide ( )
Pointf uicore::TopLevelWindow::screen_to_client_pos ( const Pointf pos)
overrideprotectedvirtual

Map from screen to client coordinates.

Implements uicore::ViewTree.

void uicore::TopLevelWindow::set_needs_render ( )
overrideprotectedvirtual

Signals that the root view needs to be rendered again.

Implements uicore::ViewTree.

void uicore::TopLevelWindow::show ( WindowShowType  type = WindowShowType::show)

Friends And Related Function Documentation

friend class TopLevelWindow_Impl
friend

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