neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::mvc::controller Class Reference

#include <controller.hpp>

Inheritance diagram for neogfx::mvc::controller:
neogfx::mvc::i_controller

Public Member Functions

 define_declared_event (ViewAdded, view_added, i_view &) define_declared_event(ViewRemoved
 
 controller (i_model &aModel, i_view_container &aContainer)
 
virtual const i_modelmodel () const
 
virtual i_modelmodel ()
 
virtual void add_view (i_view &aView)
 
virtual void add_view (std::shared_ptr< i_view > aView)
 
virtual void remove_view (i_view &aView)
 
virtual bool only_weak_views () const
 
virtual const i_view_containercontainer () const
 
virtual i_view_containercontainer ()
 
- Public Member Functions inherited from neogfx::mvc::i_controller
 declare_event (view_added, i_view &) declare_event(view_removed
 

Public Attributes

 view_removed
 

Detailed Description

Definition at line 28 of file controller.hpp.

Constructor & Destructor Documentation

◆ controller()

neogfx::mvc::controller::controller ( i_model aModel,
i_view_container aContainer 
)

Member Function Documentation

◆ add_view() [1/2]

virtual void neogfx::mvc::controller::add_view ( i_view aView)
virtual

◆ add_view() [2/2]

virtual void neogfx::mvc::controller::add_view ( std::shared_ptr< i_view aView)
virtual

◆ container() [1/2]

virtual i_view_container & neogfx::mvc::controller::container ( )
virtual

◆ container() [2/2]

virtual const i_view_container & neogfx::mvc::controller::container ( ) const
virtual

◆ define_declared_event()

neogfx::mvc::controller::define_declared_event ( ViewAdded  ,
view_added  ,
i_view  
)

◆ model() [1/2]

virtual i_model & neogfx::mvc::controller::model ( )
virtual

◆ model() [2/2]

virtual const i_model & neogfx::mvc::controller::model ( ) const
virtual

◆ only_weak_views()

virtual bool neogfx::mvc::controller::only_weak_views ( ) const
virtual

◆ remove_view()

virtual void neogfx::mvc::controller::remove_view ( i_view aView)
virtual

Member Data Documentation

◆ view_removed

neogfx::mvc::controller::view_removed

Definition at line 32 of file controller.hpp.


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