Julien Lebosquain
5e13c5b59a
Implemented layout and render time graph overlays
3 years ago
Steven Kirk
ec74057151
Removed a number of interfaces.
`IAvaloniaObject`, `IControl`, `ILayoutable`, `IPanel`, `IStyledElement`, `IVisual`.
3 years ago
Max Katz
d1683c963e
Remove MouseDevice from the TopLevel
4 years ago
Steven Kirk
b2556d62f5
Fix some layout rounding issues.
Fixes for #8092 :
- Always round sizes up, not to the nearest pixel, thereby ensuring that `DesiredSize`s don't get rounded down where possible.
- Apply rounding to `Padding` and `BorderThickness` in measure pass as well as arrange pass, to ensure that `DesiredSize` takes this rounding into account.
4 years ago
Steven Kirk
ec51318315
Make custom keyboard navigation work again.
5 years ago
Nikita Tsukanov
7c250bba7f
Added optimized Blit method for render layers
5 years ago
Steven Kirk
7694fc0484
Don't run layout passes on hidden TopLevels.
To do this we need to pass the root to `LayoutManager`.
Fixes #4161
6 years ago
Steven Kirk
1e74316f63
Add unit test for `UseLayoutRounding`.
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
Steven Kirk
ae1475ad43
Rename IStyleRoot -> ILogicalRoot.
The root of our logical tree is denoted by `IStyleRoot` for historical reasons: before #1594 , styling was defined in `Avalonia.Styling` but the logical tree was defined in `Avalonia.Controls`. The styling system needed a root but because it was lower-level than the logical tree it had to define its own root type which was then repurposed for use by the logical tree.
Since #1594 the logical tree is defined in `Avalonia.Styling` as well so we might as well call `IStyleRoot` what it is: the logical tree root.
6 years ago
Steven Kirk
0a8915b1cc
Added failing test for #3148
6 years ago
Nikita Tsukanov
fe5c1cec76
Use INameScope from IServiceProvider
7 years ago
Nikita Tsukanov
fa55755b71
Manually handle name scope registrations
7 years ago
Steven Kirk
4ec2b1c554
Use PixelPoint and PixelRect for device points/rects.
The affected members are:
- `IWindowBaseImpl.Position`
- `IWindowBaseImpl.PositionChanged`
- `ITopLevelImpl.PointToClient`
- `ITopLevelImpl.PointToScreen`
- `IMouseDevice.Position`
- `Screen.Bounds`
- `Screen.WorkingArea`
7 years ago
Steven Kirk
afdfb28da8
Added failing tests for brush invalidation.
8 years ago
Jeremy Koritzinsky
87a91e186c
Clean up usage of global ILayoutManager from after this PR was originally created.
8 years ago
Steven Kirk
e6b5df8d08
Simplified DeferredRendererTests,
8 years ago
Steven Kirk
685a509c5c
Reimplement commented-out tests.
8 years ago
Steven Kirk
84aa27162f
Made a start adding Control/Application.Resources.
9 years ago
Steven Kirk
d2eca3968b
Removed IRendererFactory.
Make the `ITopLevelImpl` create the renderer instead.
9 years ago
Steven Kirk
309c9f7a4b
Added some LayoutManager tests.
Some passing, some failing.
9 years ago
Nikita Tsukanov
eb6bfd3de8
Moved layout manager from service locator to ILayoutRoot
9 years ago
Steven Kirk
7fd1adbacd
This needs to be settable.
9 years ago
Steven Kirk
96f316eca6
Removed some small diffs from master.
9 years ago
Steven Kirk
69a06e452e
Fixed some Visuals unit tests.
Ported some stuff from `scenegraph` that was missed in #956 , which fixes
some of the failing Avalonia.Visuals.UnitTests.
9 years ago
Steven Kirk
a5f03f7a89
Don't need to pass visual brush renderer when creating render target.
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
Steven Kirk
a967c9bf82
Make DPI scaling work again.
9 years ago
Steven Kirk
6d3ca92a4c
WIP: Getting resizing working.
9 years ago
Steven Kirk
d34c279ba1
WIP: Adding render layers.
9 years ago
Steven Kirk
349ba78931
Fixed pointerover state.
And added a test for it.
9 years ago
Steven Kirk
d91d1829ac
Initial implementation of scenegraph hit testing.
Based solely on control bounds as before.
9 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
Steven Kirk
5be41985c3
Renamed Perspex -> Avalonia
10 years ago
Steven Kirk
ca301280e8
Correctly clear focus when control removed.
Focus was staying on removed element.
10 years ago
Steven Kirk
eec9a1f44a
Added shared TestRoot class.
And use it in every unit test project except SceneGraph as that one is
different.
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
a6b74db847
Merge branch 'logical-tree' into leaks
10 years ago
Steven Kirk
67835cc09b
Applied a bunch of resharper suggestions.
10 years ago
Steven Kirk
554383b61d
Added ControlLocator.
To track named controls relative to another control.
10 years ago
Steven Kirk
ad9a2324d0
Added namescope events.
10 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.
10 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
Steven Kirk
145411020b
Ran .net core code formatter.
11 years ago
Steven Kirk
6151aef188
Removed file headers.
11 years ago
Steven Kirk
d11d779414
Trying to fix capitalization of tests and docs AGAIN.
11 years ago
Steven Kirk
1a2fba4798
Revert "Fixed casing of Docs and Tests directories."
This reverts commit 845b28a2c2 .
11 years ago
Steven Kirk
845b28a2c2
Fixed casing of Docs and Tests directories.
11 years ago
Steven Kirk
aa147f0423
More stylecoping.
11 years ago