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 77 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 85 of file event.h.

References A_DELETE_COPY.

85  :
86  mSource(source)
87  { }
Widget * mSource
Definition: event.h:110

◆ ~Event()

virtual Event::~Event ( )
inlinevirtual

Destructor.

Definition at line 94 of file event.h.

95  { }

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 110 of file event.h.

Referenced by getSource().


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