fix project settings for X11

This commit is contained in:
Vadim Lopatin 2015-11-19 10:05:13 +03:00
parent bc53e03e81
commit b977506c9b
3 changed files with 22 additions and 4 deletions

View File

@ -156,10 +156,10 @@
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<Libs>
<Libs>
<Lib>X</Lib>
<Lib>-L-lX11</Lib>
</Libs>
</Libs>
<ExtraCompilerArguments>-Jviews

View File

@ -18,6 +18,7 @@
<Path>../../src</Path>
<Path>../../deps/dlib</Path>
<Path>../../deps/gl3n</Path>
<Path>../../deps/x11/source</Path>
<Path>../../deps/DerelictSDL2/source</Path>
<Path>../../deps/DerelictFT/source</Path>
<Path>../../deps/DerelictGL3/source</Path>
@ -168,10 +169,17 @@
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|AnyCPU' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|x64' ">
<OutputPath>bin\DebugX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
@ -183,6 +191,12 @@
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<Libs>
<Libs>
<Lib>-L-lX11</Lib>
</Libs>
</Libs>
</PropertyGroup>
<ItemGroup>
<Compile Include="src\example1.d" />

View File

@ -13,6 +13,8 @@ import dlangui.widgets.styles;
import dlangui.widgets.widget;
import dlangui.platforms.common.platform;
import std.stdio;
import x11.Xlib;
import x11.Xutil;
import x11.Xtos;
@ -49,6 +51,8 @@ class X11Window : dlangui.platforms.common.platform.Window {
_win = XCreateSimpleWindow(x11display, DefaultRootWindow(x11display), 0, 0,
_dx, _dy, 5, white, black);
readln();
/* here is where some properties of the window can be set.
The third and fourth items indicate the name which appears
at the top of the window and the name of the minimized window