From 2e2914f625bd7aab6a01ccf9946748d21dc80d7f Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Sun, 17 Nov 2019 05:45:08 +0200 Subject: [PATCH] Final tweaks to prepare for release (#1013) * PRs should use a custom prerelease label * Update some docs * Release the mouse when the button is released We must not require that the Handled == true because in many cases it is not an action that is really handled. Especially if the mouse is captured - nobody else is receiving events. --- binding/Binding/SKShader.cs | 14 +++++++ .../HarfBuzzSharp/2.6.1/HarfBuzzSharp.md | 8 ++++ .../1.68.1/SkiaSharp.Views.Android.md | 13 ++++++- changelogs/SkiaSharp/1.68.1/SkiaSharp.md | 39 ++++++++++++++++++- docs | 2 +- externals/skia | 2 +- scripts/azure-templates-bootstrapper.yml | 4 ++ .../SKTouchHandlerElement.cs | 7 +--- .../SKTouchHandlerWinForms.cs | 7 +--- 9 files changed, 82 insertions(+), 14 deletions(-) diff --git a/binding/Binding/SKShader.cs b/binding/Binding/SKShader.cs index 29b3288f..aaaf3aa8 100644 --- a/binding/Binding/SKShader.cs +++ b/binding/Binding/SKShader.cs @@ -37,6 +37,20 @@ namespace SkiaSharp return GetObject (SkiaApi.sk_shader_new_bitmap (src.Handle, tmx, tmy, &localMatrix)); } + public static SKShader CreatePicture (SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy) + { + if (src == null) + throw new ArgumentNullException (nameof (src)); + return GetObject (SkiaApi.sk_shader_new_picture (src.Handle, tmx, tmy, null, null)); + } + + public static SKShader CreatePicture (SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKRect tile) + { + if (src == null) + throw new ArgumentNullException (nameof (src)); + return GetObject (SkiaApi.sk_shader_new_picture (src.Handle, tmx, tmy, null, &tile)); + } + public static SKShader CreatePicture (SKPicture src, SKShaderTileMode tmx, SKShaderTileMode tmy, SKMatrix localMatrix, SKRect tile) { if (src == null) diff --git a/changelogs/HarfBuzzSharp/2.6.1/HarfBuzzSharp.md b/changelogs/HarfBuzzSharp/2.6.1/HarfBuzzSharp.md index a0772fe3..0495d8e4 100644 --- a/changelogs/HarfBuzzSharp/2.6.1/HarfBuzzSharp.md +++ b/changelogs/HarfBuzzSharp/2.6.1/HarfBuzzSharp.md @@ -71,6 +71,7 @@ public UnicodeFunctions UnicodeFunctions { get; set; } Added methods: ```csharp +public void Add (int codepoint, int cluster); public void Add (uint codepoint, uint cluster); public void AddCodepoints (System.ReadOnlySpan text); public void AddCodepoints (System.ReadOnlySpan text); @@ -828,6 +829,7 @@ public struct Script, System.IEquatable