libqmlbind
A C library for creating QML bindings for other languages easily through exporting objects to QML
application.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 
38 QMLBIND_API qmlbind_application *qmlbind_application_new(int argc, const char *const *argv);
39 
50 
57 QMLBIND_API void qmlbind_application_release(qmlbind_application *self);
58 
65 QMLBIND_API int qmlbind_application_exec(qmlbind_application *self);
66 
82 QMLBIND_API void qmlbind_application_exit(int returnCode);
83 
94 QMLBIND_API void qmlbind_process_events();
95 
104 QMLBIND_API void qmlbind_next_tick(void (*callback)(void *), void *data);
105 
107 #ifdef __cplusplus
108 }
109 #endif
QMLBIND_API qmlbind_application * qmlbind_application_new(int argc, const char *const *argv)
Initializes the window system and constructs an application object with argc command line arguments i...
QMLBIND_API void qmlbind_next_tick(void(*callback)(void *), void *data)
Adds callback as to an event queue and returns immediately.
QMLBIND_API int qmlbind_application_exec(qmlbind_application *self)
Enters the main event loop and waits until qmlbind_application_exit() is called, then returns the val...
QMLBIND_API void qmlbind_application_release(qmlbind_application *self)
Cleans up any window system resources that were allocated by this application.
Contains all struct definitions of libqmlbind.
an opaque struct to be used as self argument in the methods defined in qmlbind_application.
Definition: qmlbind_global.h:58
QMLBIND_API void qmlbind_application_exit(int returnCode)
Tells the application to exit with a return code after the current event is processed.
QMLBIND_API qmlbind_application * qmlbind_application_instance(void)
Returns a pointer to the application's QApplication instance.
QMLBIND_API void qmlbind_process_events()
Processes all pending events for the calling thread until there are no more events to process...