Jumar Macato
5 years ago
No known key found for this signature in database
GPG Key ID: B19884DAC3A5BF3F
6 changed files with
7 additions and
7 deletions
-
src/Avalonia.Headless/HeadlessPlatformRenderInterface.cs
-
src/Avalonia.Visuals/Platform/IGeometryImpl.cs
-
src/Skia/Avalonia.Skia/GeometryImpl.cs
-
src/Windows/Avalonia.Direct2D1/Media/GeometryImpl.cs
-
tests/Avalonia.UnitTests/MockStreamGeometryImpl.cs
-
tests/Avalonia.Visuals.UnitTests/VisualTree/MockRenderInterface.cs
|
|
|
@ -143,7 +143,7 @@ namespace Avalonia.Headless |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
public bool TryGetSegment(float startDistance, float stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
public bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
{ |
|
|
|
segmentGeometry = null; |
|
|
|
return false; |
|
|
|
|
|
|
|
@ -85,6 +85,6 @@ namespace Avalonia.Platform |
|
|
|
/// <param name="startOnBeginFigure">If ture, the resulting snipped path will start with a BeginFigure call.</param>
|
|
|
|
/// <param name="segmentGeometry">The resulting snipped path.</param>
|
|
|
|
/// <returns>If the snipping operation is successful.</returns>
|
|
|
|
bool TryGetSegment (float startDistance, float stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry); |
|
|
|
bool TryGetSegment (double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ namespace Avalonia.Skia |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
public bool TryGetSegment(float startDistance, float stopDistance, bool startOnBeginFigure, |
|
|
|
public bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, |
|
|
|
out IGeometryImpl segmentGeometry) |
|
|
|
{ |
|
|
|
if (EffectivePath is null) |
|
|
|
@ -181,7 +181,7 @@ namespace Avalonia.Skia |
|
|
|
|
|
|
|
SKPath _skPathSegment = null; |
|
|
|
|
|
|
|
var res = _pathMeasureCache.GetSegment(startDistance, stopDistance, _skPathSegment, startOnBeginFigure); |
|
|
|
var res = _pathMeasureCache.GetSegment((float)startDistance, (float)stopDistance, _skPathSegment, startOnBeginFigure); |
|
|
|
|
|
|
|
if (res) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -82,7 +82,7 @@ namespace Avalonia.Direct2D1.Media |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
public bool TryGetSegment(float startDistance, float stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
public bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
{ |
|
|
|
// Direct2D doesnt have this too sadly.
|
|
|
|
Logger.TryGet(LogEventLevel.Warning, LogArea.Visual)?.Log(this, "TryGetSegment is not available in Direct2D."); |
|
|
|
|
|
|
|
@ -84,7 +84,7 @@ namespace Avalonia.UnitTests |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
public bool TryGetSegment(float startDistance, float stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
public bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
{ |
|
|
|
segmentGeometry = null; |
|
|
|
return false; |
|
|
|
|
|
|
|
@ -163,7 +163,7 @@ namespace Avalonia.Visuals.UnitTests.VisualTree |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|
|
|
|
public bool TryGetSegment(float startDistance, float stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
public bool TryGetSegment(double startDistance, double stopDistance, bool startOnBeginFigure, out IGeometryImpl segmentGeometry) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|