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:
- [
ShapeBorder], which defines a shaped border without a dynamic notch. AutomaticNotchedShape, an adapter from [ShapeBorder] toNotchedShape.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".