libqmlbind
A C library for creating QML bindings for other languages easily through exporting objects to QML
component.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "qmlbind_global.h"
4 
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8 
43 
49 QMLBIND_API void qmlbind_component_release(qmlbind_component *self);
50 
57 QMLBIND_API void qmlbind_component_load_path(qmlbind_component *self, const char *path);
58 
64 QMLBIND_API void qmlbind_component_load_url(qmlbind_component *self, const char *url);
65 
75 QMLBIND_API void qmlbind_component_set_data(qmlbind_component *self, const char *data, const char *path);
76 
90 
101 
103 #ifdef __cplusplus
104 }
105 #endif
an opaque struct mainly used as self argument in the methods defined in qmlbind_component.
Definition: qmlbind_global.h:61
QMLBIND_API qmlbind_value * qmlbind_component_create(qmlbind_component *self)
Create an object instance from this component. Returns a nullptr if creation failed.
an opaque struct mainly used as self argument in the methods defined in qmlbind_value.
Definition: qmlbind_global.h:64
QMLBIND_API qmlbind_string * qmlbind_component_get_error_string(qmlbind_component *self)
Returns a human-readable description of any error.
QMLBIND_API void qmlbind_component_release(qmlbind_component *self)
Destroys the qmlbind_component.
QMLBIND_API void qmlbind_component_load_url(qmlbind_component *self, const char *url)
Sets the qmlbind_component to use the QML code loaded from the provided URL.
QMLBIND_API void qmlbind_component_set_data(qmlbind_component *self, const char *data, const char *path)
Contains all struct definitions of libqmlbind.
QMLBIND_API qmlbind_component * qmlbind_component_new(qmlbind_engine *engine)
Create a new qmlbind_component with no data.
QMLBIND_API void qmlbind_component_load_path(qmlbind_component *self, const char *path)
Sets the qmlbind_component to use the QML code loaded from the provided file path.
an opaque struct mainly used as self argument in the methods defined in qmlbind_engine.
Definition: qmlbind_global.h:60
an opaque struct mainly used as self argument in the methods defined in qmlbind_string.
Definition: qmlbind_global.h:66