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 InfoClanTab Pincode Popup RelationClanTab SetupTab SliderList StatsClanTab StatsPage StatsPageBasic VertContainer WidgetGroup WindowContainer WindowMenu BankWindow BuyDialog BuySellDialog ChangeEmailDialog ChangePasswordDialog CharCreateDialog CharSelectDialog ChatWindow ClanWindow ConfirmDialog ConnectionDialog CutInWindow DebugWindow DidYouKnowWindow EditDialog EditServerDialog EmoteWindow EquipmentWindow HelpWindow InventoryWindow ItemAmountWindow KillStats LoginDialog MailEditWindow MailViewWindow MailWindow MiniStatusWindow Minimap NpcDialog OkDialog OutfitWindow PincodeDialog QuestsWindow QuitDialog RegisterDialog SellDialog ServerDialog ServerInfoWindow SetupWindow ShopWindow ShortcutWindow SkillDialog SocialWindow StatusWindow TextCommandEditor TextDialog TextSelectDialog TradeWindow UpdaterWindow WhoIsOnline WorldSelectDialog BattleTab ChannelTab ClanTab 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 76 of file widgetdeathlistener.h.

Constructor & Destructor Documentation

◆ ~WidgetDeathListener()

virtual WidgetDeathListener::~WidgetDeathListener ( )
inlinevirtual

Destructor.

Definition at line 84 of file widgetdeathlistener.h.

85  { }

◆ WidgetDeathListener()

WidgetDeathListener::WidgetDeathListener ( )
inlineprotected

Constructor.

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

Definition at line 102 of file widgetdeathlistener.h.

103  { }

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.


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