DOtherSide  0.7.1
C language library for creating bindings for the Qt QML language
Macros | Functions
DOtherSide.h File Reference

The DOtherSide API file. More...

#include <DOtherSide/DOtherSideTypes.h>

Go to the source code of this file.

Functions

DOS_API char * dos_qcoreapplication_application_dir_path (void)
 Return the QCore::applicationDirPath. More...
 
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_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_qguiapplication_create (void)
 Create a QGuiApplication. More...
 
DOS_API void dos_qguiapplication_exec (void)
 Calls the QGuiApplication::exec() function of the current QGuiApplication. More...
 
DOS_API void dos_qguiapplication_quit (void)
 Calls the QGuiApplication::quit() function of the current QGuiApplication. More...
 
DOS_API void dos_qguiapplication_delete (void)
 Free the memory of the current QGuiApplication. More...
 
DOS_API void dos_qapplication_create (void)
 Create a QApplication. More...
 
DOS_API void dos_qapplication_exec (void)
 Calls the QApplication::exec() function of the current QGuiApplication. More...
 
DOS_API void dos_qapplication_quit (void)
 Calls the QApplication::quit() function of the current QGuiApplication. More...
 
DOS_API void dos_qapplication_delete (void)
 Free the memory of the current QApplication. More...
 
DOS_API DosQQmlApplicationEnginedos_qqmlapplicationengine_create (void)
 Create a new QQmlApplicationEngine. More...
 
DOS_API void dos_qqmlapplicationengine_load (DosQQmlApplicationEngine *vptr, const char *filename)
 Calls the QQmlApplicationEngine::load function. More...
 
DOS_API void dos_qqmlapplicationengine_load_url (DosQQmlApplicationEngine *vptr, DosQUrl *url)
 Calls the QQmlApplicationEngine::load function. More...
 
DOS_API void dos_qqmlapplicationengine_load_data (DosQQmlApplicationEngine *vptr, const char *data)
 Calls the QQmlApplicationEngine::loadData function. More...
 
DOS_API void dos_qqmlapplicationengine_add_import_path (DosQQmlApplicationEngine *vptr, const char *path)
 Calls the QQmlApplicationEngine::addImportPath function. More...
 
DOS_API DosQQmlContextdos_qqmlapplicationengine_context (DosQQmlApplicationEngine *vptr)
 Calls the QQmlApplicationEngine::context. More...
 
DOS_API void dos_qqmlapplicationengine_addImageProvider (DosQQmlApplicationEngine *vptr, const char *name, DosQQuickImageProvider *vptr_i)
 Calls the QQMLApplicationengine::addImageProvider
More...
 
DOS_API void dos_qqmlapplicationengine_delete (DosQQmlApplicationEngine *vptr)
 Free the memory allocated for the given QQmlApplicationEngine. More...
 
DOS_API DosQQuickImageProviderdos_qquickimageprovider_create (RequestPixmapCallback callback)
 Create a new QQuickImageProvider. More...
 
DOS_API void dos_qquickimageprovider_delete (DosQQuickImageProvider *vptr)
 \breif Frees a QQuickImageProvider
 
DOS_API DosPixmapdos_qpixmap_create ()
 Creates a null QPixmap.
 
DOS_API DosPixmapdos_qpixmap_create_qpixmap (const DosPixmap *other)
 Creates a QPixmap copied from another.
 
DOS_API DosPixmapdos_qpixmap_create_width_and_height (int width, int height)
 Create a new QPixmap.
 
DOS_API void dos_qpixmap_delete (DosPixmap *vptr)
 Frees a QPixmap.
 
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 void dos_qpixmap_loadFromData (DosPixmap *vptr, const unsigned char *data, unsigned int len)
 Load image data into a QPixmap from a buffer.
 
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_qpixmap_assign (DosPixmap *vptr, const DosPixmap *other)
 Calls the QPixmap::operator=(const QPixmap&) function. More...
 
DOS_API bool dos_qpixmap_isNull (DosPixmap *vptr)
 Calls the QPixmap::isNull. More...
 
DOS_API void dos_qquickstyle_set_style (const char *style)
 Set the QtQuickControls2 style.
 
