Steven Kirk
1b9d61416f
Ported ImmediateRenderer from scenegraph branch.
9 years ago
Steven Kirk
4e719262c4
Make WindowBase.IsVisible return correct value.
`WindowBase.IsVisible` now tracks the visibility of the window. Still
needs to call `Show` and `Hide` when changed.
9 years ago
Steven Kirk
a5f03f7a89
Don't need to pass visual brush renderer when creating render target.
9 years ago
Steven Kirk
ad73e7f8e8
Send paint and resize notifications to renderer.
9 years ago
Nikita Tsukanov
026c943055
Fixed tests
9 years ago
Nikita Tsukanov
f21212e76a
Refactored out WindowBase from TopLevel
9 years ago
Nikita Tsukanov
c93a6235aa
Make sure that Renderer is disposed when TopLevel is closed
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
Nikita Tsukanov
374d600275
Added support for multiple drawing methods for window implementations. Added framebuffer support
9 years ago
Steven Kirk
b5e93b67fe
Make Window.IsVisible track window visibility.
10 years ago
Steven Kirk
a967c9bf82
Make DPI scaling work again.
10 years ago
Steven Kirk
2f693acaf0
Add IRendererFactory.
I don't like to add factories, but it's better than the previous
`Attach` way of doing things; it's necessary because it's not possible
to pass constuctor parameters using `AvaloniaLocator`.
10 years ago
Steven Kirk
e54ac6b5bf
Fixed name of method.
It's creating a render target, not a renderer.
10 years ago
Steven Kirk
1b32a6aac3
Fixed unused member warnings.
That only show up on mono: seems the standard C# compiler silently
ignores most of these.
10 years ago
Steven Kirk
6afa000c42
Added a render loop.
Rather than repainting whenever, this adds a render loop which is called
N times per second. IRenderQueueManager and ITopLevelRenderer have been
removed, replaced by IRenderer.
10 years ago
OronDF343
1071dc079c
Renamed PositionChangedEventArgs to PointEventArgs
10 years ago
OronDF343
5e0243cfba
Added PositionChanged event in TopLevel
Implements #629
10 years ago
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
015054a8fd
Added a pre-process hook to InputManager,
And some documentation.
10 years ago
Steven Kirk
b483ad929a
Prevent spurious warning.
10 years ago
Steven Kirk
ea6b1d4cfd
Starting removing hard dependency on Serilog.
Instead log through a static Logger, and provide a Serilog consumer for
this.
10 years ago
Jeremy Koritzinsky
eea178500a
Added test and fixed implementation.
10 years ago
Jeremy Koritzinsky
bbe460c18f
Added interface and implementation for application exiting. Will automatically close all windows when called.
10 years ago
Steven Kirk
3fde7f979c
Added VisualExtensions.PointToClient.
In addition moved PointToScreen to VisualExtensions, and renamed
IRenderRoot.TranslatePointToScreen to IRenderRoot.PointToScreen.
10 years ago
Steven Kirk
e55ecb9960
Listen for DPI changes and update layout.
10 years ago
Steven Kirk
93b4d810b9
Moved scaling to per-window.
Always returning a scaling factor of 1 currently.
10 years ago
Steven Kirk
5489487131
Make LayoutManager global.
Also made a few other changes along the way:
- Add MaxClientSize to ILayoutRoot
- Store IRenderRoot in Visual and use that to calculate
IsAttachedToVisualTree
- Make Affects* methods take multiple properties
10 years ago
Steven Kirk
1202eaa876
Updated PerspexProperties to new classes
i.e. AttachedProperty, DirectProperty or StyledProperty.
10 years ago
Steven Kirk
30a756fb83
Refactored binding somewhat.
- Simplified PerpsexObject interface to a simplified single interface,
IPerspexObject
- Moved GetObservable etc to extension method
10 years ago
Steven Kirk
a6b74db847
Merge branch 'logical-tree' into leaks
11 years ago
Nikita Tsukanov
84af63ce1e
Added Position property, moved Hide/Show to ITopLevelImpl
11 years ago
Nikita Tsukanov
ec2a319049
Implemented BeginResizeDrag
11 years ago
Nikita Tsukanov
0b0875970c
Added TopLevel::BeginMoveDrag()
11 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
11 years ago
Steven Kirk
16c2242757
Implemented NameScopes
Some tests still failing as controls are only registered with name scope
when attached to a rooted visual tree. Need to work around this by
explicitly registering controls when applying template.
11 years ago
Steven Kirk
663e760fda
Throw exception if TopLevel added as child.
Closes #262 .
11 years ago
Nikita Tsukanov
17f90128c9
Method renaming
11 years ago
Nikita Tsukanov
21f977ac9d
Replaced InvokeAsync with Invoke and InvokeTask to avoid exception swallowing and misunderstanding
11 years ago
Nikita Tsukanov
aba953a218
TopLevel don't use render target anymore
11 years ago
Nikita Tsukanov
f4f3d572a6
Renamed IRenderingViewport to IRenderTarget
11 years ago
Nikita Tsukanov
c8e617231c
Moved render-related code from TopLevel to a separate class
(needed for wm stuff)
11 years ago
Nikita Tsukanov
7529ab6536
Replaced ITopLevelImpl.SetOwnder by SetInputRoot
11 years ago
Steven Kirk
f38aa15886
More direct PPs.
11 years ago
Nikita Tsukanov
f50a2c361c
Reverted Dispatcher.UIThread and added SingleThreadDispatcher
11 years ago
Nikita Tsukanov
d7f3778de6
New main loop system
11 years ago
Nikita Tsukanov
323c1a49c1
Removed core dependency on Splat
11 years ago
Nikita Tsukanov
3cd3579475
"field can be readonly"
11 years ago
Nikita Tsukanov
21a3554260
Change property getter to expression properties
11 years ago
Nikita Tsukanov
01e2c90bc5
Removed this.
11 years ago
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago