Skip to main content

set_corner_radius

Function set_corner_radius 

Source
pub fn set_corner_radius<T>(
    id: Id,
    top_left: u32,
    top_right: u32,
    bottom_right: u32,
    bottom_left: u32,
) -> Task<T>
Expand description

Sets the corner radius for the window using the COSMIC corner radius protocol.

Communicates corner radius hints to the compositor so it can draw proper blur outlines and apply rounded corners.

ยงPlatform-specific

  • COSMIC/Wayland: Uses layer_corner_radius_manager_v1 protocol.
  • Other platforms: No effect.