]> O.S.I.I.S - jp/crow.git/commitdiff
update versions
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 4 Mar 2025 23:03:57 +0000 (00:03 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Tue, 4 Mar 2025 23:03:57 +0000 (00:03 +0100)
Backends/CairoBackend/Crow.CairoBackend.csproj
Crow/src/Widgets/Widget.cs
Directory.Build.props
Drawing2D/Drawing2D.csproj
Drawing2D/src/CharLocation.cs
Drawing2D/src/TextBuffer.cs
Samples/common/ui/Interfaces/Divers/colorSlider.crow
Samples/common/ui/Interfaces/Divers/colorSlider2.crow [deleted file]

index 6b15a45e091cc3c800eea7c5287f8e9365b61baa..60a301cefdf69311f5987113471b5e18e9ae81be 100644 (file)
@@ -3,7 +3,7 @@
   <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>
index 5e47dd6b6091d42666886ceaf9ba2774c29b31e4..8c0dfc4f6f0af00c5b5c13cae52b0f500510a957 100644 (file)
@@ -1719,7 +1719,7 @@ namespace Crow
                                        //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)
index f3f829df0f03fd0a22de186fa5c9a3967f47d2b3..13f567f6d0d40dd17401eee10d1b8a92b149d4c8 100644 (file)
@@ -4,9 +4,8 @@
                <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
index d1c3f10f2b062bd3c801abf58ce5c8dfbbd0188e..9af041b5ec62b0e11930cc6a83a2859d942ca7e5 100644 (file)
@@ -4,7 +4,7 @@
                <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>
index 345f8fa3dfc6c7729848ff5c0be0be2282d6ef94..761274d13c6790624c79409024745470ad59b927 100644 (file)
@@ -1,4 +1,4 @@
-// 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;
index ff85e2ff8994d5b9a30172227913cfde7ea8dfd1..25deb5fe6f274a169169d13ff48bbfbabf430a84 100644 (file)
@@ -19,7 +19,7 @@ namespace CrowEditBase
                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;
index 012fd2dd5d979bd6d69891873d81d376ee90bed3..a7cda8c33400283772bc4256c94bd98b127f7d36 100644 (file)
@@ -1,7 +1,7 @@
 <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
diff --git a/Samples/common/ui/Interfaces/Divers/colorSlider2.crow b/Samples/common/ui/Interfaces/Divers/colorSlider2.crow
deleted file mode 100644 (file)
index 111ce06..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<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