mirror of
https://github.com/status-im/dotherside.git
synced 2025-02-12 12:46:24 +00:00
31 lines
538 B
D
31 lines
538 B
D
import dothersideinterface;
|
|
import qqmlcontext;
|
|
import std.string;
|
|
|
|
class QQmlApplicationEngine
|
|
{
|
|
public this()
|
|
{
|
|
dos_qqmlapplicationengine_create(data);
|
|
}
|
|
|
|
public ~this()
|
|
{
|
|
dos_qqmlapplicationengine_delete(data);
|
|
}
|
|
|
|
public QQmlContext context()
|
|
{
|
|
void* contextData;
|
|
dos_qqmlapplicationengine_context(data, contextData);
|
|
return new QQmlContext(contextData);
|
|
}
|
|
|
|
public void load(string filename)
|
|
{
|
|
dos_qqmlapplicationengine_load(data, filename.toStringz());
|
|
}
|
|
|
|
private void* data;
|
|
}
|