X11 project files updated

This commit is contained in:
Vadim Lopatin 2015-12-03 11:30:20 +03:00
parent 6109734295
commit 8ab10544e5
11 changed files with 343 additions and 6 deletions

View File

@ -23,12 +23,12 @@ WARNING: recent breaking change: when specifying dlangui library as DUB dependen
Main features:
* Crossplatform (Win32 and Linux are supported in current version); can use SDL2 as a backend.
* Crossplatform (Win32, OSX, and Linux are supported in current version); can use SDL2 as a backend.
* Mostly inspired by Android UI API (layouts, styles, two phase layout, ...)
* Supports highly customizable UI themes and styles
* Supports internationalization
* Hardware acceleration using OpenGL (when built with version USE_OPENGL)
* Fallback to pure Win32 API / SDL / XCB when OpenGL is not available (e.g. opengl dynamic library cannot be loaded)
* Fallback to pure Win32 API / SDL / X11 when OpenGL is not available (e.g. opengl dynamic library cannot be loaded)
* Actually it's a port (with major refactoring) of GUI library for cross platform OpenGL based implementation of Cool Reader app project from C++.
* Non thread safe - all UI operations should be preformed in single thread
@ -175,6 +175,10 @@ Mac OSX development using Mono-D
DMD, DUB, git, MonoDevelop with Mono-D plugin must be installed
Can use SDL2 or X11 as a backend.
Native Cocoa backend - work is in progress.
In some directory, e.g. ~/src/d/ :
Clone DlangUI repository
@ -197,12 +201,14 @@ Clone dependency libraries
git clone https://github.com/Devisualization/image.git de_image
git clone https://github.com/Dav1dde/gl3n.git
git clone https://github.com/p0nce/DerelictCocoa.git
git clone https://github.com/nomad-software/x11.git
Open solution file with Mono-D
dlangui-monod-osx.sln
Linux development using Mono-D
------------------------------

View File

@ -175,14 +175,68 @@
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|AnyCPU' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'DebugX11|x86' ">
<OutputPath>bin\DebugX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/DebugX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/i18n
-Jviews/res/mdpi
-Jviews/res/hdpi</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>libdlangui-monod-linux</OutputName>
<Target>StaticLibrary</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/ReleaseX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/i18n
-Jviews/res/mdpi
-Jviews/res/hdpi</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>libdlangui-monod-linux</OutputName>
<Target>StaticLibrary</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/UnittestX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/i18n
-Jviews/res/mdpi
-Jviews/res/hdpi</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>libdlangui-monod-linux</OutputName>

View File

@ -22,6 +22,8 @@ Global
ReleaseMinimal|Any CPU = ReleaseMinimal|Any CPU
UnittestMinimal|Any CPU = UnittestMinimal|Any CPU
DebugX11|Any CPU = DebugX11|Any CPU
ReleaseX11|Any CPU = ReleaseX11|Any CPU
UnittestX11|Any CPU = UnittestX11|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.Debug|Any CPU.ActiveCfg = Debug|x64
@ -34,10 +36,14 @@ Global
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.Release|Any CPU.Build.0 = Release|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.Unittest|Any CPU.Build.0 = Unittest|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{075C374A-563A-4CAC-9E9F-0B6E1DFEAEC3}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.Debug|Any CPU.ActiveCfg = Debug|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.Debug|Any CPU.Build.0 = Debug|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|x64
@ -48,10 +54,14 @@ Global
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.Release|Any CPU.Build.0 = Release|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.Unittest|Any CPU.Build.0 = Unittest|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{0A3A0D08-E4DC-418E-B92B-561CC91C2306}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.Debug|Any CPU.ActiveCfg = Debug|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.Debug|Any CPU.Build.0 = Debug|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|x64
@ -62,10 +72,14 @@ Global
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.Release|Any CPU.Build.0 = Release|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.Unittest|Any CPU.Build.0 = Unittest|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{54BDE028-6064-4CA9-B6CA-4C0BEEE70F24}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.Debug|Any CPU.ActiveCfg = DebugX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.Debug|Any CPU.Build.0 = DebugX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|x64
@ -76,10 +90,14 @@ Global
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.Release|Any CPU.Build.0 = Release|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.Unittest|Any CPU.Build.0 = Unittest|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{5BD82AA8-4026-44C2-8957-B4E2932542F0}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.Debug|Any CPU.ActiveCfg = Debug|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.Debug|Any CPU.Build.0 = Debug|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|x64
@ -90,10 +108,14 @@ Global
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.Release|Any CPU.Build.0 = Release|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.Unittest|Any CPU.Build.0 = Unittest|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{8E722D80-CF8D-4D98-BEAE-7BC9E6752AC4}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.Debug|Any CPU.ActiveCfg = Debug|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.Debug|Any CPU.Build.0 = Debug|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.DebugMinimal|Any CPU.ActiveCfg = DebugMinimal|x64
@ -104,9 +126,13 @@ Global
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.Release|Any CPU.Build.0 = Release|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.ReleaseMinimal|Any CPU.ActiveCfg = ReleaseMinimal|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.ReleaseMinimal|Any CPU.Build.0 = ReleaseMinimal|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.ReleaseX11|Any CPU.ActiveCfg = ReleaseX11|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.ReleaseX11|Any CPU.Build.0 = ReleaseX11|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.Unittest|Any CPU.ActiveCfg = Unittest|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.Unittest|Any CPU.Build.0 = Unittest|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.UnittestMinimal|Any CPU.ActiveCfg = UnittestMinimal|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.UnittestMinimal|Any CPU.Build.0 = UnittestMinimal|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.UnittestX11|Any CPU.ActiveCfg = UnittestX11|x64
{A38BEF21-AAFE-4115-A978-63B7C8C2FBD1}.UnittestX11|Any CPU.Build.0 = UnittestX11|x64
EndGlobalSection
EndGlobal

View File

@ -95,6 +95,18 @@
"libs/windows/x86/SDL2.dll"
]
},
{
"name": "x11",
"versions": ["USE_X11", "USE_OPENGL", "USE_FREETYPE", "EmbedStandardResources"],
"versions-windows": ["Unicode"],
"dependencies": {
"dlib": "~>0.7.0",
"derelict-gl3": "~>1.0.16",
"derelict-ft": "~>1.0.2",
"gl3n": "~>1.2.0",
"x11": "~>1.0.9"
}
},
{
"name": "sfml",
"versions": ["USE_DSFML", "USE_OPENGL", "USE_FREETYPE", "EmbedStandardResources"],

View File

@ -175,6 +175,7 @@
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
@ -192,7 +193,57 @@
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-L-lX11</ExtraLinkerArguments>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/ReleaseX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>dmledit-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/UnittestX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>dmledit-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<ItemGroup>
<Compile Include="src\dmledit.d" />

View File

@ -195,6 +195,56 @@
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/ReleaseX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>example1-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/UnittestX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>example1-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="src\example1.d" />
</ItemGroup>

View File

@ -135,6 +135,7 @@
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
</VersionIds>
</VersionIds>
@ -151,6 +152,42 @@
</Libs>
</Libs>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/ReleaseX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>helloworld-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/UnittestX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>helloworld-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<ItemGroup>
<Compile Include="src\helloworld.d" />
</ItemGroup>

View File

@ -176,6 +176,7 @@
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
@ -187,6 +188,53 @@
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>spreadsheet-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>spreadsheet-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<LinkinThirdPartyLibraries>false</LinkinThirdPartyLibraries>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>spreadsheet-monod-linux</OutputName>

View File

@ -34,7 +34,7 @@ extern (C) int UIAppMain(string[] args) {
Platform.instance.uiTheme = "theme_default";
// create window
Window window = Platform.instance.createWindow("DLangUI: Tetris game example"d, null, WindowFlag.Modal);
Window window = Platform.instance.createWindow("DLangUI: Tetris game example"d, null, WindowFlag.Modal, 600, 400);
window.mainWidget = new GameWidget();

View File

@ -173,6 +173,7 @@
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
@ -184,6 +185,57 @@
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>tetris-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'ReleaseX11|x64' ">
<OutputPath>bin\ReleaseX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/ReleaseX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>tetris-monod-linux</OutputName>
<Target>Executable</Target>
<Externalconsole>true</Externalconsole>
<DebugLevel>0</DebugLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'UnittestX11|x64' ">
<OutputPath>bin\UnittestX11</OutputPath>
<VersionIds>
<VersionIds>
<String>USE_X11</String>
<String>USE_OPENGL</String>
<String>USE_FREETYPE</String>
<String>EmbedStandardResources</String>
</VersionIds>
</VersionIds>
<ObjectsDirectory>obj/UnittestX11</ObjectsDirectory>
<LinkinThirdPartyLibraries>true</LinkinThirdPartyLibraries>
<ExtraLinkerArguments>-lX11</ExtraLinkerArguments>
<ExtraCompilerArguments>-Jviews
-Jviews/res
-Jviews/res/hdpi
-Jviews/res/mdpi
-Jviews/res/i18n
</ExtraCompilerArguments>
<UnittestMode>false</UnittestMode>
<OutputName>tetris-monod-linux</OutputName>

View File

@ -262,7 +262,8 @@ class X11Window : DWindow {
at the top of the window and the name of the minimized window
respectively.
*/
XSetStandardProperties(x11display, _win, cast(char*)"My Window".ptr, cast(char*)"HI!".ptr, None, cast(char**)null, 0, cast(XSizeHints*)null);
char* caption8 = cast(char*)toUTF8(_caption).toStringz;
XSetStandardProperties(x11display, _win, caption8, caption8, None, cast(char**)null, 0, cast(XSizeHints*)null);
/* this routine determines which types of input are allowed in
the input. see the appropriate section for details...