QLua
Lua-Qt bindings
Public Member Functions
qlua::WidgetStarLArgConstructor Class Reference

LArgConstructor implementation for QWidget* type. More...

#include <LuaArguments.h>

Inheritance diagram for qlua::WidgetStarLArgConstructor:
Inheritance graph
[legend]
Collaboration diagram for qlua::WidgetStarLArgConstructor:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

LArgConstructor implementation for QWidget* type.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Enumerator