This module is just to simplify import of most useful DLANGUI modules.
Synopsis:
// helloworldimportdlangui;
// required in one of modulesmixinAPP_ENTRY_POINT;
/// entry point for dlangui based applicationextern (C) intUIAppMain(string[] args) {
// resource directory search pathsstring[] resourceDirs = [
appendPath(exePath, "../../../res/"), // for Visual D and DUB buildsappendPath(exePath, "../../../../res/"), // for Mono-D buildsappendPath(exePath, "res/") // when res dir is located at the same directory as executable
];
// setup resource directories - will use only existing directoriesPlatform.instance.resourceDirs = resourceDirs;
// select translation file - for english languagePlatform.instance.uiLanguage = "en";
// load theme from file "theme_default.xml"Platform.instance.uiTheme = "theme_default";
// create windowWindowwindow = Platform.instance.createWindow("My Window", null);
// create some widget to show in windowwindow.mainWidget = (newButton()).text("Hello world"d);
// show windowwindow.show();
// run message loopreturnPlatform.instance.enterMessageLoop();
}
This module is just to simplify import of most useful DLANGUI modules.
Synopsis: