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

Functions related to the QQuickView class. More...

Functions

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

Detailed Description

Functions related to the QQuickView class.

Function Documentation

◆ dos_qquickview_create()

DOS_API DosQQuickView* dos_qquickview_create ( void  )

Create a new QQuickView.

Returns
A new QQuickView
Note
The returned QQuickView should be freed by using dos_qquickview_delete(DosQQuickview*)

◆ dos_qquickview_delete()

DOS_API void dos_qquickview_delete ( DosQQuickView vptr)

Free the memory allocated for the given QQuickView.

Parameters
vptrThe QQuickView

◆ dos_qquickview_rootContext()

DOS_API DosQQmlContext* dos_qquickview_rootContext ( DosQQuickView vptr)

Return the QQuickView::rootContext() as a QQuickContext.

Parameters
vptrThe QQuickView

◆ dos_qquickview_set_resize_mode()

DOS_API void dos_qquickview_set_resize_mode ( DosQQuickView vptr,
int  resizeMode 
)

Calls the QQuickView::setResizeMode() function.

Parameters
vptrThe QQuickView
resizeModeThe resize mode

◆ dos_qquickview_set_source()

DOS_API void dos_qquickview_set_source ( DosQQuickView vptr,
const char *  filename 
)

Calls the QQuickView::setSource() function.

Parameters
vptrThe QQuickView
filenameThe source path as an UTF-8 string. The path is relative to the directory that contains the application executable

◆ dos_qquickview_set_source_url()

DOS_API void dos_qquickview_set_source_url ( DosQQuickView vptr,
DosQUrl url 
)

Calls the QQuickView::setSource() function.

Parameters
vptrThe QQuickView
urlThe source QUrl

◆ dos_qquickview_show()

DOS_API void dos_qquickview_show ( DosQQuickView vptr)

Calls the QQuickView::show() function.

Parameters
vptrThe QQuickView

◆ dos_qquickview_source()

DOS_API char* dos_qquickview_source ( const DosQQuickView vptr)

Calls the QQuickView::source() function.

Parameters
vptrThe QQuickView
Returns
The QQuickView source as an UTF-8 string
Note
The returned string should be freed by using the dos_chararray_delete() function