DOS_API void dos_qquickstyle_set_fallback_style (const char *style)
 Set the QtQuickControls2 fallback style.
 
DOS_API DosQQuickViewdos_qquickview_create (void)
 Create a new QQuickView. More...
 
DOS_API void dos_qquickview_show (DosQQuickView *vptr)
 Calls the QQuickView::show() function. More...
 
DOS_API char * dos_qquickview_source (const DosQQuickView *vptr)
 Calls the QQuickView::source() function. More...
 
DOS_API void dos_qquickview_set_source_url (DosQQuickView *vptr, DosQUrl *url)
 Calls the QQuickView::setSource() function. More...
 
DOS_API void dos_qquickview_set_source (DosQQuickView *vptr, const char *filename)
 Calls the QQuickView::setSource() function. More...
 
DOS_API void dos_qquickview_set_resize_mode (DosQQuickView *vptr, int resizeMode)
 Calls the QQuickView::setResizeMode() function. More...
 
DOS_API void dos_qquickview_delete (DosQQuickView *vptr)
 Free the memory allocated for the given QQuickView. More...
 
DOS_API DosQQmlContextdos_qquickview_rootContext (DosQQuickView *vptr)
 Return the QQuickView::rootContext() as a QQuickContext. More...
 
DOS_API char * dos_qqmlcontext_baseUrl (const DosQQmlContext *vptr)
 Calls the QQmlContext::baseUrl function. More...
 
DOS_API void dos_qqmlcontext_setcontextproperty (DosQQmlContext *vptr, const char *name, DosQVariant *value)
 Sets a property inside the context. More...
 
DOS_API void dos_chararray_delete (char *ptr)
 Free the memory allocated for the given UTF-8 string. More...
 
DOS_API void dos_qvariantarray_delete (DosQVariantArray *ptr)
 Delete a DosQVariantArray.
 
DOS_API DosQVariantdos_qvariant_create (void)
 Create a new QVariant (null) More...
 
DOS_API DosQVariantdos_qvariant_create_int (int value)
 Create a new QVariant holding an int value. More...
 
DOS_API DosQVariantdos_qvariant_create_bool (bool value)
 Create a new QVariant holding a bool value. More...
 
DOS_API DosQVariantdos_qvariant_create_string (const char *value)
 Create a new QVariant holding a string value. More...
 
DOS_API DosQVariantdos_qvariant_create_qobject (DosQObject *value)
 Create a new QVariant holding a QObject value. More...
 
DOS_API DosQVariantdos_qvariant_create_qvariant (const DosQVariant *value)
 Create a new QVariant with the same value of the one given as argument. More...
 
DOS_API DosQVariantdos_qvariant_create_float (float value)
 Create a new QVariant holding a float value. More...
 
DOS_API DosQVariantdos_qvariant_create_double (double value)
 Create a new QVariant holding a double value. More...
 
DOS_API DosQVariantdos_qvariant_create_array (int size, DosQVariant **array)
 Create a new QVariant holding a QVariantList. More...
 
DOS_API void dos_qvariant_setInt (DosQVariant *vptr, int value)
 Calls the QVariant::setValue<int>() function. More...
 
DOS_API void dos_qvariant_setBool (DosQVariant *vptr, bool value)
 Calls the QVariant::setValue<bool>() function. More...
 
DOS_API void dos_qvariant_setFloat (DosQVariant *vptr, float value)
 Calls the QVariant::setValue<float>() function. More...
 
DOS_API void dos_qvariant_setDouble (DosQVariant *vptr, double value)
 Calls the QVariant::setValue<double>() function. More...
 
DOS_API void dos_qvariant_setString (DosQVariant *vptr, const char *value)
 Calls the QVariant::setValue<QString>() function. More...
 
DOS_API void dos_qvariant_setQObject (DosQVariant *vptr, DosQObject *value)
 Calls the QVariant::setValue<QObject*>() function. More...
 
DOS_API void dos_qvariant_setArray (DosQVariant *vptr, int size, DosQVariant **array)
 Calls the QVariant::setValue<QVariantList>() function. More...
 
DOS_API bool dos_qvariant_isnull (const DosQVariant *vptr)
 Calls the QVariant::isNull function. More...
 
DOS_API void dos_qvariant_delete (DosQVariant *vptr)
 Free the memory allocated for the given QVariant. More...
 
DOS_API void dos_qvariant_assign (DosQVariant *vptr, const DosQVariant *other)
 Calls the QVariant::operator=(const QVariant&) function. More...
 
DOS_API int dos_qvariant_toInt (const DosQVariant *vptr)
 Calls the QVariant::value<int>() function. More...
 
DOS_API bool dos_qvariant_toBool (const DosQVariant *vptr)
 Calls the QVariant::value<bool>() function. More...
 
DOS_API char * dos_qvariant_toString (const DosQVariant *vptr)
 Calls the QVariant::value<QString>() function. More...
 
DOS_API float dos_qvariant_toFloat (const DosQVariant *vptr)
 Calls the QVariant::value<float>() function. More...
 
DOS_API double dos_qvariant_toDouble (const DosQVariant *vptr)
 Calls the QVariant::value<double>() function. More...
 
DOS_API DosQVariantArraydos_qvariant_toArray (const DosQVariant *vptr)
 Calls the QVariant::value<QVariantList>() function. More...
 
DOS_API DosQObjectdos_qvariant_toQObject (const DosQVariant *vptr)
 Calls the QVariant::value<QObject*>() function. More...
 
DOS_API DosQMetaObjectdos_qmetaobject_create (DosQMetaObject *superClassMetaObject, const char *className, const SignalDefinitions *signalDefinitions, const SlotDefinitions *slotDefinitions, const PropertyDefinitions *propertyDefinitions)
 Create a new QMetaObject. More...
 
DOS_API void dos_qmetaobject_delete (DosQMetaObject *vptr)
 Free the memory allocated for the given QMetaObject. More...
 
DOS_API bool dos_qmetaobject_invoke_method (DosQObject *context, void(*callback)(DosQObject *context, void *data), void *data, DosQtConnectionType connection_type)
 Invoke a function with the given data. More...
 
DOS_API DosQMetaObjectdos_qabstractlistmodel_qmetaobject (void)
 Return QMetaObject associated to the QAbstractListModel class. More...
 
DOS_API DosQAbstractListModeldos_qabstractlistmodel_create (void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
 Create a new QAbstractListModel. More...
 
DOS_API DosQModelIndexdos_qabstractlistmodel_index (DosQAbstractListModel *vptr, int row, int column, DosQModelIndex *parent)
 Calls the default QAbstractListModel::index() function.
 
DOS_API DosQModelIndexdos_qabstractlistmodel_parent (DosQAbstractListModel *vptr, DosQModelIndex *child)
 Calls the default QAbstractListModel::parent() function.
 
DOS_API int dos_qabstractlistmodel_columnCount (DosQAbstractListModel *vptr, DosQModelIndex *parent)
 Calls the default QAbstractListModel::columnCount() function.
 
DOS_API DosQMetaObjectdos_qabstracttablemodel_qmetaobject (void)
 Return QMetaObject associated to the QAbstractTableModel class. More...
 
DOS_API DosQAbstractTableModeldos_qabstracttablemodel_create (void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
 Create a new QAbstractTableModel. More...
 
DOS_API DosQModelIndexdos_qabstracttablemodel_index (DosQAbstractTableModel *vptr, int row, int column, DosQModelIndex *parent)
 Calls the default QAbstractTableModel::index() function.
 
DOS_API DosQModelIndexdos_qabstracttablemodel_parent (DosQAbstractTableModel *vptr, DosQModelIndex *child)
 Calls the default QAbstractTableModel::parent() function.
 
DOS_API DosQMetaObjectdos_qabstractitemmodel_qmetaobject (void)
 Return QMetaObject associated to the QAbstractItemModel class. More...
 
DOS_API DosQAbstractItemModeldos_qabstractitemmodel_create (void *callbackObject, DosQMetaObject *metaObject, DObjectCallback dObjectCallback, DosQAbstractItemModelCallbacks *callbacks)
 Create a new QAbstractItemModel. More...
 
DOS_API bool dos_qabstractitemmodel_setData (DosQAbstractItemModel *vptr, DosQModelIndex *index, DosQVariant *data, int role)
 Calls the QAbstractItemModel::setData function. More...
 
DOS_API DosQHashIntQByteArraydos_qabstractitemmodel_roleNames (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::roleNames function. More...
 
DOS_API int dos_qabstractitemmodel_flags (DosQAbstractItemModel *vptr, DosQModelIndex *index)
 Calls the QAbstractItemModel::flags function. More...
 
DOS_API DosQVariantdos_qabstractitemmodel_headerData (DosQAbstractItemModel *vptr, int section, int orientation, int role)
 Calls the QAbstractItemModel::headerData function. More...
 
DOS_API bool dos_qabstractitemmodel_hasChildren (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::hasChildren function.
 
DOS_API bool dos_qabstractitemmodel_hasIndex (DosQAbstractItemModel *vptr, int row, int column, DosQModelIndex *dosParentIndex)
 Calls the QAbstractItemModel::hasIndex function.
 
DOS_API bool dos_qabstractitemmodel_canFetchMore (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::canFetchMore function.
 
DOS_API void dos_qabstractitemmodel_fetchMore (DosQAbstractItemModel *vptr, DosQModelIndex *parentIndex)
 Calls the QAbstractItemModel::fetchMore function.
 
DOS_API void dos_qabstractitemmodel_beginInsertRows (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginInsertRows() function. More...
 
DOS_API void dos_qabstractitemmodel_endInsertRows (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endInsertRows() function. More...
 
DOS_API void dos_qabstractitemmodel_beginRemoveRows (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginRemovetRows() function. More...
 
DOS_API void dos_qabstractitemmodel_endRemoveRows (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endRemoveRows() function. More...
 
DOS_API void dos_qabstractitemmodel_beginInsertColumns (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginInsertColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_endInsertColumns (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endInsertColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_beginRemoveColumns (DosQAbstractItemModel *vptr, DosQModelIndex *parent, int first, int last)
 Calls the QAbstractItemModel::beginRemovetColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_endRemoveColumns (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endRemoveColumns() function. More...
 
DOS_API void dos_qabstractitemmodel_beginResetModel (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::beginResetModel() function. More...
 
DOS_API void dos_qabstractitemmodel_endResetModel (DosQAbstractItemModel *vptr)
 Calls the QAbstractItemModel::endResetModel() function. More...
 
DOS_API void dos_qabstractitemmodel_dataChanged (DosQAbstractItemModel *vptr, const DosQModelIndex *topLeft, const DosQModelIndex *bottomRight, int *rolesPtr, int rolesLength)
 Emit the dataChanged signal. More...
 
DOS_API DosQModelIndexdos_qabstractitemmodel_createIndex (DosQAbstractItemModel *vptr, int row, int column, void *data)
 Calls the QAbstractItemModel::createIndex() function.
 
DOS_API DosQMetaObjectdos_qobject_qmetaobject (void)
 Return QMetaObject associated to the QObject class. More...
 
DOS_API DosQObjectdos_qobject_create (void *dObjectPointer, DosQMetaObject *metaObject, DObjectCallback dObjectCallback)
 Create a new QObject. More...
 
DOS_API void dos_qobject_signal_emit (DosQObject *vptr, const char *name, int parametersCount, void **parameters)
 Emit a signal definited in a QObject. More...
 
DOS_API char * dos_qobject_objectName (const DosQObject *vptr)
 Return the DosQObject objectName. More...
 
DOS_API void dos_qobject_setObjectName (DosQObject *vptr, const char *name)
 Calls the QObject::setObjectName() function. More...
 
DOS_API void dos_qobject_delete (DosQObject *vptr)
 Free the memory allocated for the QObject. More...
 
DOS_API void dos_qobject_deleteLater (DosQObject *vptr)
 Free the memory allocated for the QObject in the next event loop cycle. More...
 
DOS_API DosQVariantdos_qobject_property (DosQObject *vptr, const char *propertyName)
 Read Value of a property by its name. More...
 
DOS_API bool dos_qobject_setProperty (DosQObject *vptr, const char *propertyName, DosQVariant *value)
 Write Value to a property by its name. More...
 
DOS_API char * dos_slot_macro (const char *str)
 Return the equivalent of SLOT(str) macro invokation. More...
 
DOS_API char * dos_signal_macro (const char *str)
 Return the equivalent of SIGNAL(str) macro invokation. More...
 
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. More...
 
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. More...
 
DOS_API DosQModelIndexdos_qmodelindex_create (void)
 Create a new QModelIndex() More...
 
DOS_API DosQModelIndexdos_qmodelindex_create_qmodelindex (DosQModelIndex *index)
 Create a new QModelIndex() copy constructed with given index. More...
 
DOS_API void dos_qmodelindex_delete (DosQModelIndex *vptr)
 Free the memory allocated for the QModelIndex. More...
 
DOS_API int dos_qmodelindex_row (const DosQModelIndex *vptr)
 Calls the QModelIndex::row() function. More...
 
DOS_API int dos_qmodelindex_column (const DosQModelIndex *vptr)
 Calls the QModelIndex::column() function. More...
 
DOS_API bool dos_qmodelindex_isValid (const DosQModelIndex *vptr)
 Calls the QModelIndex::isvalid() function. More...
 
DOS_API DosQVariantdos_qmodelindex_data (const DosQModelIndex *vptr, int role)
 Calls the QModelIndex::data() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_parent (const DosQModelIndex *vptr)
 Calls the QModelIndex::parent() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_child (const DosQModelIndex *vptr, int row, int column)
 Calls the QModelIndex::child() function. More...
 
DOS_API DosQModelIndexdos_qmodelindex_sibling (const DosQModelIndex *vptr, int row, int column)
 Calls the QModelIndex::sibling() function. More...
 
DOS_API void dos_qmodelindex_assign (DosQModelIndex *l, const DosQModelIndex *r)
 Calls the QModelIndex::operator=(const QModelIndex&) function. More...
 
DOS_API void * dos_qmodelindex_internalPointer (DosQModelIndex *vptr)
 Calls the QModelIndex::internalPointer function. More...
 
DOS_API DosQHashIntQByteArraydos_qhash_int_qbytearray_create (void)
 Create a new QHash<int, QByteArray> More...
 
DOS_API void dos_qhash_int_qbytearray_delete (DosQHashIntQByteArray *vptr)
 Free the memory allocated for the QHash<int, QByteArray> More...
 
DOS_API void dos_qhash_int_qbytearray_insert (DosQHashIntQByteArray *vptr, int key, const char *value)
 Calls the QHash<int, QByteArray>::insert() function. More...
 
DOS_API char * dos_qhash_int_qbytearray_value (const DosQHashIntQByteArray *vptr, int key)
 Calls the QHash<int, QByteArray>::value() function. More...
 
DOS_API void dos_qresource_register (const char *filename)
 Register the given .rcc (compiled) file in the resource system.
 
DOS_API DosQUrldos_qurl_create (const char *url, int parsingMode)
 Create a new QUrl. More...
 
DOS_API void dos_qurl_delete (DosQUrl *vptr)
 Free the memory allocated for the QUrl. More...
 
DOS_API char * dos_qurl_to_string (const DosQUrl *vptr)
 Calls the QUrl::toString() function. More...
 
DOS_API bool dos_qurl_isValid (const DosQUrl *vptr)
 Class the QUrl::isValid() function. More...
 
DOS_API int dos_qdeclarative_qmlregistertype (const QmlRegisterType *qmlRegisterType)
 Register a type in order to be instantiable from QML. More...
 
DOS_API int dos_qdeclarative_qmlregistersingletontype (const QmlRegisterType *qmlRegisterType)
 Register a singleton type in order to be accessible from QML. More...
 
DOS_API DosQPointerdos_qpointer_create (DosQObject *object)
 Create a new QPointer with the given DosQObject.
 
DOS_API void dos_qpointer_delete (DosQPointer *self)
 Free the memory allocated for the given QPointer.
 
DOS_API bool dos_qpointer_is_null (DosQPointer *self)
 Test the QPointer for nullness.
 
DOS_API void dos_qpointer_clear (DosQPointer *self)
 Clear the QPointer.
 
DOS_API DosQObjectdos_qpointer_data (DosQPointer *self)
 Return a pointer to the tracked DosQObject. More...
 

Detailed Description

The DOtherSide API file.

Author
Filippo Cucchetto

This file contains all the functions from creating or manipulating the QML environement