____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"#include <widgets.h>

Public Member Functions | |
| LuaActionListener (lua_State *lua, lua_Object function) | |
| virtual void | action (const std::string &eventId) |
| virtual | ~LuaActionListener () |
Definition at line 43 of file widgets.h.
| LuaActionListener::LuaActionListener | ( | lua_State * | l, | |
| lua_Object | f | |||
| ) |
LuaActionListener constructor
| 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.
| 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.
| 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().
1.5.6