Steven Kirk
5cc5b91930
Fix xunit warnings.
8 years ago
Steven Kirk
880cf657ec
Accept root in IRenderer.HitTest.
Fixes #1221 .
9 years ago
Steven Kirk
e3d34f2eb8
Added a failing test for #1221
9 years ago
Steven Kirk
d1eb0512bb
Added failing test for #1171 .
9 years ago
Steven Kirk
5fd6f5ac6d
Snap bounding boxes to pixels.
9 years ago
Steven Kirk
685a509c5c
Reimplement commented-out tests.
9 years ago
Steven Kirk
bb5a7f0cd3
Removed IRenderLayerFactory
And use `IDrawingContextImpl.CreateLayer` instead.
9 years ago
Nikita Tsukanov
913149d093
Switched to .NET Standard 2.0
9 years ago
Steven Kirk
b5317085af
Tweaked formatting.
9 years ago
Dan Walmsley
b18d91ff74
Add inline data that tests comma seperated bezier curves.
9 years ago
Eli Arbel
42115b6ade
Fix #1107
9 years ago
Eli Arbel
d9b20fada4
Rect parse & type converter
9 years ago
Eli Arbel
8cc6d30696
Matrix.Parse & type converter
9 years ago
Steven Kirk
7de42e02e1
Clear scene for invisible root visuals.
When a root visual is hidden, clear `DeferredRenderer._scene` and completely rebuild it if it is shown again.
Fixes #1096
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
daf59b8497
Start/stop the renderer on window show/hide.
9 years ago
Steven Kirk
0f81420ee2
Don't remove root layer when hiding root.
9 years ago
Steven Kirk
024573ddd5
Removed bad project references.
9 years ago
Steven Kirk
4730ee1c41
Fix spelling of descendant.
While "descendent" is an acceptable English spelling, "descendant" is the common spelling.
9 years ago
Steven Kirk
425a670b9d
Added immediate renderer hit tests.
Ported from `scenegraph`. Tests from
`VisualExtensionsTests_GetVisualsAt` moved there.
9 years ago
Steven Kirk
7119464206
Added ImmediateRenderer hit tests.
9 years ago
Steven Kirk
19a8b8aaf2
Moved hit testing tests.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
9 years ago
Steven Kirk
1af559c52e
Fixed name of tests.
9 years ago
Steven Kirk
e6cb529878
Ported immutable media impls from scenegraph.
The deferred renderer requires immutable objects for drawing as it
renders on a separate thread.
9 years ago
Steven Kirk
376535b198
Make IFormattedTextImpl immutable.
Previously `IFormattedTextImpl` had `SetForegroundBrush` which set
mutable state. Make `FormattedText` fully mutable (before it was kinda
mutable, kinda immutable) and create immutable `IFormattedTextImpl`s on
demand.
9 years ago
Wiesław Šoltés
e9d108a506
Fixed xml tags
9 years ago
Wiesław Šoltés
3b3266cc7c
Converted Avalonia.Visuals.UnitTests to a new project system
9 years ago
Wiesław Šoltés
f8097cc27d
Added msbuild props for package references
9 years ago
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
9 years ago
Nikita Tsukanov
25c7be5b7a
Removed packages.config from csproj.files
9 years ago
Nikita Tsukanov
dc8a32d1b1
Run Avalonia.Base.UnitTests using `dotnet test`
9 years ago
Nikita Tsukanov
485fe1364e
Everything is buildable via MSBuild
9 years ago
Nikita Tsukanov
b6b5b9de88
Test now compile and can be run from visual studio
9 years ago
Nikita Tsukanov
b0a063838f
Migrated to PackageReference
9 years ago
Steven Kirk
609c571424
Added AspectRatio and division operator to Size.
9 years ago
Steven Kirk
64e8896144
Added Rect.Union empty tests.
9 years ago
Steven Kirk
5546ed043f
Added Rect.Union.
9 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
9 years ago
Steven Kirk
059b937237
Set dirty rect when control removed/hidden.
And added unit tests. This bug resulted in a glitch on the Carousel page
in ControlCatalog when the images were scrolled.
9 years ago
Nikita Tsukanov
90a4915549
Implemented WritableBitmap
9 years ago
Nikita Tsukanov
7013033a1b
Added `Bitmap(PixelFormat format, IntPtr data, int width, int height, int stride)` constructor
9 years ago
Steven Kirk
5e4f5a6160
Handle geometry clips on child layers.
9 years ago
Steven Kirk
abe69ac320
Moved some mocks into Avalonia.UnitTests.
From Avalonia.Visuals.UnitTests as they're useful generally.
9 years ago
Steven Kirk
a849d7b116
Fixed geometry clip hit testing.
Updated unit test to test for previous problem.
9 years ago
Steven Kirk
bfd8c04149
Make geometry clips work.
Still problems with hit-testing and geometry clips aren't propogated to
new layers.
9 years ago
Steven Kirk
d1e322c94b
Added failing test.
RenderTransforms aren't being applied correctly after initial scene
build.
9 years ago
Steven Kirk
c23e104cf2
Added failing geometry clip hit-test.
9 years ago
Steven Kirk
c39fd38622
Make OpacityMask work in deferred renderer.
9 years ago
Steven Kirk
69bca2cf89
Got VisualBrushes working again.
9 years ago