Skip to main content

set_embed_corner_radius

Function set_embed_corner_radius 

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

Set corner radius for an embedded surface.

This allows the parent to specify rounded corners that match its own UI. Each corner can have a different radius. Values are in logical pixels. A value of 0 means no rounding for that corner.

ยงPlatform-specific

  • COSMIC/Wayland: Uses zcosmic_surface_embed_manager_v1 protocol.
  • Other platforms: No-op.