mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-12 04:26:43 +00:00
36 lines
668 B
D
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;
|
|
}
|