____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

LuaActionListener Class Reference

#include <widgets.h>

Inheritance diagram for LuaActionListener:

gcn::ActionListener

List of all members.

Public Member Functions

 LuaActionListener (lua_State *lua, lua_Object function)
virtual void action (const std::string &eventId)
virtual ~LuaActionListener ()


Detailed Description

Definition at line 43 of file widgets.h.


Constructor & Destructor Documentation

LuaActionListener::LuaActionListener ( lua_State *  l,
lua_Object  f 
)

LuaActionListener constructor

Parameters:
l Lua state
f Listener function

Definition at line 180 of file widgets.cpp.

LuaActionListener::~LuaActionListener (  )  [virtual]

LuaActionListener destructor

Definition at line 202 of file widgets.cpp.


Member Function Documentation

void LuaActionListener::action ( const std::string &  eventId  )  [virtual]

Called when 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

Implements gcn::ActionListener.

Definition at line 192 of file widgets.cpp.

References LuaCallback::pushPreamble(), LuaCallback::pushString(), and LuaCallback::run().

Referenced by EditorCallbackButtonUp(), MenuScreen::logic(), PlaySoundFileCallback(), and UIHandleButtonUp().


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

Generated on Sat Feb 21 00:28:25 2009 for Bos Wars by  doxygen 1.5.6