Giuseppe Lippolis
59f4adcdd3
fix: Warning CS0067 The event is never used
5 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
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
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
Dan Walmsley
863961551c
fix implementation of ScalingChanged property.
there were 2x implementations, 1x implicit, 1x explicit... :face-palm:
5 years ago
Nathan Randle
c686b86e38
Rename misspellings of separator.
5 years ago
Steven Kirk
89e5f3888d
Added Opening/Closed for NativeMenu on OSX.
Adds the `Opening` and `Closed` events for OSX to `NativeMenu` which relate to `menuWillOpen` and `menuDidClose`. Note that `NativeMenu` already exposed `NeedsUpdate` as `Opening`; this event has been moved to a separate `NeedsUpdate` event.
5 years ago
Dan Walmsley
8e6502f222
much simpler interface with application class and platform events.
5 years ago
Dan Walmsley
cf88222031
add implementation of url event for application class.
5 years ago
Dan Walmsley
20ddbf8dd8
OSX - add interface for file/url opened api.
5 years ago
Dan Walmsley
cf8117d9ec
change default extend chrome hint
5 years ago
Dan Walmsley
111a9c80ab
allow user to disable generation of default appmenu items on osx.
5 years ago
Dan Walmsley
e90fe543f0
add full osx implementation for custom cursors.
5 years ago
Dan Walmsley
bd159fbde7
Fix auto sizing.
5 years ago
Dan Walmsley
dc1a38695b
correctly parse native menu gesture keys on osx.
5 years ago
Dan Walmsley
5596750634
initial attempt at detecting chrome double click.
6 years ago
Dan Walmsley
a088910f31
Add OSX implementation.
6 years ago
Steven Kirk
5d4b56d042
NativeMenuItem.Clicked -> Click.
And mark `Clicked` as obsolete. For consistency with `MenuItem.Click`.
6 years ago
Nikita Tsukanov
165bc28409
[AVNCOM] Manually pass `bool` values as `int` for now
6 years ago
Dan Walmsley
be8a3e83fa
fix OSX NRE.
6 years ago
Dan Walmsley
eecc91feaa
cleaner fix.
6 years ago
Dan Walmsley
8946f4f80d
prevent NRE when popup is open and main window closes.
6 years ago
Nikita Tsukanov
08d3b9154d
Extract microcom generator stuff into a separate .targets file
6 years ago
Nikita Tsukanov
72be5e3f01
Build
6 years ago
Nikita Tsukanov
addcc6674d
Generate avalonia-native.h from avn.idl
6 years ago
Nikita Tsukanov
8de6823e5d
IT'S ALIVE
6 years ago
Nikita Tsukanov
f8d5ae59cc
Fix microcom target?
6 years ago
Nikita Tsukanov
aeb08c7ae3
Use MicroCom instead of SharpGen (NOT TESTED YET)
6 years ago
Andrey Kunchev
d1156c7f1f
remove redundant check for renderer so app can request macos native invalidate of window
6 years ago
Nikita Tsukanov
de8edba8ad
[WIP] IDL-based codegen
6 years ago