diff --git a/all.html b/all.html new file mode 100644 index 00000000..34c21da4 --- /dev/null +++ b/all.html @@ -0,0 +1,88 @@ + + + + + + + + + + + DlangUI - cross platform GUI library for D programming language - dlangui.all + + +
+
+
+

DlangUI

+

Cross Platform GUI for D programming language

+
+
+ Home + API Docs + Download .zip + + View on GitHub +
+ +
+
+

dlangui.all

+ +This module is just to simplify import of most useful DLANGUI modules. +

+Synopsis:
+
// helloworld
+import dlangui.all;
+// required in one of modules
+mixin APP_ENTRY_POINT;
+
+/// entry point for dlangui based application
+extern (C) int UIAppMain(string[] args) {
+    // resource directory search paths
+    string[] resourceDirs = [
+        appendPath(exePath, "../../../res/"),   // for Visual D and DUB builds
+        appendPath(exePath, "../../../../res/"), // for Mono-D builds
+        appendPath(exePath, "res/") // when res dir is located at the same directory as executable
+    ];
+
+    // setup resource directories - will use only existing directories
+	Platform.instance.resourceDirs = resourceDirs;
+    // select translation file - for english language
+	Platform.instance.uiLanguage = "en";
+	// load theme from file "theme_default.xml"
+	Platform.instance.uiTheme = "theme_default";
+
+    // create window
+    Window window = Platform.instance.createWindow("My Window", null);
+    // create some widget to show in window
+    window.mainWidget = (new Button()).text("Hello world"d);
+    // show window
+    window.show();
+    // run message loop
+    return Platform.instance.enterMessageLoop();
+}
+
+
+
+ +

+License:
+Boost License 1.0 +

+Authors:
+Vadim Lopatin, coolreader.org@gmail.com

+ + +
+ + +
+
+ + diff --git a/api.html b/api.html new file mode 100644 index 00000000..9ad5bdda --- /dev/null +++ b/api.html @@ -0,0 +1,96 @@ + + + + + + + + + + + DlangUI - cross platform GUI library for D programming language - api + + +
+
+
+

DlangUI

+

Cross Platform GUI for D programming language

+
+
+ Home + API Docs + Download .zip + + View on GitHub +
+ +
+
+

api

+ + + + +

By Modules

+
+ + +
+
+ +