FifeGUI 0.2.0
A C++ GUI library designed for games.
fcn::FocusListener Class Reference

#include <focuslistener.hpp>

Inheritance diagram for fcn::FocusListener:
fcn::Button fcn::DropDown fcn::ImageButton fcn::CheckBox fcn::ToggleButton fcn::RadioButton

Public Member Functions

virtual void focusGained (Event const &event)
 FocusListener (FocusListener &&)=delete
 FocusListener (FocusListener const &)=delete
virtual void focusLost (Event const &event)
FocusListener & operator= (FocusListener &&)=delete
FocusListener & operator= (FocusListener const &)=delete

Protected Member Functions

 FocusListener ()=default

Detailed Description

Interface for listening to focus gain/loss events.

See also
Widget::addFocusListener, Widget::removeFocusListener

Definition at line 22 of file focuslistener.hpp.

Constructor & Destructor Documentation

◆ FocusListener()

fcn::FocusListener::FocusListener ( )
protecteddefault

Constructor.

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

Member Function Documentation

◆ focusGained()

virtual void fcn::FocusListener::focusGained ( Event const & event)
inlinevirtual

Called when a widget gains focus.

Parameters
eventDescribes the event.

Definition at line 37 of file focuslistener.hpp.

◆ focusLost()

virtual void fcn::FocusListener::focusLost ( Event const & event)
inlinevirtual

Called when a widget loses focus.

Parameters
eventDescribes the event.

Reimplemented in fcn::Button, and fcn::DropDown.

Definition at line 44 of file focuslistener.hpp.


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