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 77 of file focuslistener.h.

Constructor & Destructor Documentation

◆ ~FocusListener()

virtual FocusListener::~FocusListener ( )
inlinevirtual

Destructor.

Definition at line 85 of file focuslistener.h.

86  { }

◆ FocusListener()

FocusListener::FocusListener ( )
inlineprotected

Constructor.

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

Definition at line 111 of file focuslistener.h.

112  { }

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 93 of file focuslistener.h.

94  { }

◆ focusLost()

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

Called when a widget loses focus.

Parameters
eventDiscribes the event.

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

Definition at line 101 of file focuslistener.h.

102  { }

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