|
QLua
Lua-Qt bindings
|
LArgConstructor implementation for QWidget* type.
More...
#include <LuaArguments.h>


Public Member Functions | |
| void | Push (lua_State *L) const |
| Push value on Lua stack, invoked when a value must be returned from a method invoked from Lua. | |
| void | Push (lua_State *L, void *value) const |
| Push value read from a specific memory location on Lua stack, invoked when calling a method as result of signal emission. | |
| WidgetStarLArgConstructor * | Clone () const |
| Return copy of object. | |
| bool | IsQObjectPtr () const |
Return true if type is a pointer to a QObject-derived object. | |
| QMetaType::Type | Type () const |
| Return type of constructed data. | |
LArgConstructor implementation for QWidget* type.
| bool qlua::WidgetStarLArgConstructor::IsQObjectPtr | ( | ) | const [inline, virtual] |
Return true if type is a pointer to a QObject-derived object.
This is required to have the QLua run-time add the passed QObject into the Lua context. The other option is to have LArgConstructors::Push receive a reference to a LuaContext which introduces a two-way dependency between LArgConstructor and LuaContext.
Reimplemented from qlua::LArgConstructor.
1.7.4