Skip to main content

NotchedShape

Trait NotchedShape 

Source
pub trait NotchedShape: Debug {
    // Required method
    fn get_outer_path(&self, host: Rect, guest: Option<Rect>) -> Path;
}
Expand description

A shape with a notch in its outline.

Typically used as the outline of a ‘host’ widget to make a notch that accommodates a ‘guest’ widget. e.g the BottomAppBar may have a notch to accommodate the FloatingActionButton.

See also:

Required Methods§

Source

fn get_outer_path(&self, host: Rect, guest: Option<Rect>) -> Path

Creates a Path that describes the outline of the shape.

The host is the bounding rectangle of the shape.

The guest is the bounding rectangle of the shape for which a notch will be made. It is null when there is no guest.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§