libqmlbind
A C library for creating QML bindings for other languages easily through exporting objects to QML
qmlbind_client_class Struct Reference

an opaque struct to represent a client-side class object (a.k.a. metaclass) to libqmlbind. More...

#include <qmlbind_global.h>

Detailed Description

an opaque struct to represent a client-side class object (a.k.a. metaclass) to libqmlbind.

This is intended to be used in languages where classes are first-class objects, i.e. that have the concept of a class object with which you can generically construct new objects. Examples are python's type class or ruby's Class class. If you have this feautre, you can implement generic qmlbind_client_callbacks for all classes.

In qmlbind_exporter_new(), a qmlbind_client_class pointer can be provided which is forwarded to qmlbind_client_callbacks' new_object() for that purpose. You could use it to transfer an arbitrary object, though.

In other languages, you can ignore this and implement multiple qmlbind_client_callbacks.

A qmlbind_client_class is the rough equivalent of a class inheriting QObject located in code using libqmlbind.


The documentation for this struct was generated from the following file: