Dan Walmsley
ab9556257c
fix test interfaces
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
6 years ago
Steven Kirk
4d01dacd77
Remove copyright headers.
Some of our files had them, some didn't. They serve no purpose legally so best to remove the ceremony.
6 years ago
Benedikt Schroeder
ab5e062deb
Add GlyphRun support
6 years ago
Benedikt Schroeder
e704823ced
Introduce a struct enumerator implementation for ReadOnlyList that can be reused
6 years ago
Benedikt Schroeder
1b0221e224
Reworked the font manager to better manage resoures and also work properly with the application lifetime
6 years ago
Benedikt Schroeder
46d3a91652
Add missing mocks
6 years ago
Benedikt Schroeder
83bfb8ec70
Initial implementation of a font manager
6 years ago
Steven Kirk
ec45084e6a
Make Pen mutable.
And add `IPen` interface and `ImmutablePen` class.
7 years ago
Steven Kirk
2210b441a2
Moved attached layout code to Avalonia.Layout.
Also involved moving `Orientation` enum.
7 years ago
Dariusz Komosinski
1b869ff27b
Get rid of not needed interfaces.
7 years ago
Dariusz Komosiński
8534769435
Platform geometry implementations for D2D and Skia.
7 years ago
Jeffrey Ye
3a28179704
return new string[0] from mock interfaces
7 years ago
Jeffrey Ye
27edc74bf8
more comments, and fix compilation error
7 years ago
Steven Kirk
a0e8dca6e9
Use PixelSize for device-dependent sizes.
8 years ago
ahopper
e967a8eb72
rename WritableBitmap
8 years ago
Steven Kirk
d2e1eba876
Refactored geometry.
There were a number of problems with `Geometry` and its subclasses and platform implementations. Fix these, for more details see the PR that this commit is a part of.
8 years ago
Jeremy Koritzinsky
39d5ac957f
Fix test.
8 years ago
Jeremy Koritzinsky
f65ae1918f
Change TransformedBounds to a direct property on Visual (exposed on IVisual) instead of using an attached property in BoundsTracker.
8 years ago
Steven Kirk
e3d34f2eb8
Added a failing test for #1221
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
19a8b8aaf2
Moved hit testing tests.
9 years ago
Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
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
Steven Kirk
42239d4498
Moved IDrawingContextImpl to Avalonia.Platform.
So it can be alongside its impl brethren.
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
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
c23e104cf2
Added failing geometry clip hit-test.
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
136f86fb42
Fix failing tests.
9 years ago
Steven Kirk
14805322ca
Removed RendererMixin.
Moved immediate rendering logic into `Renderer`.
9 years ago
Steven Kirk
a967c9bf82
Make DPI scaling work again.
9 years ago
Steven Kirk
6b6474bc8d
Fix bounds clipping.
9 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.
9 years ago
Steven Kirk
c46ca88b97
Make IGeometryImpl immutable.
As it will be shared with the UI thread and the render thread.
9 years ago
Steven Kirk
db26fe3626
Special case for hit testing in unit tests.
When not in a unit test, only update the scene from the render loop.
9 years ago
Steven Kirk
da666b4463
Make Shape render properly again.
10 years ago
Steven Kirk
934e18c8ba
Initial impl of incremental update to SceneGraph.
10 years ago
Steven Kirk
98f551c533
Don't need the context.Render any more.
In hit testing unit tests.
10 years ago
Steven Kirk
86216d9420
Use scene geometry for hit-testing.
This means we now correctly hit test circles etc.
10 years ago
Steven Kirk
d91d1829ac
Initial implementation of scenegraph hit testing.
Based solely on control bounds as before.
10 years ago
Steven Kirk
59c49d259d
Renamed assembly SceneGraph -> Visuals.
To make way for low-level scene graph library.
10 years ago