pub fn animated_resize<T>(
id: Id,
width: u32,
height: u32,
duration_ms: u32,
) -> Task<T>Expand description
Resizes the window with animation using the COSMIC animated resize protocol.
This requests the compositor to smoothly animate the window from its current size to the target size over the specified duration.
ยงPlatform-specific
- COSMIC/Wayland: Uses
zcosmic_animated_resize_v1protocol. - Other platforms: Falls back to instant resize.