Dan Walmsley
874480d77f
allow setting the window title to null on osx.
4 years ago
Max Katz
7a58a27fd9
Remove DesktopRuntime project and move AppBuilder to PlatformSupport project
4 years ago
Max Katz
4f2a4f785a
Add CallbackBase impl
4 years ago
Dan Walmsley
aae3b70180
fix build.
4 years ago
Dan Walmsley
2a4a1b28b1
add conditional force shutdown.
4 years ago
Dan Walmsley
15def96af4
fix quit menu item osx.
4 years ago
Dan Walmsley
74adcfd17b
[OSX] AvaloniaNativeMenuExporter, populates the users menu with the standard OSX items.
4 years ago
odalet
c73a6c86c0
Fixes #7309 - Each time we retrieve a null *PlatformOptions from AvaloniaLocator, return a default instance
4 years ago
Dan Walmsley
32bf6160df
use IControlledApplicationLifetime
4 years ago
Sergey Mikolaitis
c2d627360c
[MacOS] fix quit menu item copy paste mistake
4 years ago
Steven Kirk
509b9d8f09
Add additional null checks to WindowBaseImpl.
Fixes #7231 .
4 years ago
Takoooooo
21cc80932a
use IPlatformSettings instead of creating a separate interface.
4 years ago
Takoooooo
bf731fdcfc
add comments
4 years ago
Takoooooo
00a286f0e8
Add separate platform settings for touch.
4 years ago
Nikita Tsukanov
494cb01105
Updated microcom
4 years ago
Nikita Tsukanov
1ed495afe2
Use microcom generator from nuget
4 years ago
Giuseppe Lippolis
2ac4eafdcf
fixes: WarningsAsErrors in Visual Studio
4 years ago
Jumar Macato
18115363f8
Update src/Avalonia.Native/AvaloniaNativePlatformExtensions.cs
Co-authored-by: Max Katz <maxkatz6@outlook.com>
4 years ago
Dan Walmsley
048cf388bc
allow disabling of osx menu export.
4 years ago
Sergey Mikolaytis
8578160fbc
[OSX] Refactor Native App Menu. Move default menu initialization code from ObjC to C#. ( #6909 )
* [NativeMenu] [Refactoring] Move Default Menu creation from native lib to C# (C# side of code)
* fix return type for IAvnApplicationCommands
* [Native] menu refactoring (ObjC side)
* fix nullref
* minor refactor
Co-authored-by: Jumar Macato <16554748+jmacato@users.noreply.github.com>
Co-authored-by: Dan Walmsley <dan@walms.co.uk>
4 years ago
Steven Kirk
691f93a1ed
Multi-target net6.0.
4 years ago
Steven Kirk
5534e66bcd
Implement isAccessibilitySelected.
4 years ago
Steven Kirk
bc128676c4
Make OSX a11y work again.
Pretty major refactor of that code.
4 years ago
Giuseppe Lippolis
59f4adcdd3
fix: Warning CS0067 The event is never used
4 years ago
Takoooooo
afd7203087
fix formatting
5 years ago
Dan Walmsley
89f7742909
more review fixes.
5 years ago
Dan Walmsley
ca5d78d507
fix warnings and use readonly fields.
5 years ago
Dan Walmsley
daddc71372
remove trayicon events from osx.
5 years ago
Steven Kirk
11c60b4294
Decouple automation peers from platform nodes.
Now peers are entirely unaware of the platform implementation.
5 years ago
Dan Walmsley
a3c8396cf5
Tray icon osx, implement visibility toggle and lifetime management.
5 years ago
Dan Walmsley
abf4242280
support trayicon clicked on osx.
5 years ago
Dan Walmsley
0e703c9209
Add trayicon menu export support for osx.
5 years ago
Dan Walmsley
6ae59214a4
add initial implementation for osx tray icon support.
5 years ago
Sergey Mikolaitis
33c22a952f
[OSX] Add PointerMagnifyGesture, PointerRotateGesture, PointerSwipeGesture events
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
3438ac149b
initial implementation of tray icon.
5 years ago
Takoooooo
f283921e28
fix
5 years ago
Takoooooo
3dd91adc27
add comments
5 years ago
Dan Walmsley
0ddc444d2c
Rename eventargs class.
5 years ago
Dan Walmsley
c9458e5be8
use a ShutdownRequestedEventArgs class to future proof the event args.
5 years ago
mat1jaczyyy
9b0287bfd6
Fix existing and add missing osx-specific key shortcuts
5 years ago
dvdsvdv vrfsv
ea269261a7
match OSX behavior with Win behavior
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
Miha Markič
97c33f432a
Applies spell checking on mostly comments, but also non public members and arguments
5 years ago
Steven Kirk
32c0eac415
Prevent dialog parent from becoming key window.
5 years ago
Steven Kirk
cd51d638e9
Pass dialog flag to window impl Show.
Not doing anything with it yet.
5 years ago
Steven Kirk
b71743e9a8
Handle applicationShouldTerminate on OSX.
Added some new plumbing to facilitate this:
- A managed event is raised `IPlatformLifetimeEventsImpl.ShutdownRequested`
- This event is subscribed from `ClassicDesktopStyleApplicationLifetime`
- Which tries to close all windows
- And returns false to cancel the OS-level close if not all windows could be closed
5 years ago
Nathan Garside
bccbf0570c
Make FrameSize nullable
5 years ago
Nathan Garside
d77d1fd5da
Rename to FrameSize
5 years ago
Nathan Garside
9feb2376a0
Squash toplevel-totalsize
5 years ago