ManaPlus
Public Member Functions | Protected Attributes
Event Class Reference

#include <event.h>

Inheritance diagram for Event:
ActionEvent InputGuiEvent SelectionEvent KeyEvent MouseEvent

Public Member Functions

 Event (Widget *const source)
 
virtual ~Event ()
 
WidgetgetSource () const
 

Protected Attributes

WidgetmSource
 

Detailed Description

Base class for all events. All events in Guichan should inherit from this class.

Author
Olof Naessén

Definition at line 78 of file event.h.

Constructor & Destructor Documentation

◆ Event()

Event::Event ( Widget *const  source)
inlineexplicit

Constructor.

Parameters
sourceThe source widget of the event.

Definition at line 86 of file event.h.

86  :
87  mSource(source)
88  { }
Widget * mSource
Definition: event.h:111

◆ ~Event()

virtual Event::~Event ( )
inlinevirtual

Destructor.

Definition at line 95 of file event.h.

96  { }

Member Function Documentation

◆ getSource()

Widget* Event::getSource ( ) const
inline

Field Documentation

◆ mSource

Widget* Event::mSource
protected

Holds the source widget of the event.

Definition at line 111 of file event.h.

Referenced by getSource().


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