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

LuaCallback Class Reference

#include <luacallback.h>

List of all members.


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 ()

Constructor & Destructor Documentation

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

LuaCallback constructor

Parameters:
l Lua state
f Listener function

LuaCallback::~LuaCallback (  )  [virtual]

LuaActionListener destructor


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.


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