gcn::ActionListener Class Reference

#include <actionlistener.hpp>

Inheritance diagram for gcn::ActionListener:

gcn::DropDown List of all members.

Detailed Description

Listener of action events from Widgets.

To be able to listen for actions you must make a class which inherits from this class and implements the action function.

See also:
Widget::addActionListener

Definition at line 75 of file actionlistener.hpp.

Public Member Functions

virtual ~ActionListener ()
 Destructor.
virtual void action (const std::string &eventId, Widget *widget)=0
 Called whan an action is recieved from a Widget.


Member Function Documentation

virtual void gcn::ActionListener::action ( const std::string &  eventId,
Widget widget 
) [pure virtual]

Called whan an action is recieved from a Widget.

It is used to be able to recieve a notification that an action has occured.

Parameters:
eventId the identifier of the Widget.
widget a pointer to the Widget who called this function.

Implemented in gcn::DropDown.


The documentation for this class was generated from the following file:
Generated on Sat Jul 29 19:38:48 2006 for Guichan by  doxygen 1.4.7