Dan Walmsley
efcca77ddb
only trigger resized event if the window is shown.
4 years ago
Dan Walmsley
8a39240eea
[osx] make bringtofront work correctly for owned and modal windows.
4 years ago
Dan Walmsley
2e555be402
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
dc1b6a669b
[osx] make bringtofront work correctly for owned and modal windows.
4 years ago
Dan Walmsley
a2d83e8fae
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
84ea185f0f
[OSX] dialogs stay ontop of main window when another app is displayed.
4 years ago
Dan Walmsley
d6a4a6c901
ensure cast to protocol instead of concrete types.
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
4892352db5
move avnview 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
Lubomir Tetak
bf61dd9a1e
macos - disable native menus completely
4 years ago
Dariusz Komosinski
628ae788e4
Fix PointToClient not working on macOS.
4 years ago
Dan Walmsley
4b5e86c72d
[OSX] reset maximised state when window is dragged.
4 years ago
Giuseppe Lippolis
9670acd709
fixes(OSX): convertBaseToScreen:' is deprecated: first deprecated in macOS 10.7
5 years ago
Mike Irving
a529ae88d5
Grammatical corrections to product names: XCode -> Xcode, .Net -> .NET, Javascript -> JavaScript, MacOS -> macOS, MacOs -> macOS
4 years ago
Dan Walmsley
54e4f13ea6
Revert "[OSX] fix resize calls before window shown."
This reverts commit 06807324d0 .
4 years ago
Dan Walmsley
0a65e0a50d
forcefully invalidate shadow.
4 years ago
Dan Walmsley
06807324d0
[OSX] fix resize calls before window shown.
4 years ago
Dan Walmsley
cce425b8da
fix red shown during resizing catalina.
4 years ago
Dan Walmsley
2220e120b2
[OSX] bring window to front when Activate() is called.
4 years ago
gabornemeth
a38c779641
fix stuck tooltips on macOS
5 years ago
Dan Walmsley
ba021f3ef8
Update native/Avalonia.Native/src/OSX/window.mm
Co-authored-by: Steven Kirk <grokys@users.noreply.github.com>
5 years ago
Steven Kirk
76beb381ae
Only raise non-client click when outside view client area.
#6700 implemented non-client click support for macOS but it caused non-client clicks to get sent even for clicks on the client area, causing #6827 . Fix this by checking that the click is outside the view's bounds before raising the non-client click.
5 years ago
Steven Kirk
bc128676c4
Make OSX a11y work again.
Pretty major refactor of that code.
5 years ago
Dan Walmsley
ec16aafe71
[OSX] allow child windows to be shown on top of fullscreen windows.
5 years ago
Dan Walmsley
563c29b165
[OSX] fix non-client click detection causing crash on popups.
5 years ago
Dan Walmsley
fbfc1e4eb0
restore osx window shadow fix.
5 years ago
Dan Walmsley
a3dc8ca85b
osx - handle restoring arrow cursor if app set non-standard cursor at edge of client area.
5 years ago
Dan Walmsley
e775ce4b0d
add missing START_COM_CALL
5 years ago
Dan Walmsley
b8059ef35f
implement non-client clicks on osx.
5 years ago
Sergey Mikolaitis
02e30f80f5
[OSX] Add Swipe, Rotate and Magnify PitchToZoom trackpad gestures as native mouse events, because they can be triggered from magic mouse AFAIK and creation of new TrackpadDevice is too big task for me now
5 years ago
Dan Walmsley
846cdb4112
correctly implement fullscreen mode so that app ca be started in fullscreen.
5 years ago
Sergey Mikolaytis
9682f014b2
[OSX] fix middle button #5784
5 years ago
Steven Kirk
24c8af1b62
Manually restore parent windows before showing child.
5 years ago
Steven Kirk
346015d804
Call WindowStateChanged when setting WindowState via code.
Fixes #6399
5 years ago
Steven Kirk
f589965b2d
OSX: Fix showing window with no specified size.
A Window without a `Width`/`Height` specified was not getting shown on OSX since 1f8b909257 . Set the content view in the constructor to fix this.
5 years ago
Steven Kirk
ba369a9059
Fix auto-scaling on win32.
- Adds a "resize reason" to platform `Resized` events
- Which is used by the auto-sizing code to determine whether to reset `SizeToContent`
- Also other improvements to the reset logic for `SizeToContent`:
- Don't reset it if the size hasn't changed
- Don't reset it if `CanResize == false`
- Only reset the dimensions whose size has changed
- Obsolete the `BeginAutoSizing`/`AutoSizing` feature in `WindowBase`
5 years ago
Dan Walmsley
b2c95a10c5
add a try finally.
5 years ago
Dan Walmsley
47006ff110
add missing COM retainer.
5 years ago
Dan Walmsley
11c2a0f5f4
restore change.
5 years ago
Dan Walmsley
a28ffc08a3
whitespace.
5 years ago
Dan Walmsley
1f8b909257
fix flicker... make nswindow handle the content resizing automatically.
5 years ago
Dan Walmsley
1a0780a7a4
prevent recursive calls during resize.
5 years ago
Dan Walmsley
2433435ac9
OSX - window state - keep field in sync.
5 years ago
Dan Walmsley
f053bfef3a
macro and add self pointer retaining to all COM calls.
5 years ago
Steven Kirk
ec85bf14e6
Call makeFirstResponder when showing window.
This is needed in order for the view to receive keyboard events immediately after showing the window.
Fixes #6202
5 years ago
Dan Walmsley
57440e9d36
retain self (this)
5 years ago
Dan Walmsley
8058a46d26
prevent osx crash when closing inside activate.
5 years ago