Dan Walmsley
cbda0e9d95
fix nits.
6 years ago
Wiesław Šoltés
4eef1c1179
Make DrawingContext.PushSetTransform method public
6 years ago
Dan Walmsley
29004117b6
Draw operation bounds are Normalized.
6 years ago
Dan Walmsley
fe01544a4c
Add a Rect.Normalize method with tests.
6 years ago
Dariusz Komosinski
d284e8b253
Fix NextDrawAs.
6 years ago
Nikita Tsukanov
c3635302b5
Changed box shadow drawing APIs a bit
6 years ago
Dan Walmsley
957eef7dba
share linebouds helper with render demo. remove hacky test code.
6 years ago
Steven Kirk
07fd1731e7
Fix PixelRect snapping.
6 years ago
Steven Kirk
fc5c814cfa
Correctly snap dirty rects to device pixels.
6 years ago
Benedikt Schroeder
6b8f867006
Initialize the GlyphRun on render
6 years ago
Dan Walmsley
f270a1eafd
remove pen argument from DrawOperation and BrushDrawOperation
6 years ago
Nikita Tsukanov
d3cde7cc82
Removed duplicated code
6 years ago
Dan Walmsley
41bf3f6919
remove unused code.
6 years ago
Dan Walmsley
c49e2c66be
whitespace
6 years ago
Dan Walmsley
287352f92a
fix demo repro
6 years ago
Dan Walmsley
5eba04f06c
do all calculations in radians.
6 years ago
Dan Walmsley
4d7c89b004
make CreateScaledBitmap an instance method
6 years ago
Dan Walmsley
ac65b4e717
Add documentation.
6 years ago
Dan Walmsley
0889318c57
Add createscaled bitmap
6 years ago
Dan Walmsley
663b91a8bf
Implement ability to decode a bitmap at a specified width or height.
6 years ago
Dan Walmsley
9ee748f35e
correct the terminology of the helper methods
6 years ago
Dan Walmsley
bf40f69a5a
inflate rectangle nodes to take into account the pen thickness.
6 years ago
Dan Walmsley
0808e2810e
move to static LineBoundsHelper class.
6 years ago
Dan Walmsley
b429f3e850
move calculate bounds to LineNode.
6 years ago
Dan Walmsley
1dc40aad68
dont inflate in draw operation
6 years ago
Dan Walmsley
3995b8abb9
use default arguments for bitmap decoder options in platform backends.
6 years ago
Dan Walmsley
ba75735848
decode bitmaps at a specified size.
6 years ago
Benedikt Schroeder
6f3a1db9a6
Fix TextBox invalidation
6 years ago
Nikita Tsukanov
bea8b676a2
Support for multiple box-shadows
6 years ago
Nikita Tsukanov
d3b8b02fd1
ROS
6 years ago
Nikita Tsukanov
6311b913e1
Second ctor
6 years ago
Nikita Tsukanov
07288d2087
Reduce allocations
6 years ago
Nikita Tsukanov
b201e8c591
Show the effective rendered frame count instead of render timer tick count
6 years ago
Nikita Tsukanov
4af87777c5
Preemptively schedule a scene update when rendering an updated SceneInvalidated
Effective FPS is now 60 instead of 30
6 years ago
Nikita Tsukanov
d0b041095d
Inset box-shadow
6 years ago
Dariusz Komosinski
f3dfb5d18c
Fix broken visual ancestor.
6 years ago
Dariusz Komosinski
cd2b26bc94
Add extra methods to LogicalExtensions and optimize a few methods as well.
6 years ago
Nikita Tsukanov
20f6f886f9
box-shadow support
6 years ago
Benedikt Schroeder
273d320212
Use readonly properties instead of public fields
6 years ago
Steven Kirk
83098e9923
Enable transitions for non-Visuals.
`Visual` knows when it's attached to the visual tree, so it can enable transitions then.
This is a hack due to the fact that non-Visuals currently don't know when to enable transitions.
6 years ago
Steven Kirk
d1fc5ee92e
Reworked transitions.
- Don't apply transitions before control is added to the visual tree
- Don't allow transitions on direct properties
- Ignore animated values when determining whether to trigger a transition
- Cancel transition when removed from `Transitions` collection
6 years ago
Steven Kirk
4a752c3f48
Get non-animated change information.
- Pass information for all property changes to `OnPropertyChangedCore`; whether they result in an effective value change or not
- Added `GetBaseValue` to get a value with a specified priority
- Change the signature of `OnPropertyChanged` again to take an `AvaloniaPropertyChangedEventArgs<T>`
6 years ago
Benedikt Schroeder
0b1b3914b3
More text rendering improvements
6 years ago
Dariusz Komosinski
43a0f50866
Limit reallocations in the deferred renderer.
6 years ago
Dariusz Komosiński
703cb79049
Revert "Collection pooling for DeferredRenderer"
6 years ago
Dariusz Komosinski
f8c8098ad5
Pool collections used by VisualNode. Ensure that when cloning we initialize collection sizes to avoid reallocations.
7 years ago
Steven Kirk
3fc21f30b4
Invalidate brush when Opacity changes.
Fixes #2755 .
7 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.
7 years ago
Benedikt Schroeder
0ca4c77acc
Only calculate glyph advances for non fixed pitch fonts
7 years ago
Benedikt Schroeder
f7aa466803
Include last line when constraint is surpassed
7 years ago