diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-01-14 08:07:43 +0100 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2021-02-06 20:28:02 +0100 |
| commit | 2ab44f600bd0ecab04d03ba08fdc17ea195babf2 (patch) | |
| tree | 916e61f3a6776ea97f73d77ea8b601684c2ad5f2 /Samples/common/ui/Interfaces | |
| parent | 0f08742ef206f006db97a8d2bc67b1c4cae34deb (diff) | |
label, cached line width in pixel in LineSpan struct, use stackalloc for a single utf8 conversion for size and print, perfs and samplebase
Diffstat (limited to 'Samples/common/ui/Interfaces')
| -rw-r--r-- | Samples/common/ui/Interfaces/Divers/testVisibility.crow | 4 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Experimental/testDock2.crow | 26 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/0.crow) | 0 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow | 3 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/1.crow | 3 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/2.crow) | 0 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow | 3 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow (renamed from Samples/common/ui/Interfaces/PerfLabels/labels.crow) | 24 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow | 29 |
9 files changed, 37 insertions, 55 deletions
diff --git a/Samples/common/ui/Interfaces/Divers/testVisibility.crow b/Samples/common/ui/Interfaces/Divers/testVisibility.crow index 9f9464c9..581bab06 100644 --- a/Samples/common/ui/Interfaces/Divers/testVisibility.crow +++ b/Samples/common/ui/Interfaces/Divers/testVisibility.crow @@ -1,8 +1,8 @@ <?xml version="1.0"?> <Container Margin="20" Background="Red" > - <Container Margin="20" Background="Green" MouseDown="{../go1.Visible=True}" > + <!--<Container Margin="20" Background="Green" MouseDown="{../go1.Visible=True}" > <Widget Name="go1" Margin="20" Background="DimGrey" Visible="false" MouseDown="{Visible=false}" MouseEnter="{Background=Blue}" MouseLeave="{Background=DimGrey}"/> - </Container> + </Container>--> </Container> diff --git a/Samples/common/ui/Interfaces/Experimental/testDock2.crow b/Samples/common/ui/Interfaces/Experimental/testDock2.crow deleted file mode 100644 index d4eb29ac..00000000 --- a/Samples/common/ui/Interfaces/Experimental/testDock2.crow +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0"?> -<Docker > - <DockWindow Left="100" Top="100" Width="150" Height="150" Background="DarkRed"/> - <DockWindow Left="200" Top="200" Width="150" Height="150" Background="DarkGreen"/> - <DockWindow Left="300" Top="300" Width="150" Height="150" Background="Blue"/> - <DockWindow Left="400" Top="400" Width="150" Height="150" Background="Yellow"/> - <DockWindow Left="500" Top="500" Width="150" Height="150" Background="Yellow"/> -</Docker> -<!--<Group Background="DimGrey" Margin = "0" Focusable="true" > - <Window Top="100" Left="100" Focusable="true" Caption="View 1" Width="300" Height="300"><Widget Background="Green" Focusable="true" MouseEnter="{Background=Grey}" MouseLeave="{Background=Green}"/></Window> - <Window Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></Window> - <Window Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></Window> - <Window Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></Window> -</Group>--> -<!--<Docker > - <DockWindow Resizable = "true" Top="100" Left="100" Caption="View 1" Width="300" Height="300"> - <VerticalStack Background="DarkGreen" Focusable="true"> - <Label Text="{../../Left}" Background="Black" Width="Stretched"/> - <Label Text="{../../Top}" Background="Black"/> - <Label Text="{../../LogicalParent}" Background="Black"/> - </VerticalStack> - </DockWindow> - <DockWindow Top="200" Left="200" Focusable="true" Caption="View 2" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Blue" MouseEnter="{Background=Grey}" MouseLeave="{Background=Blue}"/></DockWindow> - <DockWindow Top="300" Left="300" Focusable="true" Caption="View 3" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Yellow" MouseEnter="{Background=Grey}" MouseLeave="{Background=Yellow}"/></DockWindow> - <DockWindow Top="400" Left="400" Focusable="true" Caption="View 4" Resizable = "true" Width="300" Height="300"><Widget Focusable="true" Background="Black" MouseEnter="{Background=Grey}" MouseLeave="{Background=Black}"/></DockWindow> -</Docker>-->
\ No newline at end of file diff --git a/Samples/common/ui/Interfaces/PerfLabels/0.crow b/Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow index 14304360..14304360 100644 --- a/Samples/common/ui/Interfaces/PerfLabels/0.crow +++ b/Samples/common/ui/Interfaces/PerfLabels/0_single_Label.crow diff --git a/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow b/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow new file mode 100644 index 00000000..4157b6a7 --- /dev/null +++ b/Samples/common/ui/Interfaces/PerfLabels/0_single_oldLabel.crow @@ -0,0 +1,3 @@ +<?xml version="1.0"?> +<OldLabel Text="no update in this file"/> + diff --git a/Samples/common/ui/Interfaces/PerfLabels/1.crow b/Samples/common/ui/Interfaces/PerfLabels/1.crow deleted file mode 100644 index 155e5188..00000000 --- a/Samples/common/ui/Interfaces/PerfLabels/1.crow +++ /dev/null @@ -1,3 +0,0 @@ -<?xml version="1.0"?> -<TextRun Text="{elapsed}" Fit="true" Background="Onyx"/> - diff --git a/Samples/common/ui/Interfaces/PerfLabels/2.crow b/Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow index 034518cb..034518cb 100644 --- a/Samples/common/ui/Interfaces/PerfLabels/2.crow +++ b/Samples/common/ui/Interfaces/PerfLabels/1_single_lab_update.crow diff --git a/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow b/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow new file mode 100644 index 00000000..1a02ce7e --- /dev/null +++ b/Samples/common/ui/Interfaces/PerfLabels/1_single_old_update.crow @@ -0,0 +1,3 @@ +<?xml version="1.0"?> +<OldLabel Text="{elapsed}" Fit="true" Background="Onyx"/> + diff --git a/Samples/common/ui/Interfaces/PerfLabels/labels.crow b/Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow index 57c49ad5..8d944f01 100644 --- a/Samples/common/ui/Interfaces/PerfLabels/labels.crow +++ b/Samples/common/ui/Interfaces/PerfLabels/2_labels_update.crow @@ -24,30 +24,6 @@ <Label Text="{elapsed}" /> <Label Text="{elapsed}" /> </VerticalStack> - <VerticalStack Width="20%" Height="Fit"> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - </VerticalStack> - <VerticalStack Width="20%" Height="Fit"> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - <Label Text="{elapsed}" /> - </VerticalStack> </HorizontalStack> diff --git a/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow b/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow new file mode 100644 index 00000000..f55bedc3 --- /dev/null +++ b/Samples/common/ui/Interfaces/PerfLabels/2_old_labels_update.crow @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<HorizontalStack> + <VerticalStack Width="20%" Height="Fit"> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + </VerticalStack> + <VerticalStack Width="20%" Height="Fit"> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + <OldLabel Text="{elapsed}" /> + </VerticalStack> +</HorizontalStack> + + |