diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-04 13:12:30 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-04 14:29:18 +0200 |
| commit | 3a01c455e09af25109239ab7ca32e66ea1ebc99b (patch) | |
| tree | 27a7c6923c7285d1a8432ae393c8a5fb8981a28d /Tests/Interfaces/Divers | |
| parent | b24819ffb8f629fb0ed70064f90357a42653ae5d (diff) | |
* Tests.csproj:
* BasicTests.cs:
* TreeView.crow:
* welcome.crow:
* test4.crow:
* testWindow2.goml:
* testTreeView.crow:
* testDirViewer.crow: update tests
* Interface.cs:
* OpenTKGameWindow.cs: perf measures
* IMLStream.cs: datas prop
* TemplatedControl.cs: ItemTemplate
* ListBox.cs: thread sync
nouveau fichier : Tests/test.style
Diffstat (limited to 'Tests/Interfaces/Divers')
| -rwxr-xr-x | Tests/Interfaces/Divers/testWindow2.goml | 55 | ||||
| -rw-r--r-- | Tests/Interfaces/Divers/welcome.crow | 7 |
2 files changed, 35 insertions, 27 deletions
diff --git a/Tests/Interfaces/Divers/testWindow2.goml b/Tests/Interfaces/Divers/testWindow2.goml index 6fb61db0..7f0caf31 100755 --- a/Tests/Interfaces/Divers/testWindow2.goml +++ b/Tests/Interfaces/Divers/testWindow2.goml @@ -1,26 +1,33 @@ <?xml version="1.0"?> -<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0.5,0.5,0.5,0.8" - Focusable="True" CornerRadius="20" MinimumSize="100,100" MaximumSize="500,500"> - <Template> - <Border BorderWidth="1" Foreground="White" CornerRadius="20" Height="{../HeightPolicy}" Width="{../WidthPolicy}"> - <VerticalStack Height="{../../HeightPolicy}" Width="{../../WidthPolicy}"> - <Border BorderWidth="1" Foreground="White" Width="{../../../WidthPolicy}" Height="Fit" - Background="0.1,0.5;1,0,0.5"> - <HorizontalStack Name="hs" Margin="1" Spacing="1" Width="{../../../../WidthPolicy}" Height="Fit" > - <GraphicObject Width="5"/> - <Image Margin="1" Width="12" Height="12" Path="{../../../../../Icon}"/> - <Label Foreground="White" Width="{../../../../../WidthPolicy}" Margin="1" TextAlignment="Center" Text="{../../../../../Title}" /> - <Border CornerRadius="6" BorderWidth="1" Foreground="Transparent" Height="12" Width="12" - MouseEnter="{Foreground=White}" MouseLeave="{Foreground=Transparent}"> - <Image Focusable="true" Name="Image" Margin="0" Width="Stretched" Height="Stretched" Path="#Crow.Images.Icons.exit2.svg" - MouseClick="../../../../../../butQuitPress"/> - </Border> - <GraphicObject Width="5"/> - </HorizontalStack> - </Border> - <Container Name="Content" Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}" Background="0.5,0.5,0.5,0.5"/> - </VerticalStack> - </Border> - </Template> - <GraphicObject Height="50" Width="50" Background="Green"/> +<Window Focusable="true" Title="Measures" Width="30%" Height="Fit" MinimumSize="100,100"> + <VerticalStack Width="90%" Height="Fit" Spacing="1" Margin="10"> + <HorizontalStack Height="Fit"> + <Label Text="Fps:" Style="FpsLabel"/> + <Label Text="{fps}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Min:" Style="FpsLabel"/> + <Label Text="{fpsMin}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Max:" Style="FpsLabel"/> + <Label Text="{fpsMax}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Update:" Style="FpsLabel"/> + <Label Text="{update}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Layouting:" Style="FpsLabel"/> + <Label Text="{layouting}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Clipping:" Style="FpsLabel"/> + <Label Text="{clipping}" Style="FpsDisp"/> + </HorizontalStack> + <HorizontalStack Height="Fit"> + <Label Text="Drawing:" Style="FpsLabel"/> + <Label Text="{drawing}" Style="FpsDisp"/> + </HorizontalStack> + </VerticalStack> </Window> diff --git a/Tests/Interfaces/Divers/welcome.crow b/Tests/Interfaces/Divers/welcome.crow index 8a98b380..65fc3577 100644 --- a/Tests/Interfaces/Divers/welcome.crow +++ b/Tests/Interfaces/Divers/welcome.crow @@ -1,5 +1,6 @@ <?xml version="1.0"?> -<VerticalStack> - <Label Text="Press <F3> to cycle into the examples"/> - <Label Text="Those are basic tests used to validate changes"/> +<VerticalStack Fit="true" VerticalAlignment="Top" Background="0.7,0.7,0.7,0.5" + Margin="10" CornerRadius="10"> + <Label Font="20" Text="Press <F3> to cycle into the examples"/> + <Label Font="20" Text="Those are basic tests used to validate changes"/> </VerticalStack>
\ No newline at end of file |