Method class reference
[QObject wrapping module]
Declaration
This class is for internal use only.
#include <internal/Property>
namespace QtLua {
class Method;
};
This class is a member of the QtLua namespace.
This class is declared in internal/qtluamethod.hh source file, line 42.
Description
This internal class implements the wrapper which enables invocation of methods of QObject objects from lua.
Members
Inherited members
- 33 members inherited from Member
Types
Function
- Method(const QMetaObject *mo, int index)
Private functions
- virtual void completion_patch(String &path, String &entry, int &offset)
- virtual String get_type_name() const
- virtual String get_value_str() const
- virtual ValueBase::List meta_call(State *ls, const ValueBase::List &args)
- virtual bool support(ValueBase::Operation c) const
Members detail
Method(const QMetaObject *mo, int index)
This constructor is declared in internal/qtluamethod.hh source file, line 46.
This virtual function is declared in internal/qtluamethod.hh source file, line 53.
This member access is private.
This virtual function overrides the completion_patch
virtual function defined in the UserData
base class.
Documentation inherited from base class:
This function may be reimplemented to further modify completion result on console line when completed to a UserData value. This is usefull to append a dot or a pair of brackets access operator to the userdata value name for instance.
Parameters list:
- path: Completion result tables path to userdata value.
- entry: Completion result userdata name. May append to this string directly.
- offset: Cursor offset. May be decreased to place cursor between inserted brackets for instance.
This typedef is declared in QTLUA_REFTYPE function like macro expansion, line 3 in internal/qtluamethod.hh source file, line 44.
Shortcut for Ref smart pointer class to Method type provided for convenience
virtual String get_type_name() const
This virtual function is declared in internal/qtluamethod.hh source file, line 51.
This member access is private.
This virtual function overrides the get_type_name
virtual function defined in the UserData
base class.
Documentation inherited from base class:
This function returns an object type name. The default implementation returns the C++ object type name. This is used for error messages and pretty printing.
The return value is Pretty print object type.
virtual String get_value_str() const
This virtual function is declared in internal/qtluamethod.hh source file, line 52.
This member access is private.
This virtual function overrides the get_value_str
virtual function defined in the UserData
base class.
Documentation inherited from base class:
This function returns an string value describing object value or content. The default implementation returns an hexadecimal object pointer. This is used for mainly for pretty printing.
This virtual function is declared in internal/qtluamethod.hh source file, line 49.
This member access is private.
This virtual function overrides the meta_call
virtual function defined in the UserData
base class.
Documentation inherited from base class:
This function is called when a function invokation operation is performed on a userdata object. The default implementation throws an error message. The UserData::support function must be reimplemented along with this function to report ValueBase::OpCall as supported.
Parameters list:
- args: List of passed arguments.
The return value is List of returned values.
This typedef is declared in QTLUA_REFTYPE function like macro expansion, line 5 in internal/qtluamethod.hh source file, line 44.
Shortcut for Ref smart pointer class to Method type provided for convenience
virtual bool support(ValueBase::Operation c) const
This virtual function is declared in internal/qtluamethod.hh source file, line 50.
This member access is private.
This virtual function overrides the support
virtual function defined in the UserData
base class.
Documentation inherited from base class:
Check given operation support.
See also ValueBase::support function.