ManaPlus
Public Member Functions | Protected Member Functions
WidgetDeathListener Class Referenceabstract

#include <widgetdeathlistener.h>

Inheritance diagram for WidgetDeathListener:
BasicContainer BasicContainer2 DropDown ScrollArea Tab TabbedArea Container Window ChatTab ShortcutTab SkillTab SocialTab AttrDisplay CharacterDisplay CharacterViewBase DebugTab Desktop FlowContainer HorizontContainer Popup SetupTab SliderList StatsPage StatsPageBasic VertContainer WidgetGroup WindowContainer WindowMenu BankWindow BuyDialog BuySellDialog ChangeEmailDialog ChangePasswordDialog CharCreateDialog CharSelectDialog ChatWindow ConfirmDialog ConnectionDialog CutInWindow DebugWindow DidYouKnowWindow EditDialog EditServerDialog EmoteWindow EquipmentWindow HelpWindow InventoryWindow ItemAmountWindow KillStats LoginDialog MailEditWindow MailViewWindow MailWindow Minimap MiniStatusWindow NpcDialog OkDialog OutfitWindow QuestsWindow QuitDialog RegisterDialog SellDialog ServerDialog ServerInfoWindow SetupWindow ShopWindow ShortcutWindow SkillDialog SocialWindow StatusWindow TextCommandEditor TextDialog TextSelectDialog TradeWindow UpdaterWindow WhoIsOnline WorldSelectDialog BattleTab ChannelTab EmulateGuildTab GmTab GuildTab LangTab PartyTab TradeTab WhisperTab SocialAttackTab SocialFriendsTab SocialGuildTab SocialGuildTab2 SocialNavigationTab SocialPartyTab SocialPickupTab SocialPlayersTab

Public Member Functions

virtual ~WidgetDeathListener ()
 
virtual void death (const Event &event)=0
 

Protected Member Functions

 WidgetDeathListener ()
 

Detailed Description

Interface for listening for death events from widgets.

See also
Widget::addDeathListener, Widget::removeDeathListener
Author
Olof Naessén

Definition at line 75 of file widgetdeathlistener.h.

Constructor & Destructor Documentation

◆ ~WidgetDeathListener()

virtual WidgetDeathListener::~WidgetDeathListener ( )
inlinevirtual

Destructor.

Definition at line 83 of file widgetdeathlistener.h.

References death().

84  { }

◆ WidgetDeathListener()

WidgetDeathListener::WidgetDeathListener ( )
inlineprotected

Constructor.

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

Definition at line 101 of file widgetdeathlistener.h.

102  { }

Member Function Documentation

◆ death()

virtual void WidgetDeathListener::death ( const Event event)
pure virtual

Called when a widget dies. It is used to be able to recieve a notification when a death of a widget occurs.

Parameters
eventThe event of the death.

Implemented in TabbedArea, and BasicContainer.

Referenced by ~WidgetDeathListener().


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