_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Public Member Functions | List of all members
gcn::ActionListener Class Referenceabstract

#include <actionlistener.h>

Inheritance diagram for gcn::ActionListener:
gcn::DropDown LambdaActionListener LuaActionListener DropDownWidget ImageDropDownWidget

Public Member Functions

virtual ~ActionListener ()
 
virtual void action (const std::string &eventId)=0
 

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

Constructor & Destructor Documentation

◆ ~ActionListener()

virtual gcn::ActionListener::~ActionListener ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ action()

virtual void gcn::ActionListener::action ( const std::string &  eventId)
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
eventIdthe identifier of the Widget.

Implemented in gcn::DropDown, LambdaActionListener, and LuaActionListener.


The documentation for this class was generated from the following file:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.