$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <luacallback.h>
Public Member Functions | |
luacallback.cpp - Lua callback. | |
LuaCallback (lua_State *lua, lua_Object luaref) | |
virtual | ~LuaCallback () |
virtual void | pushPreamble () |
virtual void | pushInteger (int value) |
virtual void | pushString (const std::string &eventId) |
virtual void | run () |
LuaCallback::LuaCallback | ( | lua_State * | l, | |
lua_Object | f | |||
) |
LuaCallback::~LuaCallback | ( | ) | [virtual] |
LuaActionListener destructor
void LuaCallback::pushPreamble | ( | ) | [virtual] |
Push the preamble on the stack to call the callback. Call this function before pushing the arguments on the lua stack.
void LuaCallback::pushInteger | ( | int | value | ) | [virtual] |
Push a string argument for the callback on the stack.
value | the integer to push on the stack |
void LuaCallback::pushString | ( | const std::string & | s | ) | [virtual] |
Push a string argument for the callback on the stack.
s | the string to push on the stack |
void LuaCallback::run | ( | ) | [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.