mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
refactor: refactor parent APIs on WindowBuilder (#8622)
* refactor: refactor parent APIs on `WindowBuilder` closes #8587 #1643 * fix build * clippy * support parent in JS and config * change files * fix build * clippy * fix doctests * fix linux build * fix doctests * update docs * fix api, update example to use JS API * fix merge * lint * fix tests on windows --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
5
.changes/api-window-parent.md
Normal file
5
.changes/api-window-parent.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@tauri-apps/api': 'patch:feat'
|
||||
---
|
||||
|
||||
Add `parent` option when creating a window.
|
||||
5
.changes/tauri-parent-owner.md
Normal file
5
.changes/tauri-parent-owner.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri': 'patch:feat'
|
||||
---
|
||||
|
||||
Add `WindowBuilder::parent` which is a convenient wrapper around parent functionality for Windows, Linux and macOS. Also added `WindowBuilder::owner` on Windows only. Also added `WindowBuilder::transient_for` and `WindowBuilder::transient_for_raw` on Linux only.
|
||||
5
.changes/tauri-remove-parent-window.md
Normal file
5
.changes/tauri-remove-parent-window.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri': 'patch:breaking'
|
||||
---
|
||||
|
||||
Renamed `WindowBuilder::owner_window` to `WindowBuilder::owner_raw` and `WindowBuilder::parent_window` to `WindowBuilder::parent_raw`.
|
||||
6
.changes/tauri-runtime-remove-parent-window.md
Normal file
6
.changes/tauri-runtime-remove-parent-window.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'tauri-runtime': 'patch'
|
||||
'tauri-runtime-wry': 'patch'
|
||||
---
|
||||
|
||||
Added `WindowBuilder::transient_for` and Renamed `WindowBuilder::owner_window` to `WindowBuilder::owner` and `WindowBuilder::parent_window` to `WindowBuilder::parent`.
|
||||
5
.changes/tauri-utils-config-parent.md
Normal file
5
.changes/tauri-utils-config-parent.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri-utils': 'patch:feat'
|
||||
---
|
||||
|
||||
Add `parent` option for window config.
|
||||
5
.changes/tauri-window-builder-from-config.md
Normal file
5
.changes/tauri-window-builder-from-config.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'tauri': 'patch:breaking'
|
||||
---
|
||||
|
||||
Changed `WindowBuilder::from_config` to return a `Result<Self>`.
|
||||
6
.changes/tauri-window-builder-with-config-ref.md
Normal file
6
.changes/tauri-window-builder-with-config-ref.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'tauri-runtime': 'patch:breaking'
|
||||
'tauri-runtime-wry': 'patch:breaking'
|
||||
---
|
||||
|
||||
Changed `WindowBuilder::with_config` to take a reference to a `WindowConfig` instead of an owned value.
|
||||
Reference in New Issue
Block a user