76 lines
2.4 KiB
D
76 lines
2.4 KiB
D
extern(C)
|
|
{
|
|
// QGuiApplication
|
|
void dos_qguiapplication_create();
|
|
void dos_qguiapplication_exec();
|
|
void dos_qguiapplication_delete();
|
|
|
|
// QQmlApplicationEngine
|
|
void dos_qqmlapplicationengine_create(ref void*);
|
|
void dos_qqmlapplicationengine_load(void*, immutable (char)* filename);
|
|
void dos_qqmlapplicationengine_context(void*, ref void*);
|
|
void dos_qqmlapplicationengine_delete(void*);
|
|
|
|
// QQuickView
|
|
void dos_qquickview_create(ref void*);
|
|
void dos_qquickview_show(void*);
|
|
void dos_qquickview_source(void*, ref char *, ref int);
|
|
void dos_qquickview_set_source(void*, immutable (char)* filename);
|
|
void dos_qquickview_rootContext(void*, ref void*);
|
|
void dos_qquickview_delete(void*);
|
|
|
|
// CharArray
|
|
void dos_chararray_create(ref char*);
|
|
void dos_chararray_create(ref char*, int size);
|
|
void dos_chararray_delete(char*);
|
|
|
|
// QQmlContext
|
|
void dos_qqmlcontext_baseUrl(void*, ref char*, ref int);
|
|
void dos_qqmlcontext_setcontextproperty(void*, immutable (char)*, void*);
|
|
|
|
// QVariant
|
|
void dos_qvariant_create(ref void*);
|
|
void dos_qvariant_create_int(ref void*, int value);
|
|
void dos_qvariant_create_bool(ref void*, bool value);
|
|
void dos_qvariant_create_string(ref void*, immutable(char)* value);
|
|
void dos_qvariant_create_qobject(ref void*, void*);
|
|
void dos_qvariant_toInt(void*, ref int);
|
|
void dos_qvariant_setInt(void*, int);
|
|
void dos_qvariant_toBool(void*, ref bool);
|
|
void dos_qvariant_setBool(void*, bool);
|
|
void dos_qvariant_toString(void*, ref char*, ref int);
|
|
void dos_qvariant_setString(void*, immutable(char)*);
|
|
void dos_qvariant_isnull(void*, ref bool result);
|
|
void dos_qvariant_delete(void*);
|
|
|
|
// QObject
|
|
void dos_qobject_create(ref void*,
|
|
void* dobject,
|
|
void function (void*, void*, int , void**));
|
|
|
|
void dos_qobject_slot_create(void*,
|
|
immutable (char)* name,
|
|
int parametersCount,
|
|
int* parametersMetaTypes,
|
|
ref int slotIndex);
|
|
|
|
void dos_qobject_signal_create(void*,
|
|
immutable(char)* name,
|
|
int parametersCount,
|
|
int* parametersMetaTypes,
|
|
ref int signalIndex);
|
|
|
|
void dos_qobject_signal_emit(void*, immutable(char)* name,
|
|
int parametersCount,
|
|
void** parameters);
|
|
|
|
void dos_qobject_property_create(void*,
|
|
immutable(char)* name,
|
|
int propertyMetaType,
|
|
immutable(char)* readSlot,
|
|
immutable(char)* writeSlot,
|
|
immutable(char)* notifySignal);
|
|
|
|
void dos_qobject_delete(void*);
|
|
}
|