FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::ContainerListener Class Referenceabstract

#include <containerlistener.hpp>

Public Member Functions

virtual void widgetAdded (ContainerEvent const &containerEvent)=0
virtual void widgetRemoved (ContainerEvent const &containerEvent)=0

Protected Member Functions

 ContainerListener ()=default

Detailed Description

Interface for listening to container modification events.

See also
Container::addContainerListener, Container::removeContainerListener, ContainerEvent

Definition at line 21 of file containerlistener.hpp.

Constructor & Destructor Documentation

◆ ContainerListener()

fcn::ContainerListener::ContainerListener ( )
protecteddefault

Constructor.

Instances should not be created directly, therefore the constructor is declared protected.

Member Function Documentation

◆ widgetAdded()

virtual void fcn::ContainerListener::widgetAdded ( ContainerEvent const & containerEvent)
pure virtual

Called when a widget is added to a container.

Parameters
containerEventThe event of the action.

◆ widgetRemoved()

virtual void fcn::ContainerListener::widgetRemoved ( ContainerEvent const & containerEvent)
pure virtual

Called when a widget is removed from a container.

Parameters
containerEventThe event of the action.

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