Steven Kirk
8c12a51902
Merge branch 'master' into port-drawingcontext-changes-from-scenegraph
10 years ago
Steven Kirk
2b87e22db4
Use the dirty rect from BeginPaint on WM_PAINT.
The one returned by `GetUpdateRect` at this point will be empty, from
the win32 docs:
> BeginPaint automatically validates the update region, so any call to
GetUpdateRect made immediately after the call to BeginPaint retrieves an
empty update region.
10 years ago
Steven Kirk
64e8896144
Added Rect.Union empty tests.
10 years ago
Steven Kirk
5546ed043f
Added Rect.Union.
10 years ago
Steven Kirk
6cc829a132
Renamed Rect.CenterIn -> CenterRect.
The previous naming suggested that the `Rect` that the method was being
called on was the one being centered.
10 years ago
Steven Kirk
4e7b743ecd
Ported changes to DrawingContext from scenegraph
Ported changes to `DrawingContext` and `DrawingContextImpl` from the
`scenegraph` branch.
10 years ago
Steven Kirk
3d8a258db3
Merge pull request #911 from AvaloniaUI/remove-rect-multiply
Remove Rect.operator*
10 years ago
Steven Kirk
c6b3440e70
Remove Rect.operator*
It was wrong - use Rect.TransformToAABB instead.
10 years ago
Steven Kirk
910d17a32a
Removed unused code.
10 years ago
Steven Kirk
e0ef467ea5
Merge remote-tracking branch 'origin/master' into scenegraph
Conflicts:
src/Avalonia.Visuals/Media/GradientBrush.cs
src/Avalonia.Visuals/Media/IGradientBrush.cs
src/Avalonia.Visuals/Media/IRadialGradientBrush.cs
src/Avalonia.Visuals/Media/ImageBrush.cs
src/Avalonia.Visuals/Media/LinearGradientBrush.cs
src/Avalonia.Visuals/Media/RadialGradientBrush.cs
src/Avalonia.Visuals/Media/VisualBrush.cs
src/Gtk/Avalonia.Cairo/Media/DrawingContext.cs
src/Gtk/Avalonia.Cairo/Media/ImageBrushImpl.cs
src/Gtk/Avalonia.Cairo/Media/LinearGradientBrushImpl.cs
src/Gtk/Avalonia.Cairo/Media/RadialGradientBrushImpl.cs
src/Gtk/Avalonia.Cairo/Media/TileBrushes.cs
src/Gtk/Avalonia.Cairo/Media/VisualBrushImpl.cs
src/Skia/Avalonia.Skia/DrawingContextImpl.cs
src/Windows/Avalonia.Direct2D1/Media/DrawingContextImpl.cs
src/Windows/Avalonia.Direct2D1/Media/LinearGradientBrushImpl.cs
src/Windows/Avalonia.Direct2D1/Media/RadialGradientBrushImpl.cs
src/Windows/Avalonia.Direct2D1/Media/TileBrushImpl.cs
10 years ago
Steven Kirk
596722a08f
Merge pull request #910 from AvaloniaUI/brush-interfaces
Add interfaces for all brush types.
10 years ago
Steven Kirk
a5f03f7a89
Don't need to pass visual brush renderer when creating render target.
10 years ago
Steven Kirk
74a0faa637
Use brush interfaces in rendering backends.
10 years ago
Steven Kirk
f6dee9eab4
Add interfaces for all brush types.
Also:
- Change `GradientBrush.GradientStops` to be a readonly list, as changes
to it would have been ignored anyway.
- Fix typo in ImageBrush filename.
10 years ago
Steven Kirk
a46be4e200
Ensure correct thread for AvaloniaProperty access.
Previously we ensured that `AvaloniaObject.SetValue` was run on the main
thread. This makes sure that `GetValue`, `IsSet` and `ClearValue` are
also run on the main thread. Unit testing this turned out to be more
complicated than expected, because `Dispatcher` keeps a hold of a
reference to the first `IPlatformThreadingInterface` it sees, so made
`UnitTestApplication` able to notify `Dispatcher` that it should update
its services.
10 years ago
Steven Kirk
39c25fd123
Allow selection of ImmediateRendering on Win32.
10 years ago
Steven Kirk
faf150c6d7
Make windowing subsystem select the renderer.
Direct2D selects `DeferredRenderer`, the GTK backends select
`ImmediateRenderer` for now.
10 years ago
Steven Kirk
289fa47304
Reworked immediate renderer.
It now doesn't use the render loop, but instead invalidates the window
and reacts to paint events.
10 years ago
Steven Kirk
2813144820
Added doc comments for ImmediateRenderer.
10 years ago
Steven Kirk
371db68c65
Merge branch 'master' into scenegraph
Conflicts:
samples/RenderTest/MainWindow.xaml.cs
10 years ago
Steven Kirk
b953d3f9ed
Merge pull request #906 from AvaloniaUI/issue/905-event-getobservable
Added GetObservable for routed events.
10 years ago
Steven Kirk
5b6e74caae
Merge branch 'master' into issue/905-event-getobservable
10 years ago
Steven Kirk
6ad65bd434
Merge pull request #908 from AvaloniaUI/port-rendertest
Ported RenderTest from scenegraph branch
10 years ago
Steven Kirk
4a58a55565
Merge branch 'master' into issue/905-event-getobservable
10 years ago
Steven Kirk
5556e61692
Merge branch 'master' into port-rendertest
10 years ago
Steven Kirk
b16e5b9c54
Removed D2D reference from RenderTest.
Was making build fail on non-Windows
10 years ago
Steven Kirk
0a1d5caa84
Merge pull request #907 from AvaloniaUI/update-ncrunch
Moved ncrunch files to their own dir.
10 years ago
Steven Kirk
8099317f88
Ported RenderTest from scenegraph branch.
10 years ago
Steven Kirk
71c6c572ac
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
10 years ago
Steven Kirk
6036bd5998
Moved ncrunch files to their own dir.
Also deleted v2 ncrunch files and update .gitignore.
10 years ago
Steven Kirk
daae9c0181
Forgot to save before last commit.
10 years ago
Steven Kirk
9029513b9d
Merge branch 'master' into scenegraph
Conflicts:
src/Windows/Avalonia.Direct2D1/Media/Imaging/WicBitmapImpl.cs
tests/Avalonia.RenderTests/Avalonia.RenderTests.projitems
tests/Avalonia.Visuals.UnitTests/VisualTree/MockRenderInterface.cs
10 years ago
Steven Kirk
4ca0bb72b2
Added GetObservable for routed events.
Fixes #905 .
10 years ago
Steven Kirk
071ec135c3
Added missing member to interface.
10 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.
10 years ago
Steven Kirk
226fc6bf0c
Tweak DeferredRenderer locking.
10 years ago
Steven Kirk
ad73e7f8e8
Send paint and resize notifications to renderer.
10 years ago
Steven Kirk
2b1d4e555e
Fix failing test.
10 years ago
Nikita Tsukanov
e3d24cf11a
Merge pull request #903 from kekekeks/bitmaps
Implemented WritableBitmap and bitmap creation by copying from in-memory data
10 years ago
donandren
ce387271cc
add test parameters to styled/direct binding tests for #855 and #824
10 years ago
donandren
8f3ce463f0
Slider (RangeBase) test for #824 with Binding which behind scenes is using weakobservable
10 years ago
donandren
ef81c55960
another simple unit tests for issue #855 for direct and styled properties
10 years ago
donandren
3729b9797f
another failing test for issue #855 and #824
10 years ago
donandren
220a987467
issue #855 unit test
10 years ago
Steven Kirk
418effebc1
Merge branch 'master' into scenegraph
Conflicts:
src/Gtk/Avalonia.Gtk/TopLevelImpl.cs
tests/Avalonia.Controls.UnitTests/TopLevelTests.cs
10 years ago
Nikita Tsukanov
131fa44fa1
Fixed namespaces
10 years ago
Nikita Tsukanov
67a82d0462
Reverted WIC default pixel format
10 years ago
Nikita Tsukanov
90a4915549
Implemented WritableBitmap
10 years ago
Nikita Tsukanov
7013033a1b
Added `Bitmap(PixelFormat format, IntPtr data, int width, int height, int stride)` constructor
10 years ago
Nikita Tsukanov
008cec2e15
Merge pull request #899 from kekekeks/toplevels
Refactored out WindowBase from TopLevel
10 years ago