Skip to content

Commit 8c0d073

Browse files
authored
feat(core): add run_iteration, parent_window and owner_window APIs, closes #1872 (#1874)
1 parent 7471417 commit 8c0d073

11 files changed

Lines changed: 342 additions & 167 deletions

File tree

.changes/run-iteration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Adds `run_iteration` API to the `App` and return the app instance on the `build` method of the `Builder`. The `run_iteration` method runs the window event loop step by step, allowing Tauri to be run along other applications.

.changes/runtime-run-iteration.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-runtime": patch
3+
"tauri-runtime-wry": patch
4+
---
5+
6+
Adds `fn run_iteration` (macOS and Windows only) to the Runtime trait.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-runtime": patch
3+
"tauri-runtime-wry": patch
4+
---
5+
6+
Adds `parent_window` and `owner_window` setters to the `WindowBuilder` (Windows only).

core/tauri-runtime-wry/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ infer = "0.4"
2020

2121
[target."cfg(windows)".dependencies]
2222
ico = "0.1"
23+
winapi = "0.3"
2324

2425
[features]
2526
dox = [ "wry/dox" ]

0 commit comments

Comments
 (0)