pub enum ClipShape {
Circle,
Capsule,
Ellipse,
RoundedRect(f64),
CircularRoundedRect(f64),
}Expand description
The shapes clipShape can take, as values rather than types.
A corner radius belongs to the rounded ones and nothing else, which an enum says and a set of parallel methods does not.
Variants§
Circle
Capsule
Ellipse
RoundedRect(f64)
RoundedRectangle(cornerRadius:), whose corner is one continuous
curve — leaving the style out in Swift means .continuous.
CircularRoundedRect(f64)
The same with style: .circular, whose corner is a quarter circle.
This is the one that has to be asked for; measured, RoundedRect
above and style: .continuous build the same value.
Trait Implementations§
Source§impl ClipShapeArg for ClipShape
impl ClipShapeArg for ClipShape
Source§fn clip_shape(self, view: View) -> View
fn clip_shape(self, view: View) -> View
Clip
view to this shape.impl Copy for ClipShape
impl StructuralPartialEq for ClipShape
Auto Trait Implementations§
impl Freeze for ClipShape
impl RefUnwindSafe for ClipShape
impl Send for ClipShape
impl Sync for ClipShape
impl Unpin for ClipShape
impl UnsafeUnpin for ClipShape
impl UnwindSafe for ClipShape
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