101 changed files with 517 additions and 372 deletions
@ -1,5 +1,8 @@ |
|||
<ProjectConfiguration> |
|||
<Settings> |
|||
<AdditionalFilesToIncludeForProject> |
|||
<Value>..\TestFiles\Direct2D1\**.*</Value> |
|||
</AdditionalFilesToIncludeForProject> |
|||
<DefaultTestTimeout>3000</DefaultTestTimeout> |
|||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully> |
|||
</Settings> |
|||
|
|||
@ -1,7 +1,9 @@ |
|||
<ProjectConfiguration> |
|||
<Settings> |
|||
<DefaultTestTimeout>1000</DefaultTestTimeout> |
|||
<IgnoreThisComponentCompletely>True</IgnoreThisComponentCompletely> |
|||
<AdditionalFilesToIncludeForProject> |
|||
<Value>..\TestFiles\Skia\**.*</Value> |
|||
</AdditionalFilesToIncludeForProject> |
|||
<DefaultTestTimeout>3000</DefaultTestTimeout> |
|||
<PreviouslyBuiltSuccessfully>True</PreviouslyBuiltSuccessfully> |
|||
</Settings> |
|||
</ProjectConfiguration> |
|||
@ -1,51 +0,0 @@ |
|||
// Copyright (c) The Avalonia Project. All rights reserved.
|
|||
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|||
|
|||
using System; |
|||
|
|||
namespace Avalonia.VisualTree |
|||
{ |
|||
/// <summary>
|
|||
/// Tracks the bounds of a control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This class is used to track a controls's bounds for hit testing.
|
|||
/// TODO: This shouldn't be implemented as an attached property: it would be more performant
|
|||
/// to just store bounds in some sort of central repository.
|
|||
/// </remarks>
|
|||
public class BoundsTracker |
|||
{ |
|||
/// <summary>
|
|||
/// Defines the TransformedBounds attached property.
|
|||
/// </summary>
|
|||
private static AttachedProperty<TransformedBounds?> TransformedBoundsProperty = |
|||
AvaloniaProperty.RegisterAttached<BoundsTracker, Visual, TransformedBounds?>("TransformedBounds"); |
|||
|
|||
/// <summary>
|
|||
/// Starts tracking the specified visual.
|
|||
/// </summary>
|
|||
/// <param name="visual">The visual.</param>
|
|||
/// <returns>An observable that returns the tracked bounds.</returns>
|
|||
public IObservable<TransformedBounds?> Track(Visual visual) |
|||
{ |
|||
return visual.GetObservable(TransformedBoundsProperty); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Sets the transformed bounds of the visual.
|
|||
/// </summary>
|
|||
/// <param name="visual">The visual.</param>
|
|||
/// <param name="value">The transformed bounds.</param>
|
|||
internal static void SetTransformedBounds(Visual visual, TransformedBounds? value) |
|||
{ |
|||
visual.SetValue(TransformedBoundsProperty, value); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Gets the transformed bounds of the visual.
|
|||
/// </summary>
|
|||
/// <param name="visual">The visual.</param>
|
|||
/// <returns>The transformed bounds or null if the visual is not visible.</returns>
|
|||
public static TransformedBounds? GetTransformedBounds(Visual visual) => visual.GetValue(TransformedBoundsProperty); |
|||
} |
|||
} |
|||
@ -1,2 +0,0 @@ |
|||
obj-Skia/ |
|||
obj-Skia/* |
|||
@ -1,33 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup> |
|||
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> |
|||
<HasSharedItems>true</HasSharedItems> |
|||
<SharedGUID>48840edd-24bf-495d-911e-2eb12ae75d3b</SharedGUID> |
|||
</PropertyGroup> |
|||
<PropertyGroup Label="Configuration"> |
|||
<Import_RootNamespace>Avalonia.RenderTests</Import_RootNamespace> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<Compile Include="$(MSBuildThisFileDirectory)Controls\CustomRenderTests.cs" /> |
|||
<Compile Include="$(MSBuildThisFileDirectory)GeometryClippingTests.cs" /> |
|||
<Compile Include="$(MSBuildThisFileDirectory)Media\RadialGradientBrushTests.cs" /> |
|||
<Compile Include="$(MSBuildThisFileDirectory)Media\BitmapTests.cs" /> |
|||
<Compile Include="$(MSBuildThisFileDirectory)OpacityMaskTests.cs" /> |
|||
<Compile Include="$(MSBuildThisFileDirectory)SVGPathTests.cs" /> |
|||
<Compile Include="Media\FormattedTextImplTests.cs" /> |
|||
<Compile Include="Controls\ImageTests.cs" /> |
|||
<Compile Include="Controls\BorderTests.cs" /> |
|||
<Compile Include="Media\ImageBrushTests.cs" /> |
|||
<Compile Include="Media\LinearGradientBrushTests.cs" /> |
|||
<Compile Include="Media\VisualBrushTests.cs" /> |
|||
<Compile Include="Shapes\LineTests.cs" /> |
|||
<Compile Include="Shapes\PathTests.cs" /> |
|||
<Compile Include="Shapes\EllipseTests.cs" /> |
|||
<Compile Include="Shapes\PolygonTests.cs" /> |
|||
<Compile Include="Shapes\PolylineTests.cs" /> |
|||
<Compile Include="Shapes\RectangleTests.cs" /> |
|||
<Compile Include="TestBase.cs" /> |
|||
<Compile Include="Properties\AssemblyInfo.cs" /> |
|||
</ItemGroup> |
|||
</Project> |
|||
@ -1,16 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup Label="Globals"> |
|||
<ProjectGuid>48840edd-24bf-495d-911e-2eb12ae75d3b</ProjectGuid> |
|||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion> |
|||
</PropertyGroup> |
|||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> |
|||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" /> |
|||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" /> |
|||
<PropertyGroup /> |
|||
<ItemGroup> |
|||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> |
|||
</ItemGroup> |
|||
<Import Project="Avalonia.RenderTests.projitems" Label="Shared" /> |
|||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" /> |
|||
</Project> |
|||
|
Before Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue