Travis McLane
c87489adf3
[v3] implement Window interface
2023-09-28 11:39:39 -05:00
Lea Anthony
7cdab16ba9
Add API docs. Do small refactors
2023-09-24 08:57:40 +10:00
Lea Anthony
af8ee6703e
[darwin] Support keybindings
2023-09-20 21:34:50 +10:00
Lea Anthony
793191a479
Initial key binding support
2023-09-17 20:48:30 +10:00
ALMAS
37b99b9cb8
Update webview_window.go ( #2912 )
2023-09-16 07:20:49 +10:00
Lea Anthony
bb3a0cc54f
Add WebviewWindow.IsFocused()
2023-09-13 08:57:20 +10:00
Travis McLane
2f7c6834d0
[v3 linux] use invokeSync
2023-09-11 17:12:57 -05:00
Lea Anthony
13be4a333f
Move to slog logger for application and log plugin
2023-08-10 22:04:13 +10:00
Lea Anthony
705239ad7d
[v3] Use WindowEvent
rather than WindowEventContext
2023-07-12 20:50:01 +10:00
Lea Anthony
dc865404a9
[v3] Initial hooks implementation
2023-07-12 20:31:13 +10:00
Lea Anthony
d6cfe4414d
[v3 Windows] Add WebviewWindow.Flash()
2023-07-11 20:10:18 +10:00
Lea Anthony
f0bf8cd827
[v3 windows] Refactor events + mappings. Fix app.Quit(). Make systray example work slightly better
2023-07-05 20:35:45 +10:00
Lea Anthony
5b6f6c1bff
[v3] Default context menu always shows in debug/dev
2023-06-28 18:47:39 +10:00
Lea Anthony
3fcac435b2
[v3] Support window events in JS. Fix ExecJS blocking issues.
2023-06-26 22:10:31 +10:00
Travis McLane
94e1ec91ad
Revert "Merge branch 'v3-alpha_linux' into v3-alpha"
...
This reverts commit b317efaf2c
, reversing
changes made to 29b9c5200f
.
2023-06-23 21:50:51 -05:00
Lea Anthony
c96cccab2e
[v3] Add Window AbsolutePosition/SetAbsolutePosition
2023-06-23 21:14:26 +10:00
Lea Anthony
45cfbe917e
[v3] Position/GetPosition -> RelativePosition/GetRelativePosition
2023-06-23 20:49:27 +10:00
Lea Anthony
76672facfe
[v3] Add window Enabled
method. Fix dialog attachment
2023-06-23 19:48:04 +10:00
Lea Anthony
b317efaf2c
Merge branch 'v3-alpha_linux' into v3-alpha
...
# Conflicts:
# v3/STATUS.md
# v3/examples/menu/main.go
# v3/go.mod
# v3/pkg/application/application.go
# v3/pkg/application/webview_window.go
2023-06-22 19:46:10 +10:00
Lea Anthony
4d2b4b4ee7
[v3] Update dev guide. Remove implLock.
2023-06-21 19:37:39 +10:00
Lea Anthony
ed27558011
[v3 windows] Add WebviewWindow.Print()
2023-06-18 17:13:07 +10:00
Lea Anthony
1537a002cc
[v3] Add ShouldClose
window method. Remove hideOnClose
flag.
2023-06-18 11:12:53 +10:00
Lea Anthony
01e2e46e0d
[v3 windows] Support frameless drag. Add /wails/flags
endpoint.
2023-06-15 19:08:08 +10:00
Lea Anthony
49e62aebe3
[v3 windows] Support frameless drag
2023-06-13 17:44:07 +10:00
Lea Anthony
6d786902eb
[v3] Add some common window events
2023-06-12 10:27:30 +10:00
Lea Anthony
6092730acc
[v3 windows] Support Close and take into account HideOnClose option
2023-06-03 15:23:10 +10:00
Lea Anthony
9b7626e59e
[v3 windows] Move icons to own package, systray dark mode icon, window.Focus()
,
2023-05-30 16:31:57 +08:00
Lea Anthony
f8f466ba7e
[v3 windows] Support irregular shaped windows. Centered option.
2023-05-30 16:31:54 +08:00
Lea Anthony
66bfcf0e36
[v3] Ensure impl calls from WebvieWindow are on the main thread. Support size.
2023-05-30 16:31:52 +08:00
Lea Anthony
4c04991d4d
[v3] Change WebviewWindow
options to be a value, not a pointer. Support Un/Fullscreen. Remove main thread switching. Use parent options instead of local variables.
2023-05-30 16:31:51 +08:00
Lea Anthony
d56bb59b72
[v3 Windows] Support application hide/show. Add WebviewWindow.IsVisible()
.
2023-05-30 16:31:50 +08:00
Lea Anthony
1f6217c0d8
[v3 Windows] Add Support for SetTitle, Center, Un/Minimise/Maximise, IsMin/Maximised, IsNormal, Show/Hide
2023-05-30 16:31:50 +08:00
Lea Anthony
17204bebd0
[v3 Breaking Change] Add NativeWindowHandle
method to WebviewWindow
.
2023-05-30 16:31:49 +08:00
Lea Anthony
f08ae2fc62
[v3] Update application.On
and window.On
to return functions that unregister the listener. WebviewWindow.onApplicationEvent
is a helper which will manage the unregistering for you on window destroy.
2023-05-30 16:31:48 +08:00
Lea Anthony
7c63cee9e8
[windows] Support AlwaysOnTop, EnableResize at runtime. Added Solid/Transparent/Translucent options.
2023-05-30 16:31:47 +08:00
Travis McLane
a9d834d715
[examples] update label on click
2023-05-10 09:10:03 -05:00
Lea Anthony
19e1e8b8a6
[v3 windows] Move icons to own package, systray dark mode icon, window.Focus()
,
2023-05-09 19:52:33 +10:00
Lea Anthony
42b1807c36
[v3 windows] Support irregular shaped windows. Centered option.
2023-05-06 20:22:28 +10:00
Lea Anthony
cf7b4e2458
[v3] Ensure impl calls from WebvieWindow are on the main thread. Support size.
2023-05-01 20:28:46 +10:00
Lea Anthony
dac281ac32
[v3] Change WebviewWindow
options to be a value, not a pointer. Support Un/Fullscreen. Remove main thread switching. Use parent options instead of local variables.
2023-05-01 18:20:28 +10:00
Lea Anthony
29a58086a3
[v3 Windows] Support application hide/show. Add WebviewWindow.IsVisible()
.
2023-05-01 11:34:06 +10:00
Lea Anthony
1e8fc29ee4
[v3 Windows] Add Support for SetTitle, Center, Un/Minimise/Maximise, IsMin/Maximised, IsNormal, Show/Hide
2023-04-30 20:55:51 +10:00
Lea Anthony
9a05b49e3d
[v3 Breaking Change] Add NativeWindowHandle
method to WebviewWindow
.
2023-04-30 10:17:03 +10:00
Lea Anthony
676787417f
[v3] Update application.On
and window.On
to return functions that unregister the listener. WebviewWindow.onApplicationEvent
is a helper which will manage the unregistering for you on window destroy.
2023-04-29 19:39:05 +10:00
Lea Anthony
7f3f51e36b
[windows] Support AlwaysOnTop, EnableResize at runtime. Added Solid/Transparent/Translucent options.
2023-04-28 21:11:49 +10:00
Travis McLane
fbe7d4de6b
Bugfix/remove miniaturize ( #2579 )
...
* remove duplicate 'minimize' from interface
already covered by 'minimise'
* [darwin] remove windowMiniaturize
duplicates the logic in windowMinimise
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-12 21:34:31 +10:00
Travis McLane
a7bf359930
update wml events to be parseable ( #2561 )
...
* update wml events to be parseable
* [v3] Rename `CustomEvent` to `WailsEvent` to prevent clashing with the standard JS `CustomEvent` object
---------
Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
2023-04-11 18:28:06 +10:00
Lea Anthony
424e4fc2e8
[v3] Add ability to get window by name
2023-04-07 19:47:01 +10:00
stffabi
0e614b0194
[v3] Centralize the AssetServer and move it to the application
2023-03-16 06:49:45 +01:00
Lea Anthony
045a830fbc
Add "DragAndDropEnabled" option for window
...
Add "FileDraggingExited" event
2023-02-15 18:56:52 +11:00
Lea Anthony
d86e11cef1
Fix bad merge
2023-02-12 13:36:58 +11:00
Lea Anthony
5dbda4aead
Feature: AssetServer Runtime ( #2335 )
...
* Tidy up runtime JS
* Initial implementation of runtime over http
* Update runtime deps. Fix test task.
* Support Clipboard.
Message Processor refactor.
* Add `Window.Screen()`
Clipboard `GetText` -> `Text`
* Support most dialogs
Better JS->Go object mapping
Implement Go->JS callback mechanism
Rename `window.runtime` -> `window.wails` to better reflect the Go API
* Support SaveFile dialog
* Remove go.work
* Tidy up
* Event->CustomEvent to prevent potential clash with native JS Event object
Support Eventing
* Support application calls
* Support logging
* Support named windows
Remove debug info
* Update v3 changes
2023-02-06 20:50:11 +11:00
Lea Anthony
293d730708
[v3] Updated runtime to take window id into consideration
...
[v3] Ported most of the window functions for JS
2023-01-26 20:43:26 +11:00
Lea Anthony
c34c761c5f
[v3] Fix crash when calling window.Show()
before application.Run()
2023-01-26 07:34:25 +11:00
Lea Anthony
81645190f0
merge exp branch
2023-01-18 21:42:49 +11:00