From cfe2424f4d9d13fc1c08148ca84604a092798f28 Mon Sep 17 00:00:00 2001 From: Travis McLane Date: Sun, 30 Jun 2024 16:11:45 -0500 Subject: [PATCH] WindowDidMove / WindowDidResize events for Linux and Windows * [linux] emit system specific event for theme change Code was incorrectly emitting the `events.Common.ThemeChanged` event instead of the OS Specific `events.Linux.SystemThemeChanged` event. It is the reponsibility of the code in events_common_linux.go to map it to the common variety. * [linux] implement WindowDidMove * [linux] implement debounce for WindowDidMove * [example] listen for events.Common.WindowDidMove * [windows] move WindowDidMove mapper outside of DnD guard * WindowDidResize implementation * windows: WindowDidResize * chore: changelog update * events.Common.WindowDidMove and events.Common.WindowDidResize --- mkdocs-website/docs/en/changelog.md | 2 + v3/examples/window/main.go | 19 +- .../@wailsio/runtime/src/event_types.js | 4 + .../@wailsio/runtime/types/event_types.d.ts | 4 + v3/pkg/application/application_linux.go | 2 +- v3/pkg/application/linux_cgo.go | 31 + v3/pkg/application/webview_window_darwin.go | 3 + v3/pkg/application/webview_window_linux.go | 23 + v3/pkg/application/webview_window_windows.go | 16 +- v3/pkg/events/events.go | 1059 +++++++++-------- v3/pkg/events/events.txt | 4 + v3/pkg/events/events_darwin.h | 250 ++-- v3/pkg/events/events_linux.h | 10 +- 13 files changed, 768 insertions(+), 659 deletions(-) diff --git a/mkdocs-website/docs/en/changelog.md b/mkdocs-website/docs/en/changelog.md index 3eae5829e..82b274546 100644 --- a/mkdocs-website/docs/en/changelog.md +++ b/mkdocs-website/docs/en/changelog.md @@ -18,6 +18,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ### Added +- [linux] WindowDidMove / WindowDidResize events in [#3580](https://github.com/wailsapp/wails/pull/3580) +- [windows] WindowDidResize event in (https://github.com/wailsapp/wails/pull/3580) - [darwin] add Event ApplicationShouldHandleReopen to be able to handle dock icon click by @5aaee9 in [#2991](https://github.com/wailsapp/wails/pull/2991) - [darwin] add getPrimaryScreen/getScreens to impl by @tmclane in [#2618](https://github.com/wailsapp/wails/pull/2618) - [darwin] add option for showing the toolbar in fullscreen mode on macOS by [@fbbdev](https://github.com/fbbdev) in [#3282](https://github.com/wailsapp/wails/pull/3282) diff --git a/v3/examples/window/main.go b/v3/examples/window/main.go index eb9877560..8be709f37 100644 --- a/v3/examples/window/main.go +++ b/v3/examples/window/main.go @@ -164,13 +164,30 @@ func main() { SetRelativePosition(rand.Intn(1000), rand.Intn(800)). SetURL("https://wails.io"). Show() - w.On(events.Windows.WindowDidMove, func(event *application.WindowEvent) { + w.On(events.Common.WindowDidMove, func(event *application.WindowEvent) { x, y := w.AbsolutePosition() fmt.Printf("WindowDidMove event triggered. New position: (%d, %d)\n", x, y) }) windowCounter++ }) + myMenu.Add("New WebviewWindow (Listen to Resize)"). + OnClick(func(ctx *application.Context) { + w := app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{ + Windows: application.WindowsWindow{ + DisableMenu: true, + }, + }). + SetTitle("WebviewWindow "+strconv.Itoa(windowCounter)). + SetRelativePosition(rand.Intn(1000), rand.Intn(800)). + SetURL("https://wails.io"). + Show() + w.On(events.Common.WindowDidResize, func(event *application.WindowEvent) { + width, height := w.Size() + fmt.Printf("WindowDidResize event triggered. New size: (%d, %d)\n", width, height) + }) + windowCounter++ + }) myMenu.Add("New WebviewWindow (Hides on Close one time)"). SetAccelerator("CmdOrCtrl+H"). OnClick(func(ctx *application.Context) { diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.js b/v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.js index 6adcc3086..3314a9065 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.js +++ b/v3/internal/runtime/desktop/@wailsio/runtime/src/event_types.js @@ -27,6 +27,7 @@ export const EventTypes = { WindowDragLeave: "windows:WindowDragLeave", WindowDragOver: "windows:WindowDragOver", WindowDidMove: "windows:WindowDidMove", + WindowDidResize: "windows:WindowDidResize", }, Mac: { ApplicationDidBecomeActive: "mac:ApplicationDidBecomeActive", @@ -158,6 +159,8 @@ export const EventTypes = { SystemThemeChanged: "linux:SystemThemeChanged", WindowLoadChanged: "linux:WindowLoadChanged", WindowDeleteEvent: "linux:WindowDeleteEvent", + WindowDidMove: "linux:WindowDidMove", + WindowDidResize: "linux:WindowDidResize", WindowFocusIn: "linux:WindowFocusIn", WindowFocusOut: "linux:WindowFocusOut", ApplicationStartup: "linux:ApplicationStartup", @@ -185,5 +188,6 @@ export const EventTypes = { WindowRuntimeReady: "common:WindowRuntimeReady", ThemeChanged: "common:ThemeChanged", WindowDidMove: "common:WindowDidMove", + WindowDidResize: "common:WindowDidResize", }, }; diff --git a/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts b/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts index 06c8dfa75..88636d165 100644 --- a/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts +++ b/v3/internal/runtime/desktop/@wailsio/runtime/types/event_types.d.ts @@ -27,6 +27,7 @@ export declare const EventTypes: { WindowDragLeave: string, WindowDragOver: string, WindowDidMove: string, + WindowDidResize: string, }, Mac: { ApplicationDidBecomeActive: string, @@ -158,6 +159,8 @@ export declare const EventTypes: { SystemThemeChanged: string, WindowLoadChanged: string, WindowDeleteEvent: string, + WindowDidMove: string, + WindowDidResize: string, WindowFocusIn: string, WindowFocusOut: string, ApplicationStartup: string, @@ -185,5 +188,6 @@ export declare const EventTypes: { WindowRuntimeReady: string, ThemeChanged: string, WindowDidMove: string, + WindowDidResize: string, }, }; diff --git a/v3/pkg/application/application_linux.go b/v3/pkg/application/application_linux.go index 064b6e00c..6ec755886 100644 --- a/v3/pkg/application/application_linux.go +++ b/v3/pkg/application/application_linux.go @@ -173,7 +173,7 @@ func (a *linuxApp) monitorThemeChanges() { if theme != a.theme { a.theme = theme - event := newApplicationEvent(events.Common.ThemeChanged) + event := newApplicationEvent(events.Linux.SystemThemeChanged) event.Context().setIsDarkMode(a.isDarkMode()) applicationEvents <- event } diff --git a/v3/pkg/application/linux_cgo.go b/v3/pkg/application/linux_cgo.go index a820cb1df..0ebad4d17 100644 --- a/v3/pkg/application/linux_cgo.go +++ b/v3/pkg/application/linux_cgo.go @@ -59,6 +59,7 @@ typedef struct WindowEvent { // exported below void activateLinux(gpointer data); extern void emit(WindowEvent* data); +extern gboolean handleConfigureEvent(GtkWidget*, GdkEventConfigure*, uintptr_t); extern gboolean handleDeleteEvent(GtkWidget*, GdkEvent*, uintptr_t); extern gboolean handleFocusEvent(GtkWidget*, GdkEvent*, uintptr_t); extern void handleLoadChanged(WebKitWebView*, WebKitLoadEvent, uintptr_t); @@ -1198,6 +1199,35 @@ func emit(we *C.WindowEvent) { } } +//export handleConfigureEvent +func handleConfigureEvent(widget *C.GtkWidget, event *C.GdkEventConfigure, data C.uintptr_t) C.gboolean { + window := globalApplication.getWindowForID(uint(data)) + if window != nil { + lw, ok := window.(*WebviewWindow).impl.(*linuxWebviewWindow) + if !ok { + return C.gboolean(1) + } + if lw.lastX != int(event.x) || lw.lastY != int(event.y) { + lw.moveDebouncer(func() { + processWindowEvent(C.uint(data), C.uint(events.Linux.WindowDidMove)) + }) + } + + if lw.lastWidth != int(event.width) || lw.lastHeight != int(event.height) { + lw.resizeDebouncer(func() { + processWindowEvent(C.uint(data), C.uint(events.Linux.WindowDidResize)) + }) + } + + lw.lastX = int(event.x) + lw.lastY = int(event.y) + lw.lastWidth = int(event.width) + lw.lastHeight = int(event.height) + } + + return C.gboolean(1) +} + //export handleDeleteEvent func handleDeleteEvent(widget *C.GtkWidget, event *C.GdkEvent, data C.uintptr_t) C.gboolean { processWindowEvent(C.uint(data), C.uint(events.Linux.WindowDeleteEvent)) @@ -1237,6 +1267,7 @@ func (w *linuxWebviewWindow) setupSignalHandlers(emit func(e events.WindowEventT C.signal_connect(unsafe.Pointer(w.window), c.String("delete-event"), C.handleDeleteEvent, winID) C.signal_connect(unsafe.Pointer(w.window), c.String("focus-out-event"), C.handleFocusEvent, winID) C.signal_connect(wv, c.String("load-changed"), C.handleLoadChanged, winID) + C.signal_connect(unsafe.Pointer(w.window), c.String("configure-event"), C.handleConfigureEvent, winID) contentManager := C.webkit_web_view_get_user_content_manager(w.webKitWebView()) C.signal_connect(unsafe.Pointer(contentManager), c.String("script-message-received::external"), C.sendMessageToBackend, nil) diff --git a/v3/pkg/application/webview_window_darwin.go b/v3/pkg/application/webview_window_darwin.go index 7163c31ff..985176011 100644 --- a/v3/pkg/application/webview_window_darwin.go +++ b/v3/pkg/application/webview_window_darwin.go @@ -1236,6 +1236,9 @@ func (w *macosWebviewWindow) run() { w.parent.On(events.Mac.WindowDidResignMain, func(_ *WindowEvent) { w.parent.emit(events.Common.WindowLostFocus) }) + w.parent.On(events.Mac.WindowDidResize, func(_ *WindowEvent) { + w.parent.emit(events.Common.WindowDidResize) + }) if options.HTML != "" { w.setHTML(options.HTML) diff --git a/v3/pkg/application/webview_window_linux.go b/v3/pkg/application/webview_window_linux.go index 7d34babbd..cfef13379 100644 --- a/v3/pkg/application/webview_window_linux.go +++ b/v3/pkg/application/webview_window_linux.go @@ -5,13 +5,19 @@ package application import "C" import ( "fmt" + "time" + "github.com/bep/debounce" "github.com/wailsapp/wails/v3/internal/assetserver" "github.com/wailsapp/wails/v3/internal/capabilities" "github.com/wailsapp/wails/v3/internal/runtime" "github.com/wailsapp/wails/v3/pkg/events" ) +const ( + windowDidMoveDebounceMS = 200 +) + type dragInfo struct { XRoot int YRoot int @@ -35,6 +41,9 @@ type linuxWebviewWindow struct { lastX, lastY int gtkmenu pointer ctxMenuOpened bool + + moveDebouncer func(func()) + resizeDebouncer func(func()) } var ( @@ -200,6 +209,13 @@ func (w *linuxWebviewWindow) run() { w.on(eventId) } + if w.moveDebouncer == nil { + w.moveDebouncer = debounce.New(time.Duration(windowDidMoveDebounceMS) * time.Millisecond) + } + if w.resizeDebouncer == nil { + w.resizeDebouncer = debounce.New(time.Duration(windowDidMoveDebounceMS) * time.Millisecond) + } + // Register the capabilities globalApplication.capabilities = capabilities.NewCapabilities() @@ -292,6 +308,13 @@ func (w *linuxWebviewWindow) run() { w.parent.On(events.Linux.WindowDeleteEvent, func(e *WindowEvent) { w.parent.emit(events.Common.WindowClosing) }) + w.parent.On(events.Linux.WindowDidMove, func(e *WindowEvent) { + w.parent.emit(events.Common.WindowDidMove) + }) + w.parent.On(events.Linux.WindowDidResize, func(e *WindowEvent) { + w.parent.emit(events.Common.WindowDidResize) + }) + w.parent.RegisterHook(events.Linux.WindowLoadChanged, func(e *WindowEvent) { w.execJS(runtime.Core()) }) diff --git a/v3/pkg/application/webview_window_windows.go b/v3/pkg/application/webview_window_windows.go index f2de1731c..6d4eab815 100644 --- a/v3/pkg/application/webview_window_windows.go +++ b/v3/pkg/application/webview_window_windows.go @@ -5,8 +5,6 @@ package application import ( "errors" "fmt" - "github.com/wailsapp/wails/v3/internal/assetserver" - "github.com/wailsapp/wails/v3/internal/runtime" "net/url" "strconv" "strings" @@ -18,8 +16,10 @@ import ( "github.com/bep/debounce" "github.com/wailsapp/go-webview2/webviewloader" + "github.com/wailsapp/wails/v3/internal/assetserver" "github.com/wailsapp/wails/v3/internal/assetserver/webview" "github.com/wailsapp/wails/v3/internal/capabilities" + "github.com/wailsapp/wails/v3/internal/runtime" "github.com/samber/lo" @@ -1024,6 +1024,7 @@ func (w *windowsWebviewWindow) WndProc(msg uint32, wparam, lparam uintptr) uintp InvokeSync(func() { w.chromium.Resize() }) + w.parent.emit(events.Windows.WindowDidResize) }) } else { w.chromium.Resize() @@ -1418,9 +1419,6 @@ func (w *windowsWebviewWindow) setupChromium() { w.dropTarget.OnOver = func() { w.parent.emit(events.Windows.WindowDragOver) } - w.parent.On(events.Windows.WindowDidMove, func(e *WindowEvent) { - w.parent.emit(events.Common.WindowDidMove) - }) // Enumerate all the child windows for this window and register them as drop targets w32.EnumChildWindows(w.hwnd, func(hwnd w32.HWND, lparam w32.LPARAM) w32.LRESULT { // Check if the window class is "Chrome_RenderWidgetHostHWND" @@ -1438,6 +1436,14 @@ func (w *windowsWebviewWindow) setupChromium() { } + // event mapping + w.parent.On(events.Windows.WindowDidMove, func(e *WindowEvent) { + w.parent.emit(events.Common.WindowDidMove) + }) + w.parent.On(events.Windows.WindowDidResize, func(e *WindowEvent) { + w.parent.emit(events.Common.WindowDidResize) + }) + // We will get round to this //if chromium.HasCapability(edge.AllowExternalDrop) { // err := chromium.AllowExternalDrag(w.parent.options.EnableDragAndDrop) diff --git a/v3/pkg/events/events.go b/v3/pkg/events/events.go index dbf6c4c3f..3ef015872 100644 --- a/v3/pkg/events/events.go +++ b/v3/pkg/events/events.go @@ -1,59 +1,61 @@ package events type ApplicationEventType uint -type WindowEventType uint +type WindowEventType uint var Common = newCommonEvents() type commonEvents struct { ApplicationStarted ApplicationEventType - WindowMaximise WindowEventType - WindowUnMaximise WindowEventType - WindowFullscreen WindowEventType + WindowMaximise WindowEventType + WindowUnMaximise WindowEventType + WindowFullscreen WindowEventType WindowUnFullscreen WindowEventType - WindowRestore WindowEventType - WindowMinimise WindowEventType - WindowUnMinimise WindowEventType - WindowClosing WindowEventType - WindowZoom WindowEventType - WindowZoomIn WindowEventType - WindowZoomOut WindowEventType - WindowZoomReset WindowEventType - WindowFocus WindowEventType - WindowLostFocus WindowEventType - WindowShow WindowEventType - WindowHide WindowEventType - WindowDPIChanged WindowEventType + WindowRestore WindowEventType + WindowMinimise WindowEventType + WindowUnMinimise WindowEventType + WindowClosing WindowEventType + WindowZoom WindowEventType + WindowZoomIn WindowEventType + WindowZoomOut WindowEventType + WindowZoomReset WindowEventType + WindowFocus WindowEventType + WindowLostFocus WindowEventType + WindowShow WindowEventType + WindowHide WindowEventType + WindowDPIChanged WindowEventType WindowFilesDropped WindowEventType WindowRuntimeReady WindowEventType - ThemeChanged ApplicationEventType - WindowDidMove WindowEventType + ThemeChanged ApplicationEventType + WindowDidMove WindowEventType + WindowDidResize WindowEventType } func newCommonEvents() commonEvents { return commonEvents{ - ApplicationStarted: 1180, - WindowMaximise: 1181, - WindowUnMaximise: 1182, - WindowFullscreen: 1183, - WindowUnFullscreen: 1184, - WindowRestore: 1185, - WindowMinimise: 1186, - WindowUnMinimise: 1187, - WindowClosing: 1188, - WindowZoom: 1189, - WindowZoomIn: 1190, - WindowZoomOut: 1191, - WindowZoomReset: 1192, - WindowFocus: 1193, - WindowLostFocus: 1194, - WindowShow: 1195, - WindowHide: 1196, - WindowDPIChanged: 1197, - WindowFilesDropped: 1198, - WindowRuntimeReady: 1199, - ThemeChanged: 1200, - WindowDidMove: 1201, + ApplicationStarted: 1183, + WindowMaximise: 1184, + WindowUnMaximise: 1185, + WindowFullscreen: 1186, + WindowUnFullscreen: 1187, + WindowRestore: 1188, + WindowMinimise: 1189, + WindowUnMinimise: 1190, + WindowClosing: 1191, + WindowZoom: 1192, + WindowZoomIn: 1193, + WindowZoomOut: 1194, + WindowZoomReset: 1195, + WindowFocus: 1196, + WindowLostFocus: 1197, + WindowShow: 1198, + WindowHide: 1199, + WindowDPIChanged: 1200, + WindowFilesDropped: 1201, + WindowRuntimeReady: 1202, + ThemeChanged: 1203, + WindowDidMove: 1204, + WindowDidResize: 1205, } } @@ -61,341 +63,347 @@ var Linux = newLinuxEvents() type linuxEvents struct { SystemThemeChanged ApplicationEventType - WindowLoadChanged WindowEventType - WindowDeleteEvent WindowEventType - WindowFocusIn WindowEventType - WindowFocusOut WindowEventType + WindowLoadChanged WindowEventType + WindowDeleteEvent WindowEventType + WindowDidMove WindowEventType + WindowDidResize WindowEventType + WindowFocusIn WindowEventType + WindowFocusOut WindowEventType ApplicationStartup ApplicationEventType } func newLinuxEvents() linuxEvents { return linuxEvents{ SystemThemeChanged: 1024, - WindowLoadChanged: 1025, - WindowDeleteEvent: 1026, - WindowFocusIn: 1027, - WindowFocusOut: 1028, - ApplicationStartup: 1029, + WindowLoadChanged: 1025, + WindowDeleteEvent: 1026, + WindowDidMove: 1027, + WindowDidResize: 1028, + WindowFocusIn: 1029, + WindowFocusOut: 1030, + ApplicationStartup: 1031, } } var Mac = newMacEvents() type macEvents struct { - ApplicationDidBecomeActive ApplicationEventType - ApplicationDidChangeBackingProperties ApplicationEventType - ApplicationDidChangeEffectiveAppearance ApplicationEventType - ApplicationDidChangeIcon ApplicationEventType - ApplicationDidChangeOcclusionState ApplicationEventType - ApplicationDidChangeScreenParameters ApplicationEventType - ApplicationDidChangeStatusBarFrame ApplicationEventType - ApplicationDidChangeStatusBarOrientation ApplicationEventType - ApplicationDidFinishLaunching ApplicationEventType - ApplicationDidHide ApplicationEventType - ApplicationDidResignActiveNotification ApplicationEventType - ApplicationDidUnhide ApplicationEventType - ApplicationDidUpdate ApplicationEventType - ApplicationWillBecomeActive ApplicationEventType - ApplicationWillFinishLaunching ApplicationEventType - ApplicationWillHide ApplicationEventType - ApplicationWillResignActive ApplicationEventType - ApplicationWillTerminate ApplicationEventType - ApplicationWillUnhide ApplicationEventType - ApplicationWillUpdate ApplicationEventType - ApplicationDidChangeTheme ApplicationEventType - ApplicationShouldHandleReopen ApplicationEventType - WindowDidBecomeKey WindowEventType - WindowDidBecomeMain WindowEventType - WindowDidBeginSheet WindowEventType - WindowDidChangeAlpha WindowEventType - WindowDidChangeBackingLocation WindowEventType - WindowDidChangeBackingProperties WindowEventType - WindowDidChangeCollectionBehavior WindowEventType - WindowDidChangeEffectiveAppearance WindowEventType - WindowDidChangeOcclusionState WindowEventType - WindowDidChangeOrderingMode WindowEventType - WindowDidChangeScreen WindowEventType - WindowDidChangeScreenParameters WindowEventType - WindowDidChangeScreenProfile WindowEventType - WindowDidChangeScreenSpace WindowEventType - WindowDidChangeScreenSpaceProperties WindowEventType - WindowDidChangeSharingType WindowEventType - WindowDidChangeSpace WindowEventType - WindowDidChangeSpaceOrderingMode WindowEventType - WindowDidChangeTitle WindowEventType - WindowDidChangeToolbar WindowEventType - WindowDidChangeVisibility WindowEventType - WindowDidDeminiaturize WindowEventType - WindowDidEndSheet WindowEventType - WindowDidEnterFullScreen WindowEventType - WindowDidEnterVersionBrowser WindowEventType - WindowDidExitFullScreen WindowEventType - WindowDidExitVersionBrowser WindowEventType - WindowDidExpose WindowEventType - WindowDidFocus WindowEventType - WindowDidMiniaturize WindowEventType - WindowDidMove WindowEventType - WindowDidOrderOffScreen WindowEventType - WindowDidOrderOnScreen WindowEventType - WindowDidResignKey WindowEventType - WindowDidResignMain WindowEventType - WindowDidResize WindowEventType - WindowDidUpdate WindowEventType - WindowDidUpdateAlpha WindowEventType - WindowDidUpdateCollectionBehavior WindowEventType - WindowDidUpdateCollectionProperties WindowEventType - WindowDidUpdateShadow WindowEventType - WindowDidUpdateTitle WindowEventType - WindowDidUpdateToolbar WindowEventType - WindowDidUpdateVisibility WindowEventType - WindowShouldClose WindowEventType - WindowWillBecomeKey WindowEventType - WindowWillBecomeMain WindowEventType - WindowWillBeginSheet WindowEventType - WindowWillChangeOrderingMode WindowEventType - WindowWillClose WindowEventType - WindowWillDeminiaturize WindowEventType - WindowWillEnterFullScreen WindowEventType - WindowWillEnterVersionBrowser WindowEventType - WindowWillExitFullScreen WindowEventType - WindowWillExitVersionBrowser WindowEventType - WindowWillFocus WindowEventType - WindowWillMiniaturize WindowEventType - WindowWillMove WindowEventType - WindowWillOrderOffScreen WindowEventType - WindowWillOrderOnScreen WindowEventType - WindowWillResignMain WindowEventType - WindowWillResize WindowEventType - WindowWillUnfocus WindowEventType - WindowWillUpdate WindowEventType - WindowWillUpdateAlpha WindowEventType - WindowWillUpdateCollectionBehavior WindowEventType - WindowWillUpdateCollectionProperties WindowEventType - WindowWillUpdateShadow WindowEventType - WindowWillUpdateTitle WindowEventType - WindowWillUpdateToolbar WindowEventType - WindowWillUpdateVisibility WindowEventType - WindowWillUseStandardFrame WindowEventType - MenuWillOpen ApplicationEventType - MenuDidOpen ApplicationEventType - MenuDidClose ApplicationEventType - MenuWillSendAction ApplicationEventType - MenuDidSendAction ApplicationEventType - MenuWillHighlightItem ApplicationEventType - MenuDidHighlightItem ApplicationEventType - MenuWillDisplayItem ApplicationEventType - MenuDidDisplayItem ApplicationEventType - MenuWillAddItem ApplicationEventType - MenuDidAddItem ApplicationEventType - MenuWillRemoveItem ApplicationEventType - MenuDidRemoveItem ApplicationEventType - MenuWillBeginTracking ApplicationEventType - MenuDidBeginTracking ApplicationEventType - MenuWillEndTracking ApplicationEventType - MenuDidEndTracking ApplicationEventType - MenuWillUpdate ApplicationEventType - MenuDidUpdate ApplicationEventType - MenuWillPopUp ApplicationEventType - MenuDidPopUp ApplicationEventType - MenuWillSendActionToItem ApplicationEventType - MenuDidSendActionToItem ApplicationEventType - WebViewDidStartProvisionalNavigation WindowEventType + ApplicationDidBecomeActive ApplicationEventType + ApplicationDidChangeBackingProperties ApplicationEventType + ApplicationDidChangeEffectiveAppearance ApplicationEventType + ApplicationDidChangeIcon ApplicationEventType + ApplicationDidChangeOcclusionState ApplicationEventType + ApplicationDidChangeScreenParameters ApplicationEventType + ApplicationDidChangeStatusBarFrame ApplicationEventType + ApplicationDidChangeStatusBarOrientation ApplicationEventType + ApplicationDidFinishLaunching ApplicationEventType + ApplicationDidHide ApplicationEventType + ApplicationDidResignActiveNotification ApplicationEventType + ApplicationDidUnhide ApplicationEventType + ApplicationDidUpdate ApplicationEventType + ApplicationWillBecomeActive ApplicationEventType + ApplicationWillFinishLaunching ApplicationEventType + ApplicationWillHide ApplicationEventType + ApplicationWillResignActive ApplicationEventType + ApplicationWillTerminate ApplicationEventType + ApplicationWillUnhide ApplicationEventType + ApplicationWillUpdate ApplicationEventType + ApplicationDidChangeTheme ApplicationEventType + ApplicationShouldHandleReopen ApplicationEventType + WindowDidBecomeKey WindowEventType + WindowDidBecomeMain WindowEventType + WindowDidBeginSheet WindowEventType + WindowDidChangeAlpha WindowEventType + WindowDidChangeBackingLocation WindowEventType + WindowDidChangeBackingProperties WindowEventType + WindowDidChangeCollectionBehavior WindowEventType + WindowDidChangeEffectiveAppearance WindowEventType + WindowDidChangeOcclusionState WindowEventType + WindowDidChangeOrderingMode WindowEventType + WindowDidChangeScreen WindowEventType + WindowDidChangeScreenParameters WindowEventType + WindowDidChangeScreenProfile WindowEventType + WindowDidChangeScreenSpace WindowEventType + WindowDidChangeScreenSpaceProperties WindowEventType + WindowDidChangeSharingType WindowEventType + WindowDidChangeSpace WindowEventType + WindowDidChangeSpaceOrderingMode WindowEventType + WindowDidChangeTitle WindowEventType + WindowDidChangeToolbar WindowEventType + WindowDidChangeVisibility WindowEventType + WindowDidDeminiaturize WindowEventType + WindowDidEndSheet WindowEventType + WindowDidEnterFullScreen WindowEventType + WindowDidEnterVersionBrowser WindowEventType + WindowDidExitFullScreen WindowEventType + WindowDidExitVersionBrowser WindowEventType + WindowDidExpose WindowEventType + WindowDidFocus WindowEventType + WindowDidMiniaturize WindowEventType + WindowDidMove WindowEventType + WindowDidOrderOffScreen WindowEventType + WindowDidOrderOnScreen WindowEventType + WindowDidResignKey WindowEventType + WindowDidResignMain WindowEventType + WindowDidResize WindowEventType + WindowDidUpdate WindowEventType + WindowDidUpdateAlpha WindowEventType + WindowDidUpdateCollectionBehavior WindowEventType + WindowDidUpdateCollectionProperties WindowEventType + WindowDidUpdateShadow WindowEventType + WindowDidUpdateTitle WindowEventType + WindowDidUpdateToolbar WindowEventType + WindowDidUpdateVisibility WindowEventType + WindowShouldClose WindowEventType + WindowWillBecomeKey WindowEventType + WindowWillBecomeMain WindowEventType + WindowWillBeginSheet WindowEventType + WindowWillChangeOrderingMode WindowEventType + WindowWillClose WindowEventType + WindowWillDeminiaturize WindowEventType + WindowWillEnterFullScreen WindowEventType + WindowWillEnterVersionBrowser WindowEventType + WindowWillExitFullScreen WindowEventType + WindowWillExitVersionBrowser WindowEventType + WindowWillFocus WindowEventType + WindowWillMiniaturize WindowEventType + WindowWillMove WindowEventType + WindowWillOrderOffScreen WindowEventType + WindowWillOrderOnScreen WindowEventType + WindowWillResignMain WindowEventType + WindowWillResize WindowEventType + WindowWillUnfocus WindowEventType + WindowWillUpdate WindowEventType + WindowWillUpdateAlpha WindowEventType + WindowWillUpdateCollectionBehavior WindowEventType + WindowWillUpdateCollectionProperties WindowEventType + WindowWillUpdateShadow WindowEventType + WindowWillUpdateTitle WindowEventType + WindowWillUpdateToolbar WindowEventType + WindowWillUpdateVisibility WindowEventType + WindowWillUseStandardFrame WindowEventType + MenuWillOpen ApplicationEventType + MenuDidOpen ApplicationEventType + MenuDidClose ApplicationEventType + MenuWillSendAction ApplicationEventType + MenuDidSendAction ApplicationEventType + MenuWillHighlightItem ApplicationEventType + MenuDidHighlightItem ApplicationEventType + MenuWillDisplayItem ApplicationEventType + MenuDidDisplayItem ApplicationEventType + MenuWillAddItem ApplicationEventType + MenuDidAddItem ApplicationEventType + MenuWillRemoveItem ApplicationEventType + MenuDidRemoveItem ApplicationEventType + MenuWillBeginTracking ApplicationEventType + MenuDidBeginTracking ApplicationEventType + MenuWillEndTracking ApplicationEventType + MenuDidEndTracking ApplicationEventType + MenuWillUpdate ApplicationEventType + MenuDidUpdate ApplicationEventType + MenuWillPopUp ApplicationEventType + MenuDidPopUp ApplicationEventType + MenuWillSendActionToItem ApplicationEventType + MenuDidSendActionToItem ApplicationEventType + WebViewDidStartProvisionalNavigation WindowEventType WebViewDidReceiveServerRedirectForProvisionalNavigation WindowEventType - WebViewDidFinishNavigation WindowEventType - WebViewDidCommitNavigation WindowEventType - WindowFileDraggingEntered WindowEventType - WindowFileDraggingPerformed WindowEventType - WindowFileDraggingExited WindowEventType + WebViewDidFinishNavigation WindowEventType + WebViewDidCommitNavigation WindowEventType + WindowFileDraggingEntered WindowEventType + WindowFileDraggingPerformed WindowEventType + WindowFileDraggingExited WindowEventType } func newMacEvents() macEvents { return macEvents{ - ApplicationDidBecomeActive: 1030, - ApplicationDidChangeBackingProperties: 1031, - ApplicationDidChangeEffectiveAppearance: 1032, - ApplicationDidChangeIcon: 1033, - ApplicationDidChangeOcclusionState: 1034, - ApplicationDidChangeScreenParameters: 1035, - ApplicationDidChangeStatusBarFrame: 1036, - ApplicationDidChangeStatusBarOrientation: 1037, - ApplicationDidFinishLaunching: 1038, - ApplicationDidHide: 1039, - ApplicationDidResignActiveNotification: 1040, - ApplicationDidUnhide: 1041, - ApplicationDidUpdate: 1042, - ApplicationWillBecomeActive: 1043, - ApplicationWillFinishLaunching: 1044, - ApplicationWillHide: 1045, - ApplicationWillResignActive: 1046, - ApplicationWillTerminate: 1047, - ApplicationWillUnhide: 1048, - ApplicationWillUpdate: 1049, - ApplicationDidChangeTheme: 1050, - ApplicationShouldHandleReopen: 1051, - WindowDidBecomeKey: 1052, - WindowDidBecomeMain: 1053, - WindowDidBeginSheet: 1054, - WindowDidChangeAlpha: 1055, - WindowDidChangeBackingLocation: 1056, - WindowDidChangeBackingProperties: 1057, - WindowDidChangeCollectionBehavior: 1058, - WindowDidChangeEffectiveAppearance: 1059, - WindowDidChangeOcclusionState: 1060, - WindowDidChangeOrderingMode: 1061, - WindowDidChangeScreen: 1062, - WindowDidChangeScreenParameters: 1063, - WindowDidChangeScreenProfile: 1064, - WindowDidChangeScreenSpace: 1065, - WindowDidChangeScreenSpaceProperties: 1066, - WindowDidChangeSharingType: 1067, - WindowDidChangeSpace: 1068, - WindowDidChangeSpaceOrderingMode: 1069, - WindowDidChangeTitle: 1070, - WindowDidChangeToolbar: 1071, - WindowDidChangeVisibility: 1072, - WindowDidDeminiaturize: 1073, - WindowDidEndSheet: 1074, - WindowDidEnterFullScreen: 1075, - WindowDidEnterVersionBrowser: 1076, - WindowDidExitFullScreen: 1077, - WindowDidExitVersionBrowser: 1078, - WindowDidExpose: 1079, - WindowDidFocus: 1080, - WindowDidMiniaturize: 1081, - WindowDidMove: 1082, - WindowDidOrderOffScreen: 1083, - WindowDidOrderOnScreen: 1084, - WindowDidResignKey: 1085, - WindowDidResignMain: 1086, - WindowDidResize: 1087, - WindowDidUpdate: 1088, - WindowDidUpdateAlpha: 1089, - WindowDidUpdateCollectionBehavior: 1090, - WindowDidUpdateCollectionProperties: 1091, - WindowDidUpdateShadow: 1092, - WindowDidUpdateTitle: 1093, - WindowDidUpdateToolbar: 1094, - WindowDidUpdateVisibility: 1095, - WindowShouldClose: 1096, - WindowWillBecomeKey: 1097, - WindowWillBecomeMain: 1098, - WindowWillBeginSheet: 1099, - WindowWillChangeOrderingMode: 1100, - WindowWillClose: 1101, - WindowWillDeminiaturize: 1102, - WindowWillEnterFullScreen: 1103, - WindowWillEnterVersionBrowser: 1104, - WindowWillExitFullScreen: 1105, - WindowWillExitVersionBrowser: 1106, - WindowWillFocus: 1107, - WindowWillMiniaturize: 1108, - WindowWillMove: 1109, - WindowWillOrderOffScreen: 1110, - WindowWillOrderOnScreen: 1111, - WindowWillResignMain: 1112, - WindowWillResize: 1113, - WindowWillUnfocus: 1114, - WindowWillUpdate: 1115, - WindowWillUpdateAlpha: 1116, - WindowWillUpdateCollectionBehavior: 1117, - WindowWillUpdateCollectionProperties: 1118, - WindowWillUpdateShadow: 1119, - WindowWillUpdateTitle: 1120, - WindowWillUpdateToolbar: 1121, - WindowWillUpdateVisibility: 1122, - WindowWillUseStandardFrame: 1123, - MenuWillOpen: 1124, - MenuDidOpen: 1125, - MenuDidClose: 1126, - MenuWillSendAction: 1127, - MenuDidSendAction: 1128, - MenuWillHighlightItem: 1129, - MenuDidHighlightItem: 1130, - MenuWillDisplayItem: 1131, - MenuDidDisplayItem: 1132, - MenuWillAddItem: 1133, - MenuDidAddItem: 1134, - MenuWillRemoveItem: 1135, - MenuDidRemoveItem: 1136, - MenuWillBeginTracking: 1137, - MenuDidBeginTracking: 1138, - MenuWillEndTracking: 1139, - MenuDidEndTracking: 1140, - MenuWillUpdate: 1141, - MenuDidUpdate: 1142, - MenuWillPopUp: 1143, - MenuDidPopUp: 1144, - MenuWillSendActionToItem: 1145, - MenuDidSendActionToItem: 1146, - WebViewDidStartProvisionalNavigation: 1147, - WebViewDidReceiveServerRedirectForProvisionalNavigation: 1148, - WebViewDidFinishNavigation: 1149, - WebViewDidCommitNavigation: 1150, - WindowFileDraggingEntered: 1151, - WindowFileDraggingPerformed: 1152, - WindowFileDraggingExited: 1153, + ApplicationDidBecomeActive: 1032, + ApplicationDidChangeBackingProperties: 1033, + ApplicationDidChangeEffectiveAppearance: 1034, + ApplicationDidChangeIcon: 1035, + ApplicationDidChangeOcclusionState: 1036, + ApplicationDidChangeScreenParameters: 1037, + ApplicationDidChangeStatusBarFrame: 1038, + ApplicationDidChangeStatusBarOrientation: 1039, + ApplicationDidFinishLaunching: 1040, + ApplicationDidHide: 1041, + ApplicationDidResignActiveNotification: 1042, + ApplicationDidUnhide: 1043, + ApplicationDidUpdate: 1044, + ApplicationWillBecomeActive: 1045, + ApplicationWillFinishLaunching: 1046, + ApplicationWillHide: 1047, + ApplicationWillResignActive: 1048, + ApplicationWillTerminate: 1049, + ApplicationWillUnhide: 1050, + ApplicationWillUpdate: 1051, + ApplicationDidChangeTheme: 1052, + ApplicationShouldHandleReopen: 1053, + WindowDidBecomeKey: 1054, + WindowDidBecomeMain: 1055, + WindowDidBeginSheet: 1056, + WindowDidChangeAlpha: 1057, + WindowDidChangeBackingLocation: 1058, + WindowDidChangeBackingProperties: 1059, + WindowDidChangeCollectionBehavior: 1060, + WindowDidChangeEffectiveAppearance: 1061, + WindowDidChangeOcclusionState: 1062, + WindowDidChangeOrderingMode: 1063, + WindowDidChangeScreen: 1064, + WindowDidChangeScreenParameters: 1065, + WindowDidChangeScreenProfile: 1066, + WindowDidChangeScreenSpace: 1067, + WindowDidChangeScreenSpaceProperties: 1068, + WindowDidChangeSharingType: 1069, + WindowDidChangeSpace: 1070, + WindowDidChangeSpaceOrderingMode: 1071, + WindowDidChangeTitle: 1072, + WindowDidChangeToolbar: 1073, + WindowDidChangeVisibility: 1074, + WindowDidDeminiaturize: 1075, + WindowDidEndSheet: 1076, + WindowDidEnterFullScreen: 1077, + WindowDidEnterVersionBrowser: 1078, + WindowDidExitFullScreen: 1079, + WindowDidExitVersionBrowser: 1080, + WindowDidExpose: 1081, + WindowDidFocus: 1082, + WindowDidMiniaturize: 1083, + WindowDidMove: 1084, + WindowDidOrderOffScreen: 1085, + WindowDidOrderOnScreen: 1086, + WindowDidResignKey: 1087, + WindowDidResignMain: 1088, + WindowDidResize: 1089, + WindowDidUpdate: 1090, + WindowDidUpdateAlpha: 1091, + WindowDidUpdateCollectionBehavior: 1092, + WindowDidUpdateCollectionProperties: 1093, + WindowDidUpdateShadow: 1094, + WindowDidUpdateTitle: 1095, + WindowDidUpdateToolbar: 1096, + WindowDidUpdateVisibility: 1097, + WindowShouldClose: 1098, + WindowWillBecomeKey: 1099, + WindowWillBecomeMain: 1100, + WindowWillBeginSheet: 1101, + WindowWillChangeOrderingMode: 1102, + WindowWillClose: 1103, + WindowWillDeminiaturize: 1104, + WindowWillEnterFullScreen: 1105, + WindowWillEnterVersionBrowser: 1106, + WindowWillExitFullScreen: 1107, + WindowWillExitVersionBrowser: 1108, + WindowWillFocus: 1109, + WindowWillMiniaturize: 1110, + WindowWillMove: 1111, + WindowWillOrderOffScreen: 1112, + WindowWillOrderOnScreen: 1113, + WindowWillResignMain: 1114, + WindowWillResize: 1115, + WindowWillUnfocus: 1116, + WindowWillUpdate: 1117, + WindowWillUpdateAlpha: 1118, + WindowWillUpdateCollectionBehavior: 1119, + WindowWillUpdateCollectionProperties: 1120, + WindowWillUpdateShadow: 1121, + WindowWillUpdateTitle: 1122, + WindowWillUpdateToolbar: 1123, + WindowWillUpdateVisibility: 1124, + WindowWillUseStandardFrame: 1125, + MenuWillOpen: 1126, + MenuDidOpen: 1127, + MenuDidClose: 1128, + MenuWillSendAction: 1129, + MenuDidSendAction: 1130, + MenuWillHighlightItem: 1131, + MenuDidHighlightItem: 1132, + MenuWillDisplayItem: 1133, + MenuDidDisplayItem: 1134, + MenuWillAddItem: 1135, + MenuDidAddItem: 1136, + MenuWillRemoveItem: 1137, + MenuDidRemoveItem: 1138, + MenuWillBeginTracking: 1139, + MenuDidBeginTracking: 1140, + MenuWillEndTracking: 1141, + MenuDidEndTracking: 1142, + MenuWillUpdate: 1143, + MenuDidUpdate: 1144, + MenuWillPopUp: 1145, + MenuDidPopUp: 1146, + MenuWillSendActionToItem: 1147, + MenuDidSendActionToItem: 1148, + WebViewDidStartProvisionalNavigation: 1149, + WebViewDidReceiveServerRedirectForProvisionalNavigation: 1150, + WebViewDidFinishNavigation: 1151, + WebViewDidCommitNavigation: 1152, + WindowFileDraggingEntered: 1153, + WindowFileDraggingPerformed: 1154, + WindowFileDraggingExited: 1155, } } var Windows = newWindowsEvents() type windowsEvents struct { - SystemThemeChanged ApplicationEventType - APMPowerStatusChange ApplicationEventType - APMSuspend ApplicationEventType - APMResumeAutomatic ApplicationEventType - APMResumeSuspend ApplicationEventType - APMPowerSettingChange ApplicationEventType - ApplicationStarted ApplicationEventType + SystemThemeChanged ApplicationEventType + APMPowerStatusChange ApplicationEventType + APMSuspend ApplicationEventType + APMResumeAutomatic ApplicationEventType + APMResumeSuspend ApplicationEventType + APMPowerSettingChange ApplicationEventType + ApplicationStarted ApplicationEventType WebViewNavigationCompleted WindowEventType - WindowInactive WindowEventType - WindowActive WindowEventType - WindowClickActive WindowEventType - WindowMaximise WindowEventType - WindowUnMaximise WindowEventType - WindowFullscreen WindowEventType - WindowUnFullscreen WindowEventType - WindowRestore WindowEventType - WindowMinimise WindowEventType - WindowUnMinimise WindowEventType - WindowClose WindowEventType - WindowSetFocus WindowEventType - WindowKillFocus WindowEventType - WindowDragDrop WindowEventType - WindowDragEnter WindowEventType - WindowDragLeave WindowEventType - WindowDragOver WindowEventType - WindowDidMove WindowEventType + WindowInactive WindowEventType + WindowActive WindowEventType + WindowClickActive WindowEventType + WindowMaximise WindowEventType + WindowUnMaximise WindowEventType + WindowFullscreen WindowEventType + WindowUnFullscreen WindowEventType + WindowRestore WindowEventType + WindowMinimise WindowEventType + WindowUnMinimise WindowEventType + WindowClose WindowEventType + WindowSetFocus WindowEventType + WindowKillFocus WindowEventType + WindowDragDrop WindowEventType + WindowDragEnter WindowEventType + WindowDragLeave WindowEventType + WindowDragOver WindowEventType + WindowDidMove WindowEventType + WindowDidResize WindowEventType } func newWindowsEvents() windowsEvents { return windowsEvents{ - SystemThemeChanged: 1154, - APMPowerStatusChange: 1155, - APMSuspend: 1156, - APMResumeAutomatic: 1157, - APMResumeSuspend: 1158, - APMPowerSettingChange: 1159, - ApplicationStarted: 1160, - WebViewNavigationCompleted: 1161, - WindowInactive: 1162, - WindowActive: 1163, - WindowClickActive: 1164, - WindowMaximise: 1165, - WindowUnMaximise: 1166, - WindowFullscreen: 1167, - WindowUnFullscreen: 1168, - WindowRestore: 1169, - WindowMinimise: 1170, - WindowUnMinimise: 1171, - WindowClose: 1172, - WindowSetFocus: 1173, - WindowKillFocus: 1174, - WindowDragDrop: 1175, - WindowDragEnter: 1176, - WindowDragLeave: 1177, - WindowDragOver: 1178, - WindowDidMove: 1179, + SystemThemeChanged: 1156, + APMPowerStatusChange: 1157, + APMSuspend: 1158, + APMResumeAutomatic: 1159, + APMResumeSuspend: 1160, + APMPowerSettingChange: 1161, + ApplicationStarted: 1162, + WebViewNavigationCompleted: 1163, + WindowInactive: 1164, + WindowActive: 1165, + WindowClickActive: 1166, + WindowMaximise: 1167, + WindowUnMaximise: 1168, + WindowFullscreen: 1169, + WindowUnFullscreen: 1170, + WindowRestore: 1171, + WindowMinimise: 1172, + WindowUnMinimise: 1173, + WindowClose: 1174, + WindowSetFocus: 1175, + WindowKillFocus: 1176, + WindowDragDrop: 1177, + WindowDragEnter: 1178, + WindowDragLeave: 1179, + WindowDragOver: 1180, + WindowDidMove: 1181, + WindowDidResize: 1182, } } @@ -407,179 +415,184 @@ var eventToJS = map[uint]string{ 1024: "linux:SystemThemeChanged", 1025: "linux:WindowLoadChanged", 1026: "linux:WindowDeleteEvent", - 1027: "linux:WindowFocusIn", - 1028: "linux:WindowFocusOut", - 1029: "linux:ApplicationStartup", - 1030: "mac:ApplicationDidBecomeActive", - 1031: "mac:ApplicationDidChangeBackingProperties", - 1032: "mac:ApplicationDidChangeEffectiveAppearance", - 1033: "mac:ApplicationDidChangeIcon", - 1034: "mac:ApplicationDidChangeOcclusionState", - 1035: "mac:ApplicationDidChangeScreenParameters", - 1036: "mac:ApplicationDidChangeStatusBarFrame", - 1037: "mac:ApplicationDidChangeStatusBarOrientation", - 1038: "mac:ApplicationDidFinishLaunching", - 1039: "mac:ApplicationDidHide", - 1040: "mac:ApplicationDidResignActiveNotification", - 1041: "mac:ApplicationDidUnhide", - 1042: "mac:ApplicationDidUpdate", - 1043: "mac:ApplicationWillBecomeActive", - 1044: "mac:ApplicationWillFinishLaunching", - 1045: "mac:ApplicationWillHide", - 1046: "mac:ApplicationWillResignActive", - 1047: "mac:ApplicationWillTerminate", - 1048: "mac:ApplicationWillUnhide", - 1049: "mac:ApplicationWillUpdate", - 1050: "mac:ApplicationDidChangeTheme!", - 1051: "mac:ApplicationShouldHandleReopen!", - 1052: "mac:WindowDidBecomeKey", - 1053: "mac:WindowDidBecomeMain", - 1054: "mac:WindowDidBeginSheet", - 1055: "mac:WindowDidChangeAlpha", - 1056: "mac:WindowDidChangeBackingLocation", - 1057: "mac:WindowDidChangeBackingProperties", - 1058: "mac:WindowDidChangeCollectionBehavior", - 1059: "mac:WindowDidChangeEffectiveAppearance", - 1060: "mac:WindowDidChangeOcclusionState", - 1061: "mac:WindowDidChangeOrderingMode", - 1062: "mac:WindowDidChangeScreen", - 1063: "mac:WindowDidChangeScreenParameters", - 1064: "mac:WindowDidChangeScreenProfile", - 1065: "mac:WindowDidChangeScreenSpace", - 1066: "mac:WindowDidChangeScreenSpaceProperties", - 1067: "mac:WindowDidChangeSharingType", - 1068: "mac:WindowDidChangeSpace", - 1069: "mac:WindowDidChangeSpaceOrderingMode", - 1070: "mac:WindowDidChangeTitle", - 1071: "mac:WindowDidChangeToolbar", - 1072: "mac:WindowDidChangeVisibility", - 1073: "mac:WindowDidDeminiaturize", - 1074: "mac:WindowDidEndSheet", - 1075: "mac:WindowDidEnterFullScreen", - 1076: "mac:WindowDidEnterVersionBrowser", - 1077: "mac:WindowDidExitFullScreen", - 1078: "mac:WindowDidExitVersionBrowser", - 1079: "mac:WindowDidExpose", - 1080: "mac:WindowDidFocus", - 1081: "mac:WindowDidMiniaturize", - 1082: "mac:WindowDidMove", - 1083: "mac:WindowDidOrderOffScreen", - 1084: "mac:WindowDidOrderOnScreen", - 1085: "mac:WindowDidResignKey", - 1086: "mac:WindowDidResignMain", - 1087: "mac:WindowDidResize", - 1088: "mac:WindowDidUpdate", - 1089: "mac:WindowDidUpdateAlpha", - 1090: "mac:WindowDidUpdateCollectionBehavior", - 1091: "mac:WindowDidUpdateCollectionProperties", - 1092: "mac:WindowDidUpdateShadow", - 1093: "mac:WindowDidUpdateTitle", - 1094: "mac:WindowDidUpdateToolbar", - 1095: "mac:WindowDidUpdateVisibility", - 1096: "mac:WindowShouldClose!", - 1097: "mac:WindowWillBecomeKey", - 1098: "mac:WindowWillBecomeMain", - 1099: "mac:WindowWillBeginSheet", - 1100: "mac:WindowWillChangeOrderingMode", - 1101: "mac:WindowWillClose", - 1102: "mac:WindowWillDeminiaturize", - 1103: "mac:WindowWillEnterFullScreen", - 1104: "mac:WindowWillEnterVersionBrowser", - 1105: "mac:WindowWillExitFullScreen", - 1106: "mac:WindowWillExitVersionBrowser", - 1107: "mac:WindowWillFocus", - 1108: "mac:WindowWillMiniaturize", - 1109: "mac:WindowWillMove", - 1110: "mac:WindowWillOrderOffScreen", - 1111: "mac:WindowWillOrderOnScreen", - 1112: "mac:WindowWillResignMain", - 1113: "mac:WindowWillResize", - 1114: "mac:WindowWillUnfocus", - 1115: "mac:WindowWillUpdate", - 1116: "mac:WindowWillUpdateAlpha", - 1117: "mac:WindowWillUpdateCollectionBehavior", - 1118: "mac:WindowWillUpdateCollectionProperties", - 1119: "mac:WindowWillUpdateShadow", - 1120: "mac:WindowWillUpdateTitle", - 1121: "mac:WindowWillUpdateToolbar", - 1122: "mac:WindowWillUpdateVisibility", - 1123: "mac:WindowWillUseStandardFrame", - 1124: "mac:MenuWillOpen", - 1125: "mac:MenuDidOpen", - 1126: "mac:MenuDidClose", - 1127: "mac:MenuWillSendAction", - 1128: "mac:MenuDidSendAction", - 1129: "mac:MenuWillHighlightItem", - 1130: "mac:MenuDidHighlightItem", - 1131: "mac:MenuWillDisplayItem", - 1132: "mac:MenuDidDisplayItem", - 1133: "mac:MenuWillAddItem", - 1134: "mac:MenuDidAddItem", - 1135: "mac:MenuWillRemoveItem", - 1136: "mac:MenuDidRemoveItem", - 1137: "mac:MenuWillBeginTracking", - 1138: "mac:MenuDidBeginTracking", - 1139: "mac:MenuWillEndTracking", - 1140: "mac:MenuDidEndTracking", - 1141: "mac:MenuWillUpdate", - 1142: "mac:MenuDidUpdate", - 1143: "mac:MenuWillPopUp", - 1144: "mac:MenuDidPopUp", - 1145: "mac:MenuWillSendActionToItem", - 1146: "mac:MenuDidSendActionToItem", - 1147: "mac:WebViewDidStartProvisionalNavigation", - 1148: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation", - 1149: "mac:WebViewDidFinishNavigation", - 1150: "mac:WebViewDidCommitNavigation", - 1151: "mac:WindowFileDraggingEntered", - 1152: "mac:WindowFileDraggingPerformed", - 1153: "mac:WindowFileDraggingExited", - 1154: "windows:SystemThemeChanged", - 1155: "windows:APMPowerStatusChange", - 1156: "windows:APMSuspend", - 1157: "windows:APMResumeAutomatic", - 1158: "windows:APMResumeSuspend", - 1159: "windows:APMPowerSettingChange", - 1160: "windows:ApplicationStarted", - 1161: "windows:WebViewNavigationCompleted", - 1162: "windows:WindowInactive", - 1163: "windows:WindowActive", - 1164: "windows:WindowClickActive", - 1165: "windows:WindowMaximise", - 1166: "windows:WindowUnMaximise", - 1167: "windows:WindowFullscreen", - 1168: "windows:WindowUnFullscreen", - 1169: "windows:WindowRestore", - 1170: "windows:WindowMinimise", - 1171: "windows:WindowUnMinimise", - 1172: "windows:WindowClose", - 1173: "windows:WindowSetFocus", - 1174: "windows:WindowKillFocus", - 1175: "windows:WindowDragDrop", - 1176: "windows:WindowDragEnter", - 1177: "windows:WindowDragLeave", - 1178: "windows:WindowDragOver", - 1179: "windows:WindowDidMove", - 1180: "common:ApplicationStarted", - 1181: "common:WindowMaximise", - 1182: "common:WindowUnMaximise", - 1183: "common:WindowFullscreen", - 1184: "common:WindowUnFullscreen", - 1185: "common:WindowRestore", - 1186: "common:WindowMinimise", - 1187: "common:WindowUnMinimise", - 1188: "common:WindowClosing", - 1189: "common:WindowZoom", - 1190: "common:WindowZoomIn", - 1191: "common:WindowZoomOut", - 1192: "common:WindowZoomReset", - 1193: "common:WindowFocus", - 1194: "common:WindowLostFocus", - 1195: "common:WindowShow", - 1196: "common:WindowHide", - 1197: "common:WindowDPIChanged", - 1198: "common:WindowFilesDropped", - 1199: "common:WindowRuntimeReady", - 1200: "common:ThemeChanged", - 1201: "common:WindowDidMove", + 1027: "linux:WindowDidMove", + 1028: "linux:WindowDidResize", + 1029: "linux:WindowFocusIn", + 1030: "linux:WindowFocusOut", + 1031: "linux:ApplicationStartup", + 1032: "mac:ApplicationDidBecomeActive", + 1033: "mac:ApplicationDidChangeBackingProperties", + 1034: "mac:ApplicationDidChangeEffectiveAppearance", + 1035: "mac:ApplicationDidChangeIcon", + 1036: "mac:ApplicationDidChangeOcclusionState", + 1037: "mac:ApplicationDidChangeScreenParameters", + 1038: "mac:ApplicationDidChangeStatusBarFrame", + 1039: "mac:ApplicationDidChangeStatusBarOrientation", + 1040: "mac:ApplicationDidFinishLaunching", + 1041: "mac:ApplicationDidHide", + 1042: "mac:ApplicationDidResignActiveNotification", + 1043: "mac:ApplicationDidUnhide", + 1044: "mac:ApplicationDidUpdate", + 1045: "mac:ApplicationWillBecomeActive", + 1046: "mac:ApplicationWillFinishLaunching", + 1047: "mac:ApplicationWillHide", + 1048: "mac:ApplicationWillResignActive", + 1049: "mac:ApplicationWillTerminate", + 1050: "mac:ApplicationWillUnhide", + 1051: "mac:ApplicationWillUpdate", + 1052: "mac:ApplicationDidChangeTheme!", + 1053: "mac:ApplicationShouldHandleReopen!", + 1054: "mac:WindowDidBecomeKey", + 1055: "mac:WindowDidBecomeMain", + 1056: "mac:WindowDidBeginSheet", + 1057: "mac:WindowDidChangeAlpha", + 1058: "mac:WindowDidChangeBackingLocation", + 1059: "mac:WindowDidChangeBackingProperties", + 1060: "mac:WindowDidChangeCollectionBehavior", + 1061: "mac:WindowDidChangeEffectiveAppearance", + 1062: "mac:WindowDidChangeOcclusionState", + 1063: "mac:WindowDidChangeOrderingMode", + 1064: "mac:WindowDidChangeScreen", + 1065: "mac:WindowDidChangeScreenParameters", + 1066: "mac:WindowDidChangeScreenProfile", + 1067: "mac:WindowDidChangeScreenSpace", + 1068: "mac:WindowDidChangeScreenSpaceProperties", + 1069: "mac:WindowDidChangeSharingType", + 1070: "mac:WindowDidChangeSpace", + 1071: "mac:WindowDidChangeSpaceOrderingMode", + 1072: "mac:WindowDidChangeTitle", + 1073: "mac:WindowDidChangeToolbar", + 1074: "mac:WindowDidChangeVisibility", + 1075: "mac:WindowDidDeminiaturize", + 1076: "mac:WindowDidEndSheet", + 1077: "mac:WindowDidEnterFullScreen", + 1078: "mac:WindowDidEnterVersionBrowser", + 1079: "mac:WindowDidExitFullScreen", + 1080: "mac:WindowDidExitVersionBrowser", + 1081: "mac:WindowDidExpose", + 1082: "mac:WindowDidFocus", + 1083: "mac:WindowDidMiniaturize", + 1084: "mac:WindowDidMove", + 1085: "mac:WindowDidOrderOffScreen", + 1086: "mac:WindowDidOrderOnScreen", + 1087: "mac:WindowDidResignKey", + 1088: "mac:WindowDidResignMain", + 1089: "mac:WindowDidResize", + 1090: "mac:WindowDidUpdate", + 1091: "mac:WindowDidUpdateAlpha", + 1092: "mac:WindowDidUpdateCollectionBehavior", + 1093: "mac:WindowDidUpdateCollectionProperties", + 1094: "mac:WindowDidUpdateShadow", + 1095: "mac:WindowDidUpdateTitle", + 1096: "mac:WindowDidUpdateToolbar", + 1097: "mac:WindowDidUpdateVisibility", + 1098: "mac:WindowShouldClose!", + 1099: "mac:WindowWillBecomeKey", + 1100: "mac:WindowWillBecomeMain", + 1101: "mac:WindowWillBeginSheet", + 1102: "mac:WindowWillChangeOrderingMode", + 1103: "mac:WindowWillClose", + 1104: "mac:WindowWillDeminiaturize", + 1105: "mac:WindowWillEnterFullScreen", + 1106: "mac:WindowWillEnterVersionBrowser", + 1107: "mac:WindowWillExitFullScreen", + 1108: "mac:WindowWillExitVersionBrowser", + 1109: "mac:WindowWillFocus", + 1110: "mac:WindowWillMiniaturize", + 1111: "mac:WindowWillMove", + 1112: "mac:WindowWillOrderOffScreen", + 1113: "mac:WindowWillOrderOnScreen", + 1114: "mac:WindowWillResignMain", + 1115: "mac:WindowWillResize", + 1116: "mac:WindowWillUnfocus", + 1117: "mac:WindowWillUpdate", + 1118: "mac:WindowWillUpdateAlpha", + 1119: "mac:WindowWillUpdateCollectionBehavior", + 1120: "mac:WindowWillUpdateCollectionProperties", + 1121: "mac:WindowWillUpdateShadow", + 1122: "mac:WindowWillUpdateTitle", + 1123: "mac:WindowWillUpdateToolbar", + 1124: "mac:WindowWillUpdateVisibility", + 1125: "mac:WindowWillUseStandardFrame", + 1126: "mac:MenuWillOpen", + 1127: "mac:MenuDidOpen", + 1128: "mac:MenuDidClose", + 1129: "mac:MenuWillSendAction", + 1130: "mac:MenuDidSendAction", + 1131: "mac:MenuWillHighlightItem", + 1132: "mac:MenuDidHighlightItem", + 1133: "mac:MenuWillDisplayItem", + 1134: "mac:MenuDidDisplayItem", + 1135: "mac:MenuWillAddItem", + 1136: "mac:MenuDidAddItem", + 1137: "mac:MenuWillRemoveItem", + 1138: "mac:MenuDidRemoveItem", + 1139: "mac:MenuWillBeginTracking", + 1140: "mac:MenuDidBeginTracking", + 1141: "mac:MenuWillEndTracking", + 1142: "mac:MenuDidEndTracking", + 1143: "mac:MenuWillUpdate", + 1144: "mac:MenuDidUpdate", + 1145: "mac:MenuWillPopUp", + 1146: "mac:MenuDidPopUp", + 1147: "mac:MenuWillSendActionToItem", + 1148: "mac:MenuDidSendActionToItem", + 1149: "mac:WebViewDidStartProvisionalNavigation", + 1150: "mac:WebViewDidReceiveServerRedirectForProvisionalNavigation", + 1151: "mac:WebViewDidFinishNavigation", + 1152: "mac:WebViewDidCommitNavigation", + 1153: "mac:WindowFileDraggingEntered", + 1154: "mac:WindowFileDraggingPerformed", + 1155: "mac:WindowFileDraggingExited", + 1156: "windows:SystemThemeChanged", + 1157: "windows:APMPowerStatusChange", + 1158: "windows:APMSuspend", + 1159: "windows:APMResumeAutomatic", + 1160: "windows:APMResumeSuspend", + 1161: "windows:APMPowerSettingChange", + 1162: "windows:ApplicationStarted", + 1163: "windows:WebViewNavigationCompleted", + 1164: "windows:WindowInactive", + 1165: "windows:WindowActive", + 1166: "windows:WindowClickActive", + 1167: "windows:WindowMaximise", + 1168: "windows:WindowUnMaximise", + 1169: "windows:WindowFullscreen", + 1170: "windows:WindowUnFullscreen", + 1171: "windows:WindowRestore", + 1172: "windows:WindowMinimise", + 1173: "windows:WindowUnMinimise", + 1174: "windows:WindowClose", + 1175: "windows:WindowSetFocus", + 1176: "windows:WindowKillFocus", + 1177: "windows:WindowDragDrop", + 1178: "windows:WindowDragEnter", + 1179: "windows:WindowDragLeave", + 1180: "windows:WindowDragOver", + 1181: "windows:WindowDidMove", + 1182: "windows:WindowDidResize", + 1183: "common:ApplicationStarted", + 1184: "common:WindowMaximise", + 1185: "common:WindowUnMaximise", + 1186: "common:WindowFullscreen", + 1187: "common:WindowUnFullscreen", + 1188: "common:WindowRestore", + 1189: "common:WindowMinimise", + 1190: "common:WindowUnMinimise", + 1191: "common:WindowClosing", + 1192: "common:WindowZoom", + 1193: "common:WindowZoomIn", + 1194: "common:WindowZoomOut", + 1195: "common:WindowZoomReset", + 1196: "common:WindowFocus", + 1197: "common:WindowLostFocus", + 1198: "common:WindowShow", + 1199: "common:WindowHide", + 1200: "common:WindowDPIChanged", + 1201: "common:WindowFilesDropped", + 1202: "common:WindowRuntimeReady", + 1203: "common:ThemeChanged", + 1204: "common:WindowDidMove", + 1205: "common:WindowDidResize", } + diff --git a/v3/pkg/events/events.txt b/v3/pkg/events/events.txt index 7720339a7..5a677b214 100644 --- a/v3/pkg/events/events.txt +++ b/v3/pkg/events/events.txt @@ -1,6 +1,8 @@ linux:SystemThemeChanged linux:WindowLoadChanged linux:WindowDeleteEvent +linux:WindowDidMove +linux:WindowDidResize linux:WindowFocusIn linux:WindowFocusOut linux:ApplicationStartup @@ -154,6 +156,7 @@ windows:WindowDragEnter windows:WindowDragLeave windows:WindowDragOver windows:WindowDidMove +windows:WindowDidResize common:ApplicationStarted common:WindowMaximise common:WindowUnMaximise @@ -176,3 +179,4 @@ common:WindowFilesDropped common:WindowRuntimeReady common:ThemeChanged common:WindowDidMove +common:WindowDidResize diff --git a/v3/pkg/events/events_darwin.h b/v3/pkg/events/events_darwin.h index f8ee81be2..14dc87242 100644 --- a/v3/pkg/events/events_darwin.h +++ b/v3/pkg/events/events_darwin.h @@ -6,132 +6,132 @@ extern void processApplicationEvent(unsigned int, void* data); extern void processWindowEvent(unsigned int, unsigned int); -#define EventApplicationDidBecomeActive 1030 -#define EventApplicationDidChangeBackingProperties 1031 -#define EventApplicationDidChangeEffectiveAppearance 1032 -#define EventApplicationDidChangeIcon 1033 -#define EventApplicationDidChangeOcclusionState 1034 -#define EventApplicationDidChangeScreenParameters 1035 -#define EventApplicationDidChangeStatusBarFrame 1036 -#define EventApplicationDidChangeStatusBarOrientation 1037 -#define EventApplicationDidFinishLaunching 1038 -#define EventApplicationDidHide 1039 -#define EventApplicationDidResignActiveNotification 1040 -#define EventApplicationDidUnhide 1041 -#define EventApplicationDidUpdate 1042 -#define EventApplicationWillBecomeActive 1043 -#define EventApplicationWillFinishLaunching 1044 -#define EventApplicationWillHide 1045 -#define EventApplicationWillResignActive 1046 -#define EventApplicationWillTerminate 1047 -#define EventApplicationWillUnhide 1048 -#define EventApplicationWillUpdate 1049 -#define EventApplicationDidChangeTheme 1050 -#define EventApplicationShouldHandleReopen 1051 -#define EventWindowDidBecomeKey 1052 -#define EventWindowDidBecomeMain 1053 -#define EventWindowDidBeginSheet 1054 -#define EventWindowDidChangeAlpha 1055 -#define EventWindowDidChangeBackingLocation 1056 -#define EventWindowDidChangeBackingProperties 1057 -#define EventWindowDidChangeCollectionBehavior 1058 -#define EventWindowDidChangeEffectiveAppearance 1059 -#define EventWindowDidChangeOcclusionState 1060 -#define EventWindowDidChangeOrderingMode 1061 -#define EventWindowDidChangeScreen 1062 -#define EventWindowDidChangeScreenParameters 1063 -#define EventWindowDidChangeScreenProfile 1064 -#define EventWindowDidChangeScreenSpace 1065 -#define EventWindowDidChangeScreenSpaceProperties 1066 -#define EventWindowDidChangeSharingType 1067 -#define EventWindowDidChangeSpace 1068 -#define EventWindowDidChangeSpaceOrderingMode 1069 -#define EventWindowDidChangeTitle 1070 -#define EventWindowDidChangeToolbar 1071 -#define EventWindowDidChangeVisibility 1072 -#define EventWindowDidDeminiaturize 1073 -#define EventWindowDidEndSheet 1074 -#define EventWindowDidEnterFullScreen 1075 -#define EventWindowDidEnterVersionBrowser 1076 -#define EventWindowDidExitFullScreen 1077 -#define EventWindowDidExitVersionBrowser 1078 -#define EventWindowDidExpose 1079 -#define EventWindowDidFocus 1080 -#define EventWindowDidMiniaturize 1081 -#define EventWindowDidMove 1082 -#define EventWindowDidOrderOffScreen 1083 -#define EventWindowDidOrderOnScreen 1084 -#define EventWindowDidResignKey 1085 -#define EventWindowDidResignMain 1086 -#define EventWindowDidResize 1087 -#define EventWindowDidUpdate 1088 -#define EventWindowDidUpdateAlpha 1089 -#define EventWindowDidUpdateCollectionBehavior 1090 -#define EventWindowDidUpdateCollectionProperties 1091 -#define EventWindowDidUpdateShadow 1092 -#define EventWindowDidUpdateTitle 1093 -#define EventWindowDidUpdateToolbar 1094 -#define EventWindowDidUpdateVisibility 1095 -#define EventWindowShouldClose 1096 -#define EventWindowWillBecomeKey 1097 -#define EventWindowWillBecomeMain 1098 -#define EventWindowWillBeginSheet 1099 -#define EventWindowWillChangeOrderingMode 1100 -#define EventWindowWillClose 1101 -#define EventWindowWillDeminiaturize 1102 -#define EventWindowWillEnterFullScreen 1103 -#define EventWindowWillEnterVersionBrowser 1104 -#define EventWindowWillExitFullScreen 1105 -#define EventWindowWillExitVersionBrowser 1106 -#define EventWindowWillFocus 1107 -#define EventWindowWillMiniaturize 1108 -#define EventWindowWillMove 1109 -#define EventWindowWillOrderOffScreen 1110 -#define EventWindowWillOrderOnScreen 1111 -#define EventWindowWillResignMain 1112 -#define EventWindowWillResize 1113 -#define EventWindowWillUnfocus 1114 -#define EventWindowWillUpdate 1115 -#define EventWindowWillUpdateAlpha 1116 -#define EventWindowWillUpdateCollectionBehavior 1117 -#define EventWindowWillUpdateCollectionProperties 1118 -#define EventWindowWillUpdateShadow 1119 -#define EventWindowWillUpdateTitle 1120 -#define EventWindowWillUpdateToolbar 1121 -#define EventWindowWillUpdateVisibility 1122 -#define EventWindowWillUseStandardFrame 1123 -#define EventMenuWillOpen 1124 -#define EventMenuDidOpen 1125 -#define EventMenuDidClose 1126 -#define EventMenuWillSendAction 1127 -#define EventMenuDidSendAction 1128 -#define EventMenuWillHighlightItem 1129 -#define EventMenuDidHighlightItem 1130 -#define EventMenuWillDisplayItem 1131 -#define EventMenuDidDisplayItem 1132 -#define EventMenuWillAddItem 1133 -#define EventMenuDidAddItem 1134 -#define EventMenuWillRemoveItem 1135 -#define EventMenuDidRemoveItem 1136 -#define EventMenuWillBeginTracking 1137 -#define EventMenuDidBeginTracking 1138 -#define EventMenuWillEndTracking 1139 -#define EventMenuDidEndTracking 1140 -#define EventMenuWillUpdate 1141 -#define EventMenuDidUpdate 1142 -#define EventMenuWillPopUp 1143 -#define EventMenuDidPopUp 1144 -#define EventMenuWillSendActionToItem 1145 -#define EventMenuDidSendActionToItem 1146 -#define EventWebViewDidStartProvisionalNavigation 1147 -#define EventWebViewDidReceiveServerRedirectForProvisionalNavigation 1148 -#define EventWebViewDidFinishNavigation 1149 -#define EventWebViewDidCommitNavigation 1150 -#define EventWindowFileDraggingEntered 1151 -#define EventWindowFileDraggingPerformed 1152 -#define EventWindowFileDraggingExited 1153 +#define EventApplicationDidBecomeActive 1032 +#define EventApplicationDidChangeBackingProperties 1033 +#define EventApplicationDidChangeEffectiveAppearance 1034 +#define EventApplicationDidChangeIcon 1035 +#define EventApplicationDidChangeOcclusionState 1036 +#define EventApplicationDidChangeScreenParameters 1037 +#define EventApplicationDidChangeStatusBarFrame 1038 +#define EventApplicationDidChangeStatusBarOrientation 1039 +#define EventApplicationDidFinishLaunching 1040 +#define EventApplicationDidHide 1041 +#define EventApplicationDidResignActiveNotification 1042 +#define EventApplicationDidUnhide 1043 +#define EventApplicationDidUpdate 1044 +#define EventApplicationWillBecomeActive 1045 +#define EventApplicationWillFinishLaunching 1046 +#define EventApplicationWillHide 1047 +#define EventApplicationWillResignActive 1048 +#define EventApplicationWillTerminate 1049 +#define EventApplicationWillUnhide 1050 +#define EventApplicationWillUpdate 1051 +#define EventApplicationDidChangeTheme 1052 +#define EventApplicationShouldHandleReopen 1053 +#define EventWindowDidBecomeKey 1054 +#define EventWindowDidBecomeMain 1055 +#define EventWindowDidBeginSheet 1056 +#define EventWindowDidChangeAlpha 1057 +#define EventWindowDidChangeBackingLocation 1058 +#define EventWindowDidChangeBackingProperties 1059 +#define EventWindowDidChangeCollectionBehavior 1060 +#define EventWindowDidChangeEffectiveAppearance 1061 +#define EventWindowDidChangeOcclusionState 1062 +#define EventWindowDidChangeOrderingMode 1063 +#define EventWindowDidChangeScreen 1064 +#define EventWindowDidChangeScreenParameters 1065 +#define EventWindowDidChangeScreenProfile 1066 +#define EventWindowDidChangeScreenSpace 1067 +#define EventWindowDidChangeScreenSpaceProperties 1068 +#define EventWindowDidChangeSharingType 1069 +#define EventWindowDidChangeSpace 1070 +#define EventWindowDidChangeSpaceOrderingMode 1071 +#define EventWindowDidChangeTitle 1072 +#define EventWindowDidChangeToolbar 1073 +#define EventWindowDidChangeVisibility 1074 +#define EventWindowDidDeminiaturize 1075 +#define EventWindowDidEndSheet 1076 +#define EventWindowDidEnterFullScreen 1077 +#define EventWindowDidEnterVersionBrowser 1078 +#define EventWindowDidExitFullScreen 1079 +#define EventWindowDidExitVersionBrowser 1080 +#define EventWindowDidExpose 1081 +#define EventWindowDidFocus 1082 +#define EventWindowDidMiniaturize 1083 +#define EventWindowDidMove 1084 +#define EventWindowDidOrderOffScreen 1085 +#define EventWindowDidOrderOnScreen 1086 +#define EventWindowDidResignKey 1087 +#define EventWindowDidResignMain 1088 +#define EventWindowDidResize 1089 +#define EventWindowDidUpdate 1090 +#define EventWindowDidUpdateAlpha 1091 +#define EventWindowDidUpdateCollectionBehavior 1092 +#define EventWindowDidUpdateCollectionProperties 1093 +#define EventWindowDidUpdateShadow 1094 +#define EventWindowDidUpdateTitle 1095 +#define EventWindowDidUpdateToolbar 1096 +#define EventWindowDidUpdateVisibility 1097 +#define EventWindowShouldClose 1098 +#define EventWindowWillBecomeKey 1099 +#define EventWindowWillBecomeMain 1100 +#define EventWindowWillBeginSheet 1101 +#define EventWindowWillChangeOrderingMode 1102 +#define EventWindowWillClose 1103 +#define EventWindowWillDeminiaturize 1104 +#define EventWindowWillEnterFullScreen 1105 +#define EventWindowWillEnterVersionBrowser 1106 +#define EventWindowWillExitFullScreen 1107 +#define EventWindowWillExitVersionBrowser 1108 +#define EventWindowWillFocus 1109 +#define EventWindowWillMiniaturize 1110 +#define EventWindowWillMove 1111 +#define EventWindowWillOrderOffScreen 1112 +#define EventWindowWillOrderOnScreen 1113 +#define EventWindowWillResignMain 1114 +#define EventWindowWillResize 1115 +#define EventWindowWillUnfocus 1116 +#define EventWindowWillUpdate 1117 +#define EventWindowWillUpdateAlpha 1118 +#define EventWindowWillUpdateCollectionBehavior 1119 +#define EventWindowWillUpdateCollectionProperties 1120 +#define EventWindowWillUpdateShadow 1121 +#define EventWindowWillUpdateTitle 1122 +#define EventWindowWillUpdateToolbar 1123 +#define EventWindowWillUpdateVisibility 1124 +#define EventWindowWillUseStandardFrame 1125 +#define EventMenuWillOpen 1126 +#define EventMenuDidOpen 1127 +#define EventMenuDidClose 1128 +#define EventMenuWillSendAction 1129 +#define EventMenuDidSendAction 1130 +#define EventMenuWillHighlightItem 1131 +#define EventMenuDidHighlightItem 1132 +#define EventMenuWillDisplayItem 1133 +#define EventMenuDidDisplayItem 1134 +#define EventMenuWillAddItem 1135 +#define EventMenuDidAddItem 1136 +#define EventMenuWillRemoveItem 1137 +#define EventMenuDidRemoveItem 1138 +#define EventMenuWillBeginTracking 1139 +#define EventMenuDidBeginTracking 1140 +#define EventMenuWillEndTracking 1141 +#define EventMenuDidEndTracking 1142 +#define EventMenuWillUpdate 1143 +#define EventMenuDidUpdate 1144 +#define EventMenuWillPopUp 1145 +#define EventMenuDidPopUp 1146 +#define EventMenuWillSendActionToItem 1147 +#define EventMenuDidSendActionToItem 1148 +#define EventWebViewDidStartProvisionalNavigation 1149 +#define EventWebViewDidReceiveServerRedirectForProvisionalNavigation 1150 +#define EventWebViewDidFinishNavigation 1151 +#define EventWebViewDidCommitNavigation 1152 +#define EventWindowFileDraggingEntered 1153 +#define EventWindowFileDraggingPerformed 1154 +#define EventWindowFileDraggingExited 1155 -#define MAX_EVENTS 1154 +#define MAX_EVENTS 1156 #endif \ No newline at end of file diff --git a/v3/pkg/events/events_linux.h b/v3/pkg/events/events_linux.h index 21b6f32ee..3b0df0366 100644 --- a/v3/pkg/events/events_linux.h +++ b/v3/pkg/events/events_linux.h @@ -9,11 +9,13 @@ extern void processWindowEvent(unsigned int, unsigned int); #define EventSystemThemeChanged 1024 #define EventWindowLoadChanged 1025 #define EventWindowDeleteEvent 1026 -#define EventWindowFocusIn 1027 -#define EventWindowFocusOut 1028 -#define EventApplicationStartup 1029 +#define EventWindowDidMove 1027 +#define EventWindowDidResize 1028 +#define EventWindowFocusIn 1029 +#define EventWindowFocusOut 1030 +#define EventApplicationStartup 1031 -#define MAX_EVENTS 1030 +#define MAX_EVENTS 1032 #endif \ No newline at end of file