_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          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
LambdaActionListener Class Reference

#include <widgets.h>

Inheritance diagram for LambdaActionListener:
gcn::ActionListener

Public Member Functions

 LambdaActionListener (std::function< void(const std::string &)> l)
 
virtual void action (const std::string &eventId)
 
- Public Member Functions inherited from gcn::ActionListener
virtual ~ActionListener ()
 

Constructor & Destructor Documentation

◆ LambdaActionListener()

LambdaActionListener::LambdaActionListener ( std::function< void(const std::string &)>  l)
inline

Member Function Documentation

◆ action()

virtual void LambdaActionListener::action ( const std::string &  eventId)
inlinevirtual

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.

Implements gcn::ActionListener.


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.