ManaPlus
Public Member Functions | Protected Member Functions
WidgetListener Class Reference

#include <widgetlistener.h>

Inheritance diagram for WidgetListener:
BrowserBox Button CharacterDisplay CheckBox Desktop EmotePage FlowContainer HorizontContainer ItemContainer Label LayoutHelper Popup ProgressBar RadioButton ScrollArea SetupTab ShortcutContainer StatsPage StatsPageBasic Tab TabbedArea TextField VertContainer WidgetGroup Window

Public Member Functions

virtual ~WidgetListener ()
 
virtual void widgetResized (const Event &event)
 
virtual void widgetMoved (const Event &event)
 
virtual void widgetHidden (const Event &event)
 
virtual void widgetShown (const Event &event)
 

Protected Member Functions

 WidgetListener ()
 

Detailed Description

Interface for listening for events from widgets. When a widget's size, location or visibility changes, the relevant method of the listener is invoked.

See also
Widget::addWidgetListener, Widget::removeWidgetListener
Author
Olof Naessén

Definition at line 79 of file widgetlistener.h.

Constructor & Destructor Documentation

◆ ~WidgetListener()

virtual WidgetListener::~WidgetListener ( )
inlinevirtual

Destructor.

Definition at line 87 of file widgetlistener.h.

88  { }

◆ WidgetListener()

WidgetListener::WidgetListener ( )
inlineprotected

Constructor.

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

Definition at line 131 of file widgetlistener.h.

132  { }

Member Function Documentation

◆ widgetHidden()

virtual void WidgetListener::widgetHidden ( const Event event)
inlinevirtual

Invoked when a widget is hidden, i.e it's set to be not visible.

Parameters
eventDescribes the event.

Reimplemented in TextField, RadioButton, Button, CheckBox, Window, Label, ProgressBar, InventoryWindow, EmoteShortcutContainer, CharacterDisplay, VirtShortcutContainer, ItemShortcutContainer, SpellShortcutContainer, and ShortcutWindow.

Definition at line 112 of file widgetlistener.h.

Referenced by ShortcutWindow::widgetHidden().

113  { }

◆ widgetMoved()

virtual void WidgetListener::widgetMoved ( const Event event)
inlinevirtual

Invoked when a widget is moved.

Parameters
eventDescribes the event.

Reimplemented in Button, ScrollArea, Tab, Window, Popup, ProgressBar, ItemContainer, EmoteWindow, ShortcutWindow, ShortcutContainer, and EmotePage.

Definition at line 103 of file widgetlistener.h.

104  { }

◆ widgetResized()

virtual void WidgetListener::widgetResized ( const Event event)
inlinevirtual

◆ widgetShown()

virtual void WidgetListener::widgetShown ( const Event event)
inlinevirtual

Invoked when a widget is shown, i.e it's set to be visible.

Parameters
eventDescribes the event.

Reimplemented in BankWindow.

Definition at line 121 of file widgetlistener.h.

122  { }

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