<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
- <AssemblyVersion>1.2.1</AssemblyVersion>
+ <AssemblyVersion>1.2.3</AssemblyVersion>
<PackageVersion>$(AssemblyVersion)-beta</PackageVersion>
<Title>C.R.O.W Cairo Backend</Title>
//apply constraints depending on parent type
Parent.ChildrenLayoutingConstraints (this, ref layoutType);
- // //prevent queueing same LayoutingType for this
+ //prevent queueing same LayoutingType for this
layoutType &= (~RegisteredLayoutings);
if (layoutType == LayoutingType.None)
<OutputPath>$(SolutionDir)build\$(Configuration)\</OutputPath>
<License>MIT</License>
<Authors>Jean-Philippe Bruyère</Authors>
- <LangVersion>7.3</LangVersion>
- <CrowVersion>1.3.2</CrowVersion>
+ <CrowVersion>1.3.3</CrowVersion>
<CrowPackageVersion>$(CrowVersion)-beta</CrowPackageVersion>
<!-- If you dont have a native libstb on your system, enable the managed version of stb here
<TargetFramework>netstandard2.1</TargetFramework>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
- <AssemblyVersion>1.2.1</AssemblyVersion>
+ <AssemblyVersion>1.2.3</AssemblyVersion>
<PackageVersion>$(AssemblyVersion)-beta</PackageVersion>
<Title>Drawing 2D Library</Title>
-// Copyright (c) 2013-2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
+// Copyright (c) 2013-2025 Jean-Philippe Bruyère <jp_bruyere@hotmail.com>
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
public bool mixedLineBreak = false;
public string lineBreak = null;
- internal LineCollection GetLineListCopy() => new LineCollection(lines.ToArray());
+ public LineCollection GetLineListCopy() => new LineCollection(lines.ToArray());
public Span<char> Span => buffer.Span.Slice(0, length);
public ReadOnlySpan<char> ReadOnlySpan => buffer.Span.Slice(0, length);
public bool IsEmpty => length == 0;
<VerticalStack Margin="50" Spacing="20" Background="DimGrey">
<HorizontalStack Height="Fit" Width="400" Spacing="5" Margin="5" Background="Jet">
<Label Style="labColor" Text="G:"/>
- <ColorSlider Name="cs" Component="Red" CurrentColor="Green" CursorType="Circle" ClipToClientRect="false" Background="Black" Margin="5" Height="20" />
+ <ColorSlider Name="cs" Component="Red" CurrentColor="Green" ClipToClientRect="false" Background="Black" Margin="5" Height="20" />
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
<Container Width="100" Height="100" Background="Red" Margin="5">
<Widget Width="20" Height="20" Background="Blue" HorizontalAlignment="Left" VerticalAlignment="Top"/>
</Container>
</Template>
</Slider>
- <Slider Background="RoyalBlue" Height="50" Width="400" CursorSize="50" Inverted="{../../inverted.IsChecked}">
- <Template>
- <Group Background="DarkGrey" >
- <ColorGauge Height="50%" Background="Onyx" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}"
- Inverted="{./Inverted}"/>
- <Container Name="Cursor" Background="White" >
- <Label Text="{./Value}" Foreground="Black"/>
- </Container>
- </Group>
- </Template>
- </Slider>
- <ColorPicker>
- <Template>
- <Border Background="{./Background}" Foreground="{./Foreground}" Width="Stretched"
- CornerRadius="{./CornerRadius}" BorderWidth="1">
- <VerticalStack Margin="2">
- <Widget Width="30" Height="16" Background="{./CurrentColor}"/>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="R:"/>
- <ColorSlider Name="cs" Component="Red" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="G:"/>
- <ColorSlider Name="cs" Component="Green" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="B:"/>
- <ColorSlider Name="cs" Component="Blue" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="A:"/>
- <ColorSlider Name="cs" Component="Alpha" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="H:"/>
- <ColorSlider Name="cs" Component="Hue" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="S:"/>
- <ColorSlider Name="cs" Component="Saturation" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="V:"/>
- <ColorSlider Name="cs" Component="Value" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- </VerticalStack>
- </Border>
- </Template>
- </ColorPicker>
</VerticalStack>
\ No newline at end of file
+++ /dev/null
-<VerticalStack Margin="50" Spacing="20" Background="DimGrey">
- <Label Text="{../slider1.Value}"/>
- <Slider Background="Onyx" Height="30" Width="400" >
- <Template>
- <Group Background="{./Background}">
- <ColorGauge Component="Red" Height="Stretched" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="11"
- Inverted="{./Inverted}"/>
- <Border Name="Cursor" Foreground="White" CornerRadius="7" BorderWidth="2">
- <Label Text="{./Value}" Foreground="WhiteSmoke"/>
- </Border>
- </Group>
- </Template>
- </Slider>
- <Slider Background="Onyx" Height="30" Width="400" CursorSize="20" >
- <Template>
- <Group Background="{./Background}" ClipToClientRect="false">
- <ColorGauge Component="Red" Height="Stretched" Value="{./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="10" ClipToClientRect="false"
- Inverted="{./Inverted}"/>
- <Shape Height="Stretched" Name="Cursor" Size="30,30" Path="M 0,30 L 15,0 L 30,30 Z G" StrokeWidth="1" ClipToClientRect="false" Scaled="false" />
- </Group>
- </Template>
- </Slider>
- <ColorPicker>
- <Template>
- <Border Background="{./Background}" Foreground="{./Foreground}" Width="Stretched"
- CornerRadius="{./CornerRadius}" BorderWidth="1">
- <VerticalStack Margin="2">
- <Widget Width="50" Height="30" CornerRadius="10" Background="{./CurrentColor}"/>
- <Slider Background="Onyx" Height="Fit" Width="Stretched" Foreground="{²./CurrentColor}" Maximum="255" Value="{².cg.Value}">
- <Template>
- <Group Background="{./Background}">
- <ColorGauge Name="cg" Component="Red" Height="Stretched" Value="{²./Value}" Maximum="{./Maximum}" Minimum="{Minimum}" Orientation="{./Orientation}" Margin="0" CurrentColor="{²./Foreground}"/>
- <Border Name="Cursor" Foreground="White" CornerRadius="7" BorderWidth="2">
- <Label Text="{./Value}" Foreground="WhiteSmoke"/>
- </Border>
- </Group>
- </Template>
- </Slider>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="R:"/>
- <ColorSlider Name="cs" Component="Red" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="G:"/>
- <ColorSlider Name="cs" Component="Green" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="B:"/>
- <ColorSlider Name="cs" Component="Blue" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="A:"/>
- <ColorSlider Name="cs" Component="Alpha" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="H:"/>
- <ColorSlider Name="cs" Component="Hue" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="S:"/>
- <ColorSlider Name="cs" Component="Saturation" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- <HorizontalStack Height="Fit">
- <Label Style="labColor" Text="V:"/>
- <ColorSlider Name="cs" Component="Value" CurrentColor="{²./CurrentColor}"/>
- <Label Style="labColorV" Text="{../cs.CurrentValue}" />
- </HorizontalStack>
- </VerticalStack>
- </Border>
- </Template>
- </ColorPicker>
-</VerticalStack>
\ No newline at end of file