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 Pincode 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 80 of file widgetlistener.h.

Constructor & Destructor Documentation

◆ ~WidgetListener()

virtual WidgetListener::~WidgetListener ( )
inlinevirtual

Destructor.

Definition at line 88 of file widgetlistener.h.

89  { }

◆ WidgetListener()

WidgetListener::WidgetListener ( )
inlineprotected

Constructor.

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

Definition at line 132 of file widgetlistener.h.

133  { }

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 ShortcutWindow, InventoryWindow, Window, VirtShortcutContainer, TextField, SpellShortcutContainer, RadioButton, ProgressBar, Label, ItemShortcutContainer, EmoteShortcutContainer, CheckBox, CharacterDisplay, and Button.

Definition at line 113 of file widgetlistener.h.

114  { }

Referenced by ShortcutWindow::widgetHidden().

◆ widgetMoved()

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

Invoked when a widget is moved.

Parameters
eventDescribes the event.

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

Definition at line 104 of file widgetlistener.h.

105  { }

◆ 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 122 of file widgetlistener.h.

123  { }

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