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

#include <actionlistener.hpp>

Inheritance diagram for fcn::ActionListener:
fcn::DropDown fcn::TabbedArea

Public Member Functions

virtual void action (ActionEvent const &actionEvent)=0
 ActionListener (ActionListener &&)=delete
 ActionListener (ActionListener const &)=delete
ActionListener & operator= (ActionListener &&)=delete
ActionListener & operator= (ActionListener const &)=delete

Protected Member Functions

 ActionListener ()=default

Detailed Description

Interface for listening to action events from widgets.

See also
Widget::addActionListener, Widget::removeActionListener, ActionEvent

Definition at line 23 of file actionlistener.hpp.

Constructor & Destructor Documentation

◆ ActionListener()

fcn::ActionListener::ActionListener ( )
protecteddefault

Constructor.

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

Member Function Documentation

◆ action()

virtual void fcn::ActionListener::action ( ActionEvent const & actionEvent)
pure virtual

Called when an action is received from a widget.

It is used to receive notifications about actions that have occurred. The actionEvent contains information about the action.

Parameters
actionEventThe event of the action.

Implemented in fcn::DropDown, and fcn::TabbedArea.


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