gcn::Event Class Reference

#include <event.hpp>

Inheritance diagram for gcn::Event:

gcn::ActionEvent gcn::InputEvent gcn::SelectionEvent gcn::KeyEvent gcn::MouseEvent List of all members.

Detailed Description

Base class for all events.

All events in Guichan should inherit from this class.

Author:
Olof Naessén
Since:
0.6.0

Definition at line 60 of file event.hpp.

Public Member Functions

 Event (Widget *source)
 Constructor.
WidgetgetSource () const
 Gets the source widget of the event.
virtual ~Event ()
 Destructor.

Protected Attributes

WidgetmSource
 Holds the source widget of the event.


Constructor & Destructor Documentation

gcn::Event::Event ( Widget source  ) 

Constructor.

Parameters:
source The source widget of the event.

Definition at line 52 of file event.cpp.


Member Function Documentation

Widget * gcn::Event::getSource (  )  const

Gets the source widget of the event.

The function is used to tell which widget fired an event.

Returns:
The source widget of the event.

Definition at line 63 of file event.cpp.

References mSource.

Referenced by gcn::TabbedArea::action(), gcn::DropDown::death(), gcn::FocusHandler::distributeFocusGainedEvent(), gcn::FocusHandler::distributeFocusLostEvent(), gcn::Gui::distributeKeyEvent(), gcn::Window::mouseDragged(), gcn::Window::mousePressed(), gcn::TabbedArea::mousePressed(), gcn::DropDown::mousePressed(), gcn::DropDown::mouseWheelMovedDown(), and gcn::DropDown::mouseWheelMovedUp().


The documentation for this class was generated from the following files:
Generated on Sat Apr 26 13:40:09 2008 for Guichan by  doxygen 1.5.2