DOtherSide
0.7.1
C language library for creating bindings for the Qt QML language
|
Go to the documentation of this file.
33 #define DOS_API __declspec( dllexport )
34 #define DOS_CALL __cdecl
58 DOS_API
void DOS_CALL
dos_qcoreapplication_process_events(DosQEventLoopProcessEventFlag flags = DosQEventLoopProcessEventFlag::DosQEventLoopProcessEventFlagProcessAllEvents);
179 DOS_API
void DOS_CALL
dos_qpixmap_fill(
DosPixmap *vptr,
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
447 const char *className,
461 void(*callback)(
DosQObject* context,
void* data),
463 DosQtConnectionType connection_type);
639 int *rolesPtr,
int rolesLength);
643 int row,
int column,
void *data);
659 int section,
int orientation,
int role);
722 const char *propertyName);
730 const char *propertyName,
745 DosQtConnectionType connection_type);
935 #endif // DOTHERSIDE_H
DOS_API void dos_qvariant_setQObject(DosQVariant *vptr, DosQObject *value)
Calls the QVariant::setValue<QObject*>() function.
DOS_API void dos_qhash_int_qbytearray_insert(DosQHashIntQByteArray *vptr, int key, const char *value)
Calls the QHash<int, QByteArray>::insert() function.
void DosQAbstractListModel
A pointer to a QAbstractListModel.
Definition: DOtherSideTypes.h:57
void DosQAbstractItemModel
A pointer to a QAbstractItemModel.
Definition: DOtherSideTypes.h:54
DOS_API DosQVariant * dos_qvariant_create_array(int size, DosQVariant **array)
Create a new QVariant holding a QVariantList.
DOS_API DosQObject * dos_qvariant_toQObject(const DosQVariant *vptr)
Calls the QVariant::value<QObject*>() function.
DOS_API char * dos_qurl_to_string(const DosQUrl *vptr)
Calls the QUrl::toString() function.
DOS_API void dos_qqmlapplicationengine_load_data(DosQQmlApplicationEngine *vptr, const char *data)
Calls the QQmlApplicationEngine::loadData function.
DOS_API void dos_chararray_delete(char *ptr)
Free the memory allocated for the given UTF-8 string.
DOS_API DosQModelIndex * dos_qabstractlistmodel_parent(DosQAbstractListModel *vptr, DosQModelIndex *child)
Calls the default QAbstractListModel::parent() function.
DOS_API int dos_qabstractitemmodel_flags(DosQAbstractItemModel *vptr, DosQModelIndex *index)
Calls the QAbstractItemModel::flags function.
DOS_API DosQVariant * dos_qvariant_create_bool(bool value)
Create a new QVariant holding a bool value.
DOS_API DosQModelIndex * dos_qabstracttablemodel_index(DosQAbstractTableModel *vptr, int row, int column, DosQModelIndex *parent)
Calls the default QAbstractTableModel::index() function.
DOS_API DosPixmap * dos_qpixmap_create()
Creates a null QPixmap.
DOS_API void dos_qvariant_setDouble(DosQVariant *vptr, double value)
Calls the QVariant::setValue<double>() function.
DOS_API void dos_qqmlapplicationengine_load(DosQQmlApplicationEngine *vptr, const char *filename)
Calls the QQmlApplicationEngine::load function.
Represents a set of slot definitions.
Definition: DOtherSideTypes.h:317
DOS_API void dos_qvariant_setArray(DosQVariant *vptr, int size, DosQVariant **array)
Calls the QVariant::setValue<QVariantList>() function.
DOS_API char * dos_qquickview_source(const DosQQuickView *vptr)
Calls the QQuickView::source() function.
DOS_API int dos_qvariant_toInt(const DosQVariant *vptr)
Calls the QVariant::value<int>() function.
DOS_API void dos_qmodelindex_assign(DosQModelIndex *l, const DosQModelIndex *r)
Calls the QModelIndex::operator=(const QModelIndex&) function.
DOS_API void dos_qquickimageprovider_delete(DosQQuickImageProvider *vptr)
\breif Frees a QQuickImageProvider
Represents a set of property definitions.
Definition: DOtherSideTypes.h:349
DOS_API int dos_qabstractlistmodel_columnCount(DosQAbstractListModel *vptr, DosQModelIndex *parent)
Calls the default QAbstractListModel::columnCount() function.
DOS_API DosQModelIndex * dos_qabstractitemmodel_createIndex(DosQAbstractItemModel *vptr, int row, int column, void *data)
Calls the QAbstractItemModel::createIndex() function.
DOS_API void * dos_qmodelindex_internalPointer(DosQModelIndex *vptr)
Calls the QModelIndex::internalPointer function.
DOS_API void dos_qabstractitemmodel_beginInsertRows(DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
Calls the QAbstractItemModel::beginInsertRows() function.
DOS_API void dos_qabstractitemmodel_beginResetModel(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::beginResetModel() function.
void DosQQmlApplicationEngine
A pointer to a QQmlApplicationEngine.
Definition: DOtherSideTypes.h:63
DOS_API void dos_qabstractitemmodel_endRemoveColumns(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::endRemoveColumns() function.
DOS_API DosPixmap * dos_qpixmap_create_qpixmap(const DosPixmap *other)
Creates a QPixmap copied from another.
DOS_API DosQMetaObject * dos_qabstracttablemodel_qmetaobject(void)
Return QMetaObject associated to the QAbstractTableModel class.
Store an array of QVariant.
Definition: DOtherSideTypes.h:222
void DosQObject
A pointer to a QObject.
Definition: DOtherSideTypes.h:81
DOS_API DosQVariant * dos_qvariant_create_float(float value)
Create a new QVariant holding a float value.
DOS_API DosQModelIndex * dos_qmodelindex_sibling(const DosQModelIndex *vptr, int row, int column)
Calls the QModelIndex::sibling() function.
DOS_API DosQModelIndex * dos_qabstracttablemodel_parent(DosQAbstractTableModel *vptr, DosQModelIndex *child)
Calls the default QAbstractTableModel::parent() function.
DOS_API void dos_qobject_signal_emit(DosQObject *vptr, const char *name, int parametersCount, void **parameters)
Emit a signal definited in a QObject.
DOS_API bool dos_qvariant_isnull(const DosQVariant *vptr)
Calls the QVariant::isNull function.
DOS_API void dos_qabstractitemmodel_beginRemoveColumns(DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
Calls the QAbstractItemModel::beginRemovetColumns() function.
The data needed for registering a custom type in the QML environment.
Definition: DOtherSideTypes.h:241
DOS_API bool dos_qmodelindex_isValid(const DosQModelIndex *vptr)
Calls the QModelIndex::isvalid() function.
DOS_API char * dos_signal_macro(const char *str)
Return the equivalent of SIGNAL(str) macro invokation.
DOS_API void dos_qapplication_exec(void)
Calls the QApplication::exec() function of the current QGuiApplication.
void DosPixmap
A pointer to a QPixmap.
Definition: DOtherSideTypes.h:87
DOS_API DosQObject * dos_qpointer_data(DosQPointer *self)
Return a pointer to the tracked DosQObject.
DOS_API void dos_qcoreapplication_process_events(DosQEventLoopProcessEventFlag flags=DosQEventLoopProcessEventFlag::DosQEventLoopProcessEventFlagProcessAllEvents)
Force the event loop to spin and process the given events.
DOS_API void dos_qquickview_set_source_url(DosQQuickView *vptr, DosQUrl *url)
Calls the QQuickView::setSource() function.
void DosQMetaObject
A pointer to a QMetaObject.
Definition: DOtherSideTypes.h:78
DOS_API void dos_qapplication_quit(void)
Calls the QApplication::quit() function of the current QGuiApplication.
DOS_API void dos_qpixmap_load(DosPixmap *vptr, const char *filepath, const char *format)
Load image data into a QPixmap from an image file.
DOS_API DosQVariant * dos_qvariant_create_qvariant(const DosQVariant *value)
Create a new QVariant with the same value of the one given as argument.
DOS_API void dos_qabstractitemmodel_beginRemoveRows(DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
Calls the QAbstractItemModel::beginRemovetRows() function.
DOS_API float dos_qvariant_toFloat(const DosQVariant *vptr)
Calls the QVariant::value<float>() function.
DOS_API DosQAbstractItemModel * dos_qabstractitemmodel_create(void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
Create a new QAbstractItemModel.
DOS_API void dos_qvariant_delete(DosQVariant *vptr)
Free the memory allocated for the given QVariant.
DOS_API void dos_qpixmap_loadFromData(DosPixmap *vptr, const unsigned char *data, unsigned int len)
Load image data into a QPixmap from a buffer.
DOS_API char * dos_qhash_int_qbytearray_value(const DosQHashIntQByteArray *vptr, int key)
Calls the QHash<int, QByteArray>::value() function.
DOS_API DosQModelIndex * dos_qabstractlistmodel_index(DosQAbstractListModel *vptr, int row, int column, DosQModelIndex *parent)
Calls the default QAbstractListModel::index() function.
DOS_API void dos_qabstractitemmodel_endInsertRows(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::endInsertRows() function.
DOS_API void dos_qvariant_setFloat(DosQVariant *vptr, float value)
Calls the QVariant::setValue<float>() function.
DOS_API DosQAbstractListModel * dos_qabstractlistmodel_create(void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
Create a new QAbstractListModel.
DOS_API int dos_qmodelindex_row(const DosQModelIndex *vptr)
Calls the QModelIndex::row() function.
DOS_API void dos_qqmlapplicationengine_addImageProvider(DosQQmlApplicationEngine *vptr, const char *name, DosQQuickImageProvider *vptr_i)
Calls the QQMLApplicationengine::addImageProvider
DOS_API void dos_qguiapplication_delete(void)
Free the memory of the current QGuiApplication.
DOS_API char * dos_qvariant_toString(const DosQVariant *vptr)
Calls the QVariant::value<QString>() function.
DOS_API int dos_qdeclarative_qmlregistertype(const QmlRegisterType *qmlRegisterType)
Register a type in order to be instantiable from QML.
DOS_API void dos_qquickview_set_source(DosQQuickView *vptr, const char *filename)
Calls the QQuickView::setSource() function.
DOS_API DosQQuickView * dos_qquickview_create(void)
Create a new QQuickView.
DOS_API DosPixmap * dos_qpixmap_create_width_and_height(int width, int height)
Create a new QPixmap.
DOS_API void dos_qquickstyle_set_fallback_style(const char *style)
Set the QtQuickControls2 fallback style.
DOS_API DosQQmlContext * dos_qqmlapplicationengine_context(DosQQmlApplicationEngine *vptr)
Calls the QQmlApplicationEngine::context.
DOS_API DosQQmlApplicationEngine * dos_qqmlapplicationengine_create(void)
Create a new QQmlApplicationEngine.
DOS_API void dos_qvariantarray_delete(DosQVariantArray *ptr)
Delete a DosQVariantArray.
DOS_API char * dos_qcoreapplication_application_dir_path(void)
Return the QCore::applicationDirPath.
void DosQPointer
A pointer to a QPointer.
Definition: DOtherSideTypes.h:90
DOS_API DosQHashIntQByteArray * dos_qhash_int_qbytearray_create(void)
Create a new QHash<int, QByteArray>
DOS_API void dos_qvariant_setString(DosQVariant *vptr, const char *value)
Calls the QVariant::setValue<QString>() function.
Represents a set of signal definitions.
Definition: DOtherSideTypes.h:289
DOS_API void dos_qcoreapplication_process_events_timed(DosQEventLoopProcessEventFlag flags, int ms)
Force the event loop to spin and process the given events until no more available or timed out.
DOS_API void dos_qvariant_setBool(DosQVariant *vptr, bool value)
Calls the QVariant::setValue<bool>() function.
DOS_API DosQMetaObject * dos_qabstractitemmodel_qmetaobject(void)
Return QMetaObject associated to the QAbstractItemModel class.
DOS_API DosQObject * dos_qobject_create(void *dObjectPointer, DosQMetaObject *metaObject, DObjectCallback dObjectCallback)
Create a new QObject.
DOS_API void dos_qabstractitemmodel_endRemoveRows(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::endRemoveRows() function.
DOS_API DosQVariant * dos_qvariant_create_int(int value)
Create a new QVariant holding an int value.
DOS_API DosQQmlContext * dos_qquickview_rootContext(DosQQuickView *vptr)
Return the QQuickView::rootContext() as a QQuickContext.
void DosQVariant
A pointer to a QVariant.
Definition: DOtherSideTypes.h:48
DOS_API void dos_qabstractitemmodel_fetchMore(DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
Calls the QAbstractItemModel::fetchMore function.
DOS_API bool dos_qabstractitemmodel_hasIndex(DosQAbstractItemModel *vptr, int row, int column, DosQModelIndex *dosParentIndex)
Calls the QAbstractItemModel::hasIndex function.
DOS_API void dos_qvariant_setInt(DosQVariant *vptr, int value)
Calls the QVariant::setValue<int>() function.
DOS_API DosQAbstractTableModel * dos_qabstracttablemodel_create(void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
Create a new QAbstractTableModel.
DOS_API void dos_qobject_setObjectName(DosQObject *vptr, const char *name)
Calls the QObject::setObjectName() function.
DOS_API void dos_qresource_register(const char *filename)
Register the given .rcc (compiled) file in the resource system.
void DosQUrl
A pointer to a QUrl.
Definition: DOtherSideTypes.h:75
DOS_API void dos_qpointer_clear(DosQPointer *self)
Clear the QPointer.
DOS_API DosQVariant * dos_qvariant_create_double(double value)
Create a new QVariant holding a double value.
DOS_API bool dos_qabstractitemmodel_setData(DosQAbstractItemModel *vptr, DosQModelIndex *index, DosQVariant *data, int role)
Calls the QAbstractItemModel::setData function.
void DosQQmlContext
A pointer to a QQmlContext.
Definition: DOtherSideTypes.h:69
DOS_API void dos_qpointer_delete(DosQPointer *self)
Free the memory allocated for the given QPointer.
DOS_API void dos_qpixmap_delete(DosPixmap *vptr)
Frees a QPixmap.
DOS_API bool dos_qpixmap_isNull(DosPixmap *vptr)
Calls the QPixmap::isNull.
void DosQHashIntQByteArray
A pointer to a QHash<int,QByteArray>
Definition: DOtherSideTypes.h:72
DOS_API void dos_qabstractitemmodel_endInsertColumns(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::endInsertColumns() function.
void(* RequestPixmapCallback)(const char *id, int *width, int *height, int requestedWidth, int requestedHeight, DosPixmap *result)
Definition: DOtherSideTypes.h:101
DOS_API void dos_qquickview_set_resize_mode(DosQQuickView *vptr, int resizeMode)
Calls the QQuickView::setResizeMode() function.
DOS_API void dos_qpixmap_fill(DosPixmap *vptr, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Fill a QPixmap with a single color.
DOS_API void dos_qabstractitemmodel_beginInsertColumns(DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
Calls the QAbstractItemModel::beginInsertColumns() function.
DOS_API DosQVariantArray * dos_qvariant_toArray(const DosQVariant *vptr)
Calls the QVariant::value<QVariantList>() function.
DOS_API void dos_qqmlapplicationengine_load_url(DosQQmlApplicationEngine *vptr, DosQUrl *url)
Calls the QQmlApplicationEngine::load function.
void(* DObjectCallback)(void *self, DosQVariant *slotName, int argc, DosQVariant **argv)
Definition: DOtherSideTypes.h:114
DOS_API DosQModelIndex * dos_qmodelindex_child(const DosQModelIndex *vptr, int row, int column)
Calls the QModelIndex::child() function.
DOS_API char * dos_qobject_objectName(const DosQObject *vptr)
Return the DosQObject objectName.
DOS_API bool dos_qobject_setProperty(DosQObject *vptr, const char *propertyName, DosQVariant *value)
Write Value to a property by its name.
void DosQModelIndex
A pointer to a QModelIndex.
Definition: DOtherSideTypes.h:51
DOS_API DosQUrl * dos_qurl_create(const char *url, int parsingMode)
Create a new QUrl.
DOS_API DosQPointer * dos_qpointer_create(DosQObject *object)
Create a new QPointer with the given DosQObject.
DOS_API bool dos_qpointer_is_null(DosQPointer *self)
Test the QPointer for nullness.
DOS_API void dos_qguiapplication_create(void)
Create a QGuiApplication.
DOS_API DosQModelIndex * dos_qmodelindex_parent(const DosQModelIndex *vptr)
Calls the QModelIndex::parent() function.
DOS_API void dos_qvariant_assign(DosQVariant *vptr, const DosQVariant *other)
Calls the QVariant::operator=(const QVariant&) function.
DOS_API void dos_qguiapplication_quit(void)
Calls the QGuiApplication::quit() function of the current QGuiApplication.
DOS_API DosQQuickImageProvider * dos_qquickimageprovider_create(RequestPixmapCallback callback)
Create a new QQuickImageProvider.
DOS_API void dos_qobject_deleteLater(DosQObject *vptr)
Free the memory allocated for the QObject in the next event loop cycle.
void DosQAbstractTableModel
A pointer to a QAbstractTableModel.
Definition: DOtherSideTypes.h:60
DOS_API char * dos_qqmlcontext_baseUrl(const DosQQmlContext *vptr)
Calls the QQmlContext::baseUrl function.
DOS_API DosQVariant * dos_qvariant_create_qobject(DosQObject *value)
Create a new QVariant holding a QObject value.
DOS_API DosQMetaObject * dos_qabstractlistmodel_qmetaobject(void)
Return QMetaObject associated to the QAbstractListModel class.
DOS_API void dos_qguiapplication_exec(void)
Calls the QGuiApplication::exec() function of the current QGuiApplication.
DOS_API double dos_qvariant_toDouble(const DosQVariant *vptr)
Calls the QVariant::value<double>() function.
DOS_API void dos_qabstractitemmodel_dataChanged(DosQAbstractItemModel *vptr, const DosQModelIndex *topLeft, const DosQModelIndex *bottomRight, int *rolesPtr, int rolesLength)
Emit the dataChanged signal.
DOS_API int dos_qdeclarative_qmlregistersingletontype(const QmlRegisterType *qmlRegisterType)
Register a singleton type in order to be accessible from QML.
DOS_API bool dos_qabstractitemmodel_hasChildren(DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
Calls the QAbstractItemModel::hasChildren function.
DOS_API void dos_qapplication_create(void)
Create a QApplication.
DOS_API void dos_qobject_delete(DosQObject *vptr)
Free the memory allocated for the QObject.
DOS_API void dos_qhash_int_qbytearray_delete(DosQHashIntQByteArray *vptr)
Free the memory allocated for the QHash<int, QByteArray>
DOS_API void dos_qobject_connect_static(DosQObject *sender, const char *signal, DosQObject *receiver, const char *slot, DosQtConnectionType connection_type)
Connect an object signal to another object signal or slot.
DOS_API DosQModelIndex * dos_qmodelindex_create(void)
Create a new QModelIndex()
DOS_API void dos_qquickview_delete(DosQQuickView *vptr)
Free the memory allocated for the given QQuickView.
DOS_API DosQVariant * dos_qobject_property(DosQObject *vptr, const char *propertyName)
Read Value of a property by its name.
DOS_API bool dos_qvariant_toBool(const DosQVariant *vptr)
Calls the QVariant::value<bool>() function.
DOS_API void dos_qqmlapplicationengine_delete(DosQQmlApplicationEngine *vptr)
Free the memory allocated for the given QQmlApplicationEngine.
void DosQQuickImageProvider
A pointer to a QQuickImageProvider.
Definition: DOtherSideTypes.h:84
Incapsulate all the QAbstractItemModel callbacks.
Definition: DOtherSideTypes.h:361
DOS_API void dos_qpixmap_assign(DosPixmap *vptr, const DosPixmap *other)
Calls the QPixmap::operator=(const QPixmap&) function.
DOS_API void dos_qapplication_delete(void)
Free the memory of the current QApplication.
DOS_API DosQVariant * dos_qvariant_create(void)
Create a new QVariant (null)
DOS_API void dos_qquickview_show(DosQQuickView *vptr)
Calls the QQuickView::show() function.
DOS_API bool dos_qabstractitemmodel_canFetchMore(DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
Calls the QAbstractItemModel::canFetchMore function.
DOS_API DosQMetaObject * dos_qobject_qmetaobject(void)
Return QMetaObject associated to the QObject class.
DOS_API char * dos_slot_macro(const char *str)
Return the equivalent of SLOT(str) macro invokation.
void DosQQuickView
A pointer to a QQuickView.
Definition: DOtherSideTypes.h:66
DOS_API DosQVariant * dos_qabstractitemmodel_headerData(DosQAbstractItemModel *vptr, int section, int orientation, int role)
Calls the QAbstractItemModel::headerData function.
DOS_API void dos_qqmlapplicationengine_add_import_path(DosQQmlApplicationEngine *vptr, const char *path)
Calls the QQmlApplicationEngine::addImportPath function.
DOS_API DosQVariant * dos_qvariant_create_string(const char *value)
Create a new QVariant holding a string value.
DOS_API void dos_qqmlcontext_setcontextproperty(DosQQmlContext *vptr, const char *name, DosQVariant *value)
Sets a property inside the context.
DOS_API bool dos_qurl_isValid(const DosQUrl *vptr)
Class the QUrl::isValid() function.
DOS_API void dos_qabstractitemmodel_endResetModel(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::endResetModel() function.
DOS_API DosQVariant * dos_qmodelindex_data(const DosQModelIndex *vptr, int role)
Calls the QModelIndex::data() function.
DOS_API void dos_qmodelindex_delete(DosQModelIndex *vptr)
Free the memory allocated for the QModelIndex.
DOS_API void dos_qobject_disconnect_static(DosQObject *sender, const char *signal, DosQObject *receiver, const char *slot)
Disconnect an object slot or signal from an object signal.
DOS_API DosQHashIntQByteArray * dos_qabstractitemmodel_roleNames(DosQAbstractItemModel *vptr)
Calls the QAbstractItemModel::roleNames function.
DOS_API void dos_qquickstyle_set_style(const char *style)
Set the QtQuickControls2 style.
DOS_API int dos_qmodelindex_column(const DosQModelIndex *vptr)
Calls the QModelIndex::column() function.
DOS_API DosQModelIndex * dos_qmodelindex_create_qmodelindex(DosQModelIndex *index)
Create a new QModelIndex() copy constructed with given index.
DOS_API void dos_qurl_delete(DosQUrl *vptr)
Free the memory allocated for the QUrl.