ManaPlus
Public Member Functions | Protected Member Functions
FocusListener Class Reference

#include <focuslistener.h>

Inheritance diagram for FocusListener:
Button DropDown MailEditWindow PopupList TextField ChatInput IntTextField PasswordField

Public Member Functions

virtual ~FocusListener ()
 
virtual void focusGained (const Event &event)
 
virtual void focusLost (const Event &event)
 

Protected Member Functions

 FocusListener ()
 

Detailed Description

Interface for listening for focus events from widgets.

See also
Widget::addFocusListener, Widget::removeFocusListener
Author
Olof Naessén

Definition at line 78 of file focuslistener.h.

Constructor & Destructor Documentation

◆ ~FocusListener()

virtual FocusListener::~FocusListener ( )
inlinevirtual

Destructor.

Definition at line 86 of file focuslistener.h.

87  { }

◆ FocusListener()

FocusListener::FocusListener ( )
inlineprotected

Constructor.

You should not be able to make an instance of FocusListener, therefore its constructor is protected.

Definition at line 112 of file focuslistener.h.

113  { }

Member Function Documentation

◆ focusGained()

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

Called when a widget gains focus.

Parameters
eventDiscribes the event.

Reimplemented in TextField, and PopupList.

Definition at line 94 of file focuslistener.h.

95  { }

◆ focusLost()

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

Called when a widget loses focus.

Parameters
eventDiscribes the event.

Reimplemented in MailEditWindow, TextField, PopupList, ChatInput, and Button.

Definition at line 102 of file focuslistener.h.

103  { }

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