feat(window): add physical coordinate methods to WindowBuilder (fix #5228)#14698
feat(window): add physical coordinate methods to WindowBuilder (fix #5228)#14698majiayu000 wants to merge 1 commit intotauri-apps:devfrom
Conversation
Package Changes Through 08eb729There are 7 changes which include tauri-utils with patch, tauri-build with patch, tauri-cli with patch, @tauri-apps/cli with patch, tauri-runtime-wry with minor, tauri with minor, tauri-runtime with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
I really enjoyed reading this PR — the BSD changes and your explanations were thoughtful, clear, and honestly a pleasure to go through. It made me curious about the person behind the code, so I wanted to say hi 🙂 |
…auri-apps#5228) Add methods to set window position and size in physical coordinates: - `position_physical(x: i32, y: i32)` - `inner_size_physical(width: u32, height: u32)` - `min_inner_size_physical(min_width: u32, min_height: u32)` - `max_inner_size_physical(max_width: u32, max_height: u32)` This allows positioning windows on specific monitors using physical pixels. Signed-off-by: majiayu000 <1835304752@qq.com>
51dd9bd to
08eb729
Compare
|
@meow2149 Thanks for your kind words! I really appreciate it 😊 I've followed you back — looking forward to seeing what you're working on too! |
Summary
Add methods to set window position and size in physical coordinates:
position_physical(x: i32, y: i32)inner_size_physical(width: u32, height: u32)min_inner_size_physical(min_width: u32, min_height: u32)max_inner_size_physical(max_width: u32, max_height: u32)Usage
Fixes #5228