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
Steven Kirk
ab9cf03eff
WIP: Delegate back to render for VisualBrushes.
`VisualBrush`es need to get delegated back to the renderer for
rendering, so added an `IVisualBrushRenderer` interface which is
implemented by the renderers, and pass this when creating drawing
contexts. Only currently implemented/tested for D2D and
`ImmediateRenderer`.
9 years ago
Steven Kirk
e79a144c14
WIP: Working on getting VisualBrush working
Don't try to render `VisualBrush`es in TileBrushImpl - visual brushes
need first to be transformed into images and then rendered as an
`ImageBrush`. To this end, renamed `TileBrushImpl` as `ImageBrushImpl`
(in D2D backend only for now as that's what I'll get working first).
Actual visual brush implementation not yet done.
9 years ago
Nikita Tsukanov
374d600275
Added support for multiple drawing methods for window implementations. Added framebuffer support
9 years ago
Steven Kirk
4ce2e09ef3
Use widened bounds for GeometryNode.Bounds.
9 years ago
Steven Kirk
0a36466021
Run render tests with deferred renderer.
Make render tests run all tests with both the deferred and immediate
renderer.
9 years ago
Steven Kirk
136f86fb42
Fix failing tests.
10 years ago
Steven Kirk
14805322ca
Removed RendererMixin.
Moved immediate rendering logic into `Renderer`.
10 years ago
Steven Kirk
a967c9bf82
Make DPI scaling work again.
10 years ago
Steven Kirk
bae15f3ec4
Update dirty controls in order.
10 years ago
Steven Kirk
6d3ca92a4c
WIP: Getting resizing working.
10 years ago
Steven Kirk
ec2998728e
Store layers in Scene.
Layers are now calculated by SceneBuilder and stored in Scene. This
means we are no longer accessing `visual.Opacity` from the render thread
(and `VerifyAccess` calls have been placed in AvaloniaObject.GetValue
and friends to ensure this cannot happen). ControlCatalog is now
rendering mostly fine.
10 years ago
Steven Kirk
97ea14d58c
More work on deferred renderer.
Getting opacity layers working.
10 years ago
Steven Kirk
d34c279ba1
WIP: Adding render layers.
10 years ago
Steven Kirk
1f985abaa6
Refactored VisualNode.
It now has two collections: Children and DrawOperations.
10 years ago
Steven Kirk
6b6474bc8d
Fix bounds clipping.
10 years ago
Steven Kirk
584cdbb133
Make FormattedTextImpl immutable.
Because it needs to be shared between the UI thread and the render
thread. This also required making it non-disposable like the other
graphics primitive impls.
10 years ago