pub struct CircularNotchedRectangle {
pub inverted: bool,
}Expand description
A rectangle with a smooth circular notch.
See also:
CircleBorder, a [ShapeBorder] that describes a circle.
Fields§
§inverted: boolIf inverted is true, the notch is placed at the bottom of the
rectangle.
Implementations§
Source§impl CircularNotchedRectangle
impl CircularNotchedRectangle
Sourcepub fn new() -> CircularNotchedRectangle
pub fn new() -> CircularNotchedRectangle
Creates a CircularNotchedRectangle.
The same object can be used to create multiple shapes.
Sourcepub fn inverted(self, inverted: bool) -> CircularNotchedRectangle
pub fn inverted(self, inverted: bool) -> CircularNotchedRectangle
Dart CircularNotchedRectangle(inverted:).
Trait Implementations§
Source§impl Clone for CircularNotchedRectangle
impl Clone for CircularNotchedRectangle
Source§fn clone(&self) -> CircularNotchedRectangle
fn clone(&self) -> CircularNotchedRectangle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CircularNotchedRectangle
Source§impl Debug for CircularNotchedRectangle
impl Debug for CircularNotchedRectangle
Source§impl Default for CircularNotchedRectangle
impl Default for CircularNotchedRectangle
Source§fn default() -> CircularNotchedRectangle
fn default() -> CircularNotchedRectangle
Returns the “default value” for a type. Read more
Source§impl NotchedShape for CircularNotchedRectangle
impl NotchedShape for CircularNotchedRectangle
Source§fn get_outer_path(&self, host: Rect, guest: Option<Rect>) -> Path
fn get_outer_path(&self, host: Rect, guest: Option<Rect>) -> Path
Creates a Path that describes a rectangle with a smooth circular notch.
host is the bounding box for the returned shape. Conceptually this is
the rectangle to which the notch will be applied.
guest is the bounding box of a circle that the notch accommodates. All
points in the circle bounded by guest will be outside of the returned
path.
The notch is curve that smoothly connects the host’s top edge and the guest circle.
Auto Trait Implementations§
impl Forget for CircularNotchedRectangle
impl Freeze for CircularNotchedRectangle
impl Move for CircularNotchedRectangle
impl RefUnwindSafe for CircularNotchedRectangle
impl Send for CircularNotchedRectangle
impl Sync for CircularNotchedRectangle
impl Unpin for CircularNotchedRectangle
impl UnsafeUnpin for CircularNotchedRectangle
impl UnwindSafe for CircularNotchedRectangle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more