2014-12-30 19:11:01 +01:00
|
|
|
import dothersideinterface;
|
2014-12-31 12:19:00 +01:00
|
|
|
import qqmlcontext;
|
2014-12-30 19:11:01 +01:00
|
|
|
import std.string;
|
|
|
|
|
|
|
|
class QQmlApplicationEngine
|
|
|
|
{
|
2015-05-01 18:54:32 +02:00
|
|
|
this()
|
2015-04-27 19:58:18 +02:00
|
|
|
{
|
2015-05-01 18:54:32 +02:00
|
|
|
dos_qqmlapplicationengine_create(this.vptr);
|
2015-04-27 19:58:18 +02:00
|
|
|
}
|
2014-12-30 19:11:01 +01:00
|
|
|
|
2015-05-01 18:54:32 +02:00
|
|
|
~this()
|
2015-04-27 19:58:18 +02:00
|
|
|
{
|
2015-05-01 18:54:32 +02:00
|
|
|
dos_qqmlapplicationengine_delete(this.vptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void* voidPointer()
|
|
|
|
{
|
|
|
|
return this.vptr;
|
2015-04-27 19:58:18 +02:00
|
|
|
}
|
2014-12-31 12:19:00 +01:00
|
|
|
|
2015-04-27 19:58:18 +02:00
|
|
|
public QQmlContext rootContext()
|
|
|
|
{
|
2015-05-01 18:54:32 +02:00
|
|
|
void* contextVPtr;
|
|
|
|
dos_qqmlapplicationengine_context(this.vptr, contextVPtr);
|
|
|
|
return new QQmlContext(contextVPtr);
|
2015-04-27 19:58:18 +02:00
|
|
|
}
|
2014-12-30 19:11:01 +01:00
|
|
|
|
2015-04-27 19:58:18 +02:00
|
|
|
public void load(string filename)
|
|
|
|
{
|
2015-05-01 18:54:32 +02:00
|
|
|
dos_qqmlapplicationengine_load(this.vptr, filename.toStringz());
|
2015-04-27 19:58:18 +02:00
|
|
|
}
|
2014-12-30 19:11:01 +01:00
|
|
|
|
2015-05-01 18:54:32 +02:00
|
|
|
private void* vptr;
|
2014-12-30 19:11:01 +01:00
|
|
|
}
|