[Overview][Types][Classes][Procedures and functions][Variables] | Reference for unit 'LuaObject' (#pLua)

# TLuaObject

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

## Declaration

Source position: LuaObject.pas line 17

`type TLuaObject = class`
`protected`
`L: Plua_State;` |  | PLua_State to work with.
`FLuaReference: Integer;` |  | Integer ID held in the Lua Registry for this Object.
`FParent: TLuaObject;` |  | Parent TLuaObject (if this is a child object)
`FChildren: TList;` |  | TList containing all children associated with this object.
`function GetLuaProp();` |  |
`procedure SetLuaProp();` |  |
`function GetPropValue(); virtual;` |  |
`function GetPropObject(); virtual;` |  |
`function SetPropValue(); virtual;` |  |
`function SetPropObject(); virtual;` |  |
`function PropIsObject(); virtual;` |  |
`procedure CommonCreate(); virtual;` |  |
`public`
`procedure Create();` |  |
`destructor Destroy; override;` |  |
`procedure PushSelf;` |  | Places the object onto the Lua stack for use.
`procedure CallEvent();` |  | Used to call a Lua Event Handler.
`function EventExists();` |  | Tests to see if a Lua based handler is assigned for the given event.
`property LState: Plua_State; [r]` |  | PLua_State that this TLua object wraps.
`property LuaProp: Variant; [rw]` |  |
`end;`

## Inheritance

`TLuaObject` |  |
`TObject`