Nikita Tsukanov
8680c612fd
OSX rendering refactoring
3 years ago
Steven Kirk
037ff6d265
Don't allow window zoom when CanResize=false.
Previously, even though the zoom button was disabled the user could still double-click on the title bar to zoom the window. Prevent that by returning the appropriate value from `NSWindow windowShouldZoom` and move the `CanZoom` logic into a central place for use by this method and `UpdateStyle`.
3 years ago
Steven Kirk
d40041f02d
GetStyle => abstract CalculateStyleMask.
- Make naming more clear - it's not getting the style mask, it's calculating what it should be in order to update the mask
- Make it abstract to prevent it being called from the ctor in future
3 years ago
Steven Kirk
b609ba58a8
Disable zoom button when CanResize == false.
To do this more easily, merged `HideOrShowTrafficLights` into a virtual `UpdateStyle`. They were always called together, and really _must_ be called together; this enforces that.
3 years ago
Benedikt Stebner
decf863bc9
Initial macOS IME integration
3 years ago
Max Katz
8f11c5a6ed
macOS implementation
3 years ago
Steven Kirk
872eca05b2
Disable minimize button on owned windows again.
7eb95255c regressed disabling the minimize button on owned windows. Split what was previously `IsDialog` into two flags: `IsModal` and `IsOwned` and use `IsOwned` to control the disabled state of the minimize button.
3 years ago
Nikita Tsukanov
bb1469dbff
[OSX] Use non-opaque window background for non-transparent windows
3 years ago
Dan Walmsley
485d9b04a9
Merge pull request #8269 from AvaloniaUI/fixes/osx-setcontent-size-shadow-invalidation
Fixes/osx setcontent size shadow invalidation
4 years ago
Dan Walmsley
e2dbf68b02
fix call to virtual method from ctor.
4 years ago
Dan Walmsley
0ab383ed89
fix build warnings.
4 years ago
Dan Walmsley
b48888e9bf
[osx] easily support using nspanel from windowbaseimpl.
4 years ago
Dan Walmsley
2e555be402
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
2ea49defb6
[osx] easily support using nspanel from windowbaseimpl.
4 years ago
Dan Walmsley
a2d83e8fae
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
02b3bf253a
add OnInitialiseNSWindow to allow inheritors to hook into NSWindow/Panel setup before being shown.
4 years ago
Dan Walmsley
aa06e02c6d
arrange fields nicely.
4 years ago
Dan Walmsley
060ec9694b
Merge pull request #8165 from AvaloniaUI/fixes/position-osx
Fix more OSX regressions
4 years ago
Dan Walmsley
3faebf205a
[OSX] ensure window state is obeyed.
4 years ago
Dan Walmsley
b9bbd6ff0f
Revert "remove redundant api GetFrameSize."
This reverts commit 05e6c9cfd9 .
4 years ago
Dan Walmsley
05e6c9cfd9
remove redundant api GetFrameSize.
4 years ago
Dan Walmsley
3600639d39
re-create NSWindow if we call show and need to swap out for a dialog.
4 years ago
Dan Walmsley
d6a4a6c901
ensure cast to protocol instead of concrete types.
4 years ago
Dan Walmsley
1cca34f56e
actually create nspanels for dialogs.
4 years ago
Dan Walmsley
f008e403cf
make it compile 2 versions is AvnWindow (NSWindow / NSPanel version)
fix include mess, and pragma once.
4 years ago
Dan Walmsley
cd9be07ced
ensure menu gets applied.
4 years ago
Dan Walmsley
8be332ab1d
make AvnWindowProtocol
4 years ago
Dan Walmsley
e76887fe25
INSWindowHolder uses NSView and NSWindow types.
4 years ago
Dan Walmsley
4cba4519f3
only create the NSWindow when show is called. Cache sizes until needed.
4 years ago
Dan Walmsley
f19639684d
move AutoFitContentView to its own file.
4 years ago
Dan Walmsley
68b4173743
remove unused window code.
4 years ago
Dan Walmsley
e2b76313b7
further seperate out files.
4 years ago
Dan Walmsley
2cf78ac11c
move IWindowBaseImpl to its own file.
4 years ago