dotherside/D/DQml/qqmlapplicationengine.d
2015-05-01 18:54:32 +02:00

36 lines
668 B
D

import dothersideinterface;
import qqmlcontext;
import std.string;
class QQmlApplicationEngine
{
this()
{
dos_qqmlapplicationengine_create(this.vptr);
}
~this()
{
dos_qqmlapplicationengine_delete(this.vptr);
}
public void* voidPointer()
{
return this.vptr;
}
public QQmlContext rootContext()
{
void* contextVPtr;
dos_qqmlapplicationengine_context(this.vptr, contextVPtr);
return new QQmlContext(contextVPtr);
}
public void load(string filename)
{
dos_qqmlapplicationengine_load(this.vptr, filename.toStringz());
}
private void* vptr;
}