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

#include <actionlistener.hpp>

Inheritance diagram for fcn::ActionListener:
fcn::ActivityBar fcn::DropDown fcn::MenuBar fcn::MenuPopup 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 27 of file actionlistener.hpp.

Constructor & Destructor Documentation

◆ ActionListener()

fcn::ActionListener::ActionListener ( )
protecteddefault

Protected default 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

Handles an action event emitted by a widget.

Invoked when a widget triggers an action, providing details about the event via the ActionEvent object.

Parameters
actionEventThe action event data.

Implemented in fcn::ActivityBar, fcn::DropDown, fcn::MenuBar, fcn::MenuPopup, and fcn::TabbedArea.


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