#include <luacallback.h>
LuaCallback::LuaCallback |
( |
lua_State * |
l, |
|
|
lua_Object |
f |
|
) |
| |
LuaCallback constructor
- Parameters
-
l | Lua state |
f | Listener function |
LuaCallback::~LuaCallback |
( |
| ) |
|
bool LuaCallback::popBoolean |
( |
| ) |
|
Pops a boolean value for the callback on the stack.
int LuaCallback::popInteger |
( |
| ) |
|
Pops an integer value for the callback on the stack.
void LuaCallback::pushInteger |
( |
int |
value | ) |
|
Push a string argument for the callback on the stack.
- Parameters
-
value | the integer to push on the stack |
void LuaCallback::pushIntegers |
( |
const std::vector< int > & |
values | ) |
|
Push a array of integers from callback to stack
- Parameters
-
value | the integer to push on the stack |
void LuaCallback::pushPreamble |
( |
| ) |
|
Push the preamble on the stack to call the callback. Call this function before pushing the arguments on the lua stack.
void LuaCallback::pushString |
( |
const std::string & |
s | ) |
|
Push a string argument for the callback on the stack.
- Parameters
-
s | the string to push on the stack |
void LuaCallback::run |
( |
int |
results = 0 | ) |
|
Called when an action is received from a Widget. It is used to be able to receive a notification that an action has occurred.
- Parameters
-
results | the number of results to be expected in call |
The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The