Dan Walmsley
f270a1eafd
remove pen argument from DrawOperation and BrushDrawOperation
6 years ago
Dan Walmsley
bf40f69a5a
inflate rectangle nodes to take into account the pen thickness.
6 years ago
Nikita Tsukanov
bea8b676a2
Support for multiple box-shadows
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
6 years ago
Nikita Tsukanov
20f6f886f9
box-shadow support
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
527d8376d7
Combine draw and fill rectangle drawing operation
7 years ago
Steven Kirk
1a34920a79
Don't implement equality for mutable pens.
See https://github.com/AvaloniaUI/Avalonia/pull/2747#issuecomment-513210645
7 years ago
Steven Kirk
ec45084e6a
Make Pen mutable.
And add `IPen` interface and `ImmutablePen` class.
7 years ago
Steven Kirk
88f2bd791d
Fix hit testing in RectangleNode.
There were two problems here:
- As #2370 describes we were tested against the rotated AABB of the rectangle
- We were hit-testing non-filled rectangles as filled rectangles
Fixes #2370
7 years ago
Miha Markič
0a38876590
Spellchecks all projects except for Base, Controls, Samples and Testing
8 years ago
Steven Kirk
5fd6f5ac6d
Snap bounding boxes to pixels.
9 years ago
Steven Kirk
7eec9440b0
Add Brush/Pen.ToImmutable() extension method.
9 years ago
Steven Kirk
704452e1e5
Added TODOs.
9 years ago
Steven Kirk
be20562426
Added some docs.
And a few missing child scene properties.
9 years ago
Steven Kirk
a39d84b955
Use correct namespace for IDrawingContextImpl.
9 years ago
Steven Kirk
b20ced7c2b
Refactored brushes.
`SolidColorBrush` is now mutable. There are immutable versions of
brushes in the `Avalona.Media.Immutable` namespace and the static
`Brushes.Xxx` properties return these.
9 years ago
Steven Kirk
4490b5f209
Make scene nodes internal.
9 years ago
Steven Kirk
69bca2cf89
Got VisualBrushes working again.
9 years ago
Steven Kirk
d92fb0189f
Added IImageBrush and IVisualBrush
And make an immutable `SceneImageBrush` and `SceneVisualBrush` which
clone the mutable `ImageBrush` and `VisualBrush` for use in the scene
graph, as we shouldn't be accessing mutable state from the render
thread.
9 years ago
Steven Kirk
99c1df0da0
Remove Rect.operator*
It was wrong - use Rect.TransformToAABB instead.
9 years ago
Steven Kirk
1f985abaa6
Refactored VisualNode.
It now has two collections: Children and DrawOperations.
10 years ago
Steven Kirk
04fe4a0c57
Fix RectangleNode bounds.
10 years ago
Steven Kirk
3c189cbe82
Make SceneBuilder update dirty rects.
10 years ago
Steven Kirk
73f44bb7b4
Fix GeometryNode hit test.
And add to-do for RectangleNode geometry hit-test.
10 years ago
Steven Kirk
cef5ffed90
Docs and tweaking.
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
ada15eba00
Initial implementation of low-level scene graph.
Whole tree is currently being updated and rendered still though and lots doesn't even build.
10 years ago