tao@0.14.0
Ce contenu n’est pas encore disponible dans votre langue.
- Implement “always on bottom” as contrary to “always on top”.
- Fix calling android functions when package name contained escaped underscore.
- Add
Window::set_content_protection
for macOS and Windows. -
- Add DeviceEventFilter on Windows.
- Breaking: On Windows, device events are now ignored for unfocused windows by default, use
EventLoopWindowTarget::set_device_event_filter
to set the filter level. - 5bbd4f8f Add DeviceEventFilter on Windows (#465) on 2022-08-17
- Fix system tray creation after event loop starts on macOS.
- Fix resize doesn’t work when calling with resizable. Also add platform specific note to
set_resizable
. On Linux, most size methods like maximized are async and do not work well with calling sequentailly. For setting inner or outer size, you don’t need to set resizable to true before it. It can resize no matter what. But if you insist to do so, it has a100, 100
minimum limitation somehow. For maximizing, it requires resizable is true. If you really want to set resizable to false after it. You might need a mechanism to check the window is really maximized. - Add
Window::is_focused
. - On Linux, fix global shortcut are never triggered when a Lock key is ON, eg. NumLock, CapsLock.
- Disables the global shortcut manager on wayland as its X11-specific.
- Added
SystemTrayExtMacOS::set_title
toSystemTray
andSystemTrayBuilderExtMacOS::with_title
to set the tray icon title on MacOS - Update
windows-rs
to the latest 0.39.0 release.
The alloc
feature has been removed, which means it no longer accepts Rust String
or &str
parameters and implicitly converts them to PWSTR
or PSTR
.
For string literals, that feature was replaced with s!()
and w!()
macros which null terminate the string literal at compile time and convert to UTF-16 if necessary. The s!()
macro is fine, however the w!()
macro uses HSTRING
types from WinRT for maximum compatibility with WinRT types. Since Tao only uses Win32 APIs, this change relies on util::encode_wide
to convert to a Vec<u16>
instead.
© 2024 Tauri Contributors. CC-BY / MIT