Environment.Exit (1);
}
Debug.WriteLine("GLFW: " + Glfw.GetVersionString ());
- // Create GLFW window
+ // Create GLFW window.
+
Glfw.WindowHint(WindowHint.Samples, 1);
Glfw.WindowHint(WindowHint.ContextVersionMajor, 3 );
Glfw.WindowHint(WindowHint.ContextVersionMinor, 3);
CrowInterface.DirtyRect.Left, CrowInterface.DirtyRect.Top,
CrowInterface.DirtyRect.Width, CrowInterface.DirtyRect.Height,
PixelFormat.Bgra, PixelType.UnsignedByte, CrowInterface.dirtyBmp);
+ //TODO:use pbo
//updatePBOs ();
CrowInterface.IsDirty = false;
}
public override void OnLoad ()
{
- testFiles = Directory.GetFiles(@"Interfaces/Expandable", "*.crow").ToArray();
- testFiles = Directory.GetFiles(@"Interfaces/GraphicObject", "*.crow").Concat(testFiles).ToArray();
- testFiles = Directory.GetFiles(@"Interfaces/Container", "*.crow").Concat (testFiles).ToArray();
- testFiles = Directory.GetFiles(@"Interfaces/Group", "*.crow").Concat (testFiles).ToArray();
- testFiles = Directory.GetFiles(@"Interfaces/Stack", "*.crow").Concat (testFiles).ToArray();
- testFiles = Directory.GetFiles(@"Interfaces/basicTests", "*.crow").Concat (testFiles).ToArray();
- testFiles = Directory.GetFiles (@"Interfaces/Divers", "*.crow").Concat (testFiles).ToArray ();
+ testFiles = new string [0];
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/GraphicObject", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/basicTests", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Container", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Group", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Stack", "*.crow")).ToArray ();
+ testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Splitter", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Expandable", "*.crow")).ToArray ();
+ //testFiles = testFiles.Concat (Directory.GetFiles (@"Interfaces/Divers", "*.crow")).ToArray ();
//testFiles = Directory.GetFiles(@"Interfaces", "*.crow").Concat(testFiles).ToArray();
this.Title = testFiles [idx];
+++ /dev/null
-<?xml version="1.0"?>
-<VerticalStack Fit="true">
- <GraphicObject CornerRadius="5" Height="10" Width="600" Background="vgradient|0:Transparent|0,5:White|1:Transparent"/>
- <HorizontalStack Fit="true" HorizontalAlignment="Left">
- <Border Fit="true" CornerRadius="10" BorderWidth="1">
- <VerticalStack Margin="10">
- <CheckBox IsChecked="false" Caption="Check 1" Background="hgradient|0:LimeGreen|1:Transparent"/>
- <CheckBox IsChecked="false" Caption="Check 2" Background="hgradient|0:LimeGreen|1:Transparent"/>
- <CheckBox IsChecked="true" Caption="Check 3" Background="hgradient|0:LimeGreen|1:Transparent"/>
- <CheckBox IsChecked="false" Caption="Check 4" Background="hgradient|0:LimeGreen|1:Transparent"/>
- </VerticalStack>
- </Border>
- <Splitter/>
- <Border Fit="true" CornerRadius="10" BorderWidth="1">
- <VerticalStack Margin="10">
- <RadioButton IsChecked="false" Caption="Choice 1" Background="hgradient|0:DarkRed|1:Transparent"/>
- <Splitter/>
- <RadioButton Width="Stretched" IsChecked="false" Caption="Choice 2" Background="hgradient|0:DarkRed|1:Transparent"/>
- <RadioButton IsChecked="true" Caption="Choice 3" Background="hgradient|0:DarkRed|1:Transparent"/>
- <RadioButton IsChecked="false" Caption="Choice 4" Background="hgradient|0:DarkRed|1:Transparent"/>
- </VerticalStack>
- </Border>
- <Splitter Thickness="3" />
- <Border Fit="true" CornerRadius="10" BorderWidth="1" MaximumSize="150;150" MinimumSize="50;50">
- <VerticalStack Margin="10">
- <Label Text="label 1" Background="hgradient|0:BlueCrayola|1:Transparent"/>
- <Label Text="label 2" Background="hgradient|0:BlueCrayola|1:Transparent"/>
- <Label Text="label 3" Background="hgradient|0:BlueCrayola|1:Transparent"/>
- <Label Text="label 4" Width="Stretched" Background="hgradient|0:BlueCrayola|1:Transparent"/>
- </VerticalStack>
- </Border>
- <Splitter/>
- <Border Fit="true" CornerRadius="10" BorderWidth="1">
- <VerticalStack Margin="10">
- <Button Caption="Button 1" Background="hgradient|0:Red|1:DarkRed" CornerRadius="5"/>
- <Button Caption="Button 2" Background="hgradient|0:AoEnglish|1:Arsenic" CornerRadius="3"/>
- <Button Caption="Button 3" Background="hgradient|0:DarkRed|1:Transparent" CornerRadius="0"/>
- <Button Caption="Button 4" Background="hgradient|0:DarkRed|1:Transparent" CornerRadius="8"/>
- </VerticalStack>
- </Border>
- <Splitter/>
- </HorizontalStack>
- <GraphicObject CornerRadius="5" Height="10" Width="600" Background="vgradient|0:Transparent|0,5:White|1:Transparent"/>
-</VerticalStack>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0"?>
+<HorizontalStack Width="80%" Height="50%">
+ <Border Width="45%" CornerRadius="10" BorderWidth="1">
+ <VerticalStack>
+ <VerticalStack Height="45%">
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 1" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 2" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="true" Caption="Check 3" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 4" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ </VerticalStack>
+ <Splitter Thickness="3"/>
+ <VerticalStack Height="45%">
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 1" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 2" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="true" Caption="Check 3" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox Height="25%" IsChecked="false" Caption="Check 4" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ </VerticalStack>
+ </VerticalStack>
+ </Border>
+ <Splitter Thickness="3"/>
+ <Border Width="45%" CornerRadius="10" BorderWidth="1">
+ <VerticalStack Width="50%" Height="50%" Background="Onyx">
+ <RadioButton IsChecked="false" Caption="Choice 1" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <RadioButton IsChecked="false" Caption="Choice 2" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <RadioButton IsChecked="true" Caption="Choice 3" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <RadioButton IsChecked="false" Caption="Choice 4" Background="hgradient|0:DarkRed|1:Transparent"/>
+ </VerticalStack>
+ </Border>
+ <Splitter Thickness="3"/>
+</HorizontalStack>
--- /dev/null
+<?xml version="1.0"?>
+<VerticalStack Fit="true">
+ <GraphicObject CornerRadius="5" Height="10" Width="600" Background="vgradient|0:Transparent|0,5:White|1:Transparent"/>
+ <HorizontalStack Fit="true" HorizontalAlignment="Left">
+ <Border Fit="true" CornerRadius="10" BorderWidth="1">
+ <VerticalStack Margin="10">
+ <CheckBox IsChecked="false" Caption="Check 1" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox IsChecked="false" Caption="Check 2" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox IsChecked="true" Caption="Check 3" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ <CheckBox IsChecked="false" Caption="Check 4" Background="hgradient|0:LimeGreen|1:Transparent"/>
+ </VerticalStack>
+ </Border>
+ <Splitter/>
+ <Border Fit="true" CornerRadius="10" BorderWidth="1">
+ <VerticalStack Margin="10">
+ <RadioButton IsChecked="false" Caption="Choice 1" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <Splitter/>
+ <RadioButton Width="Stretched" IsChecked="false" Caption="Choice 2" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <RadioButton IsChecked="true" Caption="Choice 3" Background="hgradient|0:DarkRed|1:Transparent"/>
+ <RadioButton IsChecked="false" Caption="Choice 4" Background="hgradient|0:DarkRed|1:Transparent"/>
+ </VerticalStack>
+ </Border>
+ <Splitter Thickness="3" />
+ <Border Fit="true" CornerRadius="10" BorderWidth="1" MaximumSize="150;150" MinimumSize="50;50">
+ <VerticalStack Margin="10">
+ <Label Text="label 1" Background="hgradient|0:BlueCrayola|1:Transparent"/>
+ <Label Text="label 2" Background="hgradient|0:BlueCrayola|1:Transparent"/>
+ <Label Text="label 3" Background="hgradient|0:BlueCrayola|1:Transparent"/>
+ <Label Text="label 4" Width="Stretched" Background="hgradient|0:BlueCrayola|1:Transparent"/>
+ </VerticalStack>
+ </Border>
+ <Splitter/>
+ <Border Fit="true" CornerRadius="10" BorderWidth="1">
+ <VerticalStack Margin="10">
+ <Button Caption="Button 1" Background="hgradient|0:Red|1:DarkRed" CornerRadius="5"/>
+ <Button Caption="Button 2" Background="hgradient|0:AoEnglish|1:Arsenic" CornerRadius="3"/>
+ <Button Caption="Button 3" Background="hgradient|0:DarkRed|1:Transparent" CornerRadius="0"/>
+ <Button Caption="Button 4" Background="hgradient|0:DarkRed|1:Transparent" CornerRadius="8"/>
+ </VerticalStack>
+ </Border>
+ <Splitter/>
+ </HorizontalStack>
+ <GraphicObject CornerRadius="5" Height="10" Width="600" Background="vgradient|0:Transparent|0,5:White|1:Transparent"/>
+</VerticalStack>
\ No newline at end of file
<None Include="Interfaces\Stack\4.crow">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
- <None Include="Interfaces\Divers\1.crow">
- <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
- </None>
<None Include="Interfaces\Divers\2.crow">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="Interfaces\Nouveau dossier\testTreeView.crow">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
+ <None Include="Interfaces\Splitter\1.crow">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
+ <None Include="Interfaces\Splitter\1 %28copier%29.crow">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
</ItemGroup>
<ItemGroup>
<Folder Include="Interfaces\" />
<Folder Include="Interfaces\Divers\" />
<Folder Include="Interfaces\Nouveau dossier\" />
<Folder Include="Interfaces\Expandable\" />
+ <Folder Include="Interfaces\Splitter\" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="image\tetra.png" />