From: Jean-Philippe Bruyère Date: Fri, 12 Jul 2024 07:12:56 +0000 (+0200) Subject: save commit X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=243204e61bde6321719c7a4b33ac39d9d4c97383;p=jp%2Fcrow.git save commit --- diff --git a/Backends/CairoBackend/Crow.CairoBackend.csproj b/Backends/CairoBackend/Crow.CairoBackend.csproj index d423fe36..37908375 100644 --- a/Backends/CairoBackend/Crow.CairoBackend.csproj +++ b/Backends/CairoBackend/Crow.CairoBackend.csproj @@ -20,7 +20,7 @@ - + diff --git a/Backends/CairoBackend/src/EglBackend.cs b/Backends/CairoBackend/src/EglBackend.cs index 073793e7..a54f9917 100644 --- a/Backends/CairoBackend/src/EglBackend.cs +++ b/Backends/CairoBackend/src/EglBackend.cs @@ -3,6 +3,7 @@ using System.IO; using Drawing2D; using Glfw; +#if CAIRO_HAS_GL namespace Crow.CairoBackend { public class EglBackend : CairoBackendBase { @@ -83,3 +84,4 @@ namespace Crow.CairoBackend } } +#endif \ No newline at end of file diff --git a/Backends/CairoBackend/src/GLSurface.cs b/Backends/CairoBackend/src/GLSurface.cs index 4fa262cc..c55ec208 100644 --- a/Backends/CairoBackend/src/GLSurface.cs +++ b/Backends/CairoBackend/src/GLSurface.cs @@ -29,6 +29,9 @@ // using System; + +#if CAIRO_HAS_GL + using OpenGL; using static OpenGL.Gl; @@ -93,3 +96,4 @@ namespace Crow.CairoBackend { } } } +#endif \ No newline at end of file diff --git a/Backends/CairoBackend/src/ImageBackend.cs b/Backends/CairoBackend/src/ImageBackend.cs index 3f59578b..c8ff7f5e 100644 --- a/Backends/CairoBackend/src/ImageBackend.cs +++ b/Backends/CairoBackend/src/ImageBackend.cs @@ -65,6 +65,8 @@ namespace Crow.CairoBackend { IContext ctx = base.PrepareUIFrame (existingContext, clipping); + //clear(ctx); + for (int i = 0; i < clipping.NumRectangles; i++) ctx.Rectangle (clipping.GetRectangle (i)); ctx.Clip (); diff --git a/Backends/CairoBackend/src/Surface.cs b/Backends/CairoBackend/src/Surface.cs index 413384f0..5a217879 100644 --- a/Backends/CairoBackend/src/Surface.cs +++ b/Backends/CairoBackend/src/Surface.cs @@ -85,7 +85,9 @@ namespace Crow.CairoBackend { case SurfaceType.Svg: return new SvgSurface (surface, owned); case SurfaceType.GL: +#if CAIRO_HAS_GL return new GLSurface (surface, owned); +#endif default: return new Surface (surface, owned); } diff --git a/Backends/Directory.Build.props b/Backends/Directory.Build.props index 0e333546..c13778f3 100644 --- a/Backends/Directory.Build.props +++ b/Backends/Directory.Build.props @@ -30,7 +30,7 @@ https://github.com/jpbruyere/Crow/wiki MIT crow.png - Copyright 2021 + Copyright 2023 diff --git a/Backends/VkvgBackend/Crow.VkvgBackend.csproj b/Backends/VkvgBackend/Crow.VkvgBackend.csproj index 226c336a..13303e95 100644 --- a/Backends/VkvgBackend/Crow.VkvgBackend.csproj +++ b/Backends/VkvgBackend/Crow.VkvgBackend.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1 + netstandard2.1 1.1.0 $(AssemblyVersion)-beta diff --git a/Crow/Templates/DirectoryView.template b/Crow/Templates/DirectoryView.template index 7a157bdd..efbdebac 100644 --- a/Crow/Templates/DirectoryView.template +++ b/Crow/Templates/DirectoryView.template @@ -6,7 +6,7 @@ Selected="{Background=${ControlHighlight}}" Unselected="{Background=Transparent}"> - + @@ -23,13 +23,13 @@ MouseEnter="{Foreground=DimGrey}" MouseLeave="{Foreground=Transparent}"> - - diff --git a/Crow/src/Widgets/PrivateContainer.cs b/Crow/src/Widgets/PrivateContainer.cs index a07563fc..addb54c7 100644 --- a/Crow/src/Widgets/PrivateContainer.cs +++ b/Crow/src/Widgets/PrivateContainer.cs @@ -14,7 +14,7 @@ namespace Crow /// does not expose child to allow reuse of container /// behaviour for widgets that have other xml hierarchy: example /// TemplatedControl may have 3 children (template,templateItem,content) but - /// behave exactely as a container for layouting and drawing + /// behave exactly as a container for layouting and drawing /// [DesignIgnore] public class PrivateContainer : Widget @@ -54,7 +54,7 @@ namespace Crow child.Dispose (); } - child = _child as Widget; + child = _child; if (child != null) { child.Parent = this; @@ -64,12 +64,12 @@ namespace Crow } } //dispose child if not null - protected virtual void deleteChild () { + /*protected virtual void deleteChild () { Widget g = child; SetChild (null); if (g != null) g.Dispose (); - } + }*/ #region Widget Overrides diff --git a/Crow/src/Widgets/Widget.cs b/Crow/src/Widgets/Widget.cs index 3ed1f324..e3703119 100644 --- a/Crow/src/Widgets/Widget.cs +++ b/Crow/src/Widgets/Widget.cs @@ -967,10 +967,6 @@ namespace Crow isVisible = value; - /*if (!isVisible) - unshownPostActions (); - RegisterForLayouting (LayoutingType.Sizing);*/ - if (isVisible){ IsDirty = true; } else { diff --git a/Directory.Build.props b/Directory.Build.props index dcf84352..d5e60c55 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -6,7 +6,7 @@ Jean-Philippe Bruyère 7.3 - 1.2.0 + 1.3.0 $(CrowVersion)-beta false - 0.2.14 + 0.2.15 diff --git a/Samples/Directory.Build.props b/Samples/Directory.Build.props index 5966c1e8..823ee37e 100644 --- a/Samples/Directory.Build.props +++ b/Samples/Directory.Build.props @@ -1,6 +1,6 @@ - netcoreapp3.1 + net6 Exe diff --git a/Samples/HelloWorld/HelloWorld.csproj b/Samples/HelloWorld/HelloWorld.csproj index 178d4537..6c6cdaf7 100644 --- a/Samples/HelloWorld/HelloWorld.csproj +++ b/Samples/HelloWorld/HelloWorld.csproj @@ -1,10 +1,5 @@  - - - netcoreapp3.1 - Exe - diff --git a/Samples/HelloWorld/main.cs b/Samples/HelloWorld/main.cs index fdf75a8d..54429171 100644 --- a/Samples/HelloWorld/main.cs +++ b/Samples/HelloWorld/main.cs @@ -11,13 +11,9 @@ namespace HelloWorld //Interface.PreferedBackendType = Drawing2D.BackendType.Egl; using (Program app = new Program ()) { //app.Initialized += (sender, e) => app.LoadIMLFragment (@"