DOtherSide  0.7.1
C language library for creating bindings for the Qt QML language
Functions
QQmlApplicationEngine

Functions related to the QQmlApplicationEngine class. More...

Functions

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...
 

Detailed Description

Functions related to the QQmlApplicationEngine class.

Function Documentation

◆ dos_qqmlapplicationengine_add_import_path()

DOS_API void dos_qqmlapplicationengine_add_import_path ( DosQQmlApplicationEngine vptr,
const char *  path 
)

Calls the QQmlApplicationEngine::addImportPath function.

Parameters
vptrThe QQmlApplicationEngine
pathThe path to be added to the list of import paths

◆ dos_qqmlapplicationengine_addImageProvider()

DOS_API void dos_qqmlapplicationengine_addImageProvider ( DosQQmlApplicationEngine vptr,
const char *  name,
DosQQuickImageProvider vptr_i 
)

Calls the QQMLApplicationengine::addImageProvider

Parameters
vptrThe QQmlApplicationEngine
vptr_iA QQuickImageProvider, the QQmlApplicationEngine takes ownership of this pointer

◆ dos_qqmlapplicationengine_context()

DOS_API DosQQmlContext* dos_qqmlapplicationengine_context ( DosQQmlApplicationEngine vptr)

Calls the QQmlApplicationEngine::context.

Parameters
vptrThe QQmlApplicationEngine
Returns
A pointer to a QQmlContext. This should not be stored nor made available to the binded language if you can't guarantee that this QQmlContext should not live more that its Engine. This context is owned by the engine and so it should die with the engine.

◆ dos_qqmlapplicationengine_create()

DOS_API DosQQmlApplicationEngine* dos_qqmlapplicationengine_create ( void  )

Create a new QQmlApplicationEngine.

Returns
A new QQmlApplicationEngine
Note
The returned QQmlApplicationEngine should be freed by using dos_qqmlapplicationengine_delete(DosQQmlApplicationEngine*)

◆ dos_qqmlapplicationengine_delete()

DOS_API void dos_qqmlapplicationengine_delete ( DosQQmlApplicationEngine vptr)

Free the memory allocated for the given QQmlApplicationEngine.

Parameters
vptrThe QQmlApplicationEngine

◆ dos_qqmlapplicationengine_load()

DOS_API void dos_qqmlapplicationengine_load ( DosQQmlApplicationEngine vptr,
const char *  filename 
)

Calls the QQmlApplicationEngine::load function.

Parameters
vptrThe QQmlApplicationEngine
filenameThe file to load. The file is relative to the directory that contains the application executable

◆ dos_qqmlapplicationengine_load_data()

DOS_API void dos_qqmlapplicationengine_load_data ( DosQQmlApplicationEngine vptr,
const char *  data 
)

Calls the QQmlApplicationEngine::loadData function.

Parameters
vptrThe QQmlApplicationEngine
dataThe UTF-8 string of the QML to load

◆ dos_qqmlapplicationengine_load_url()

DOS_API void dos_qqmlapplicationengine_load_url ( DosQQmlApplicationEngine vptr,
DosQUrl url 
)

Calls the QQmlApplicationEngine::load function.

Parameters
vptrThe QQmlApplicationEngine
urlThe QUrl of the file to load