pub struct Rectangle<'a> {
pub background: Fill<'a>,
pub border: Border<'a>,
pub radius: BorderRadius,
pub opacity: f32,
}Fields§
§background: Fill<'a>§border: Border<'a>§radius: BorderRadius§opacity: f32Implementations§
Source§impl<'a> Rectangle<'a>
impl<'a> Rectangle<'a>
Sourcepub fn background(self, value: impl Into<Fill<'a>>) -> Self
pub fn background(self, value: impl Into<Fill<'a>>) -> Self
sets Self::background
Sourcepub fn border(self, value: Border<'a>) -> Self
pub fn border(self, value: Border<'a>) -> Self
sets Self::border
Sourcepub fn radius(self, value: BorderRadius) -> Self
pub fn radius(self, value: BorderRadius) -> Self
sets Self::radius
Sourcepub fn opacity(self, value: f32) -> Self
pub fn opacity(self, value: f32) -> Self
sets Self::opacity
Source§impl Rectangle<'_>
impl Rectangle<'_>
Sourcepub fn paint<C: HasFrameStore + Paint<FrameRectangle, Scalar = f32>>(
self,
area: LogicalRect,
context: &mut C,
)
pub fn paint<C: HasFrameStore + Paint<FrameRectangle, Scalar = f32>>( self, area: LogicalRect, context: &mut C, )
stores borrowed fills in the context and paints the result
Trait Implementations§
impl<'a> Copy for Rectangle<'a>
impl<'a> StructuralPartialEq for Rectangle<'a>
Auto Trait Implementations§
impl<'a> Forget for Rectangle<'a>
impl<'a> Freeze for Rectangle<'a>where
&'a [GradientStop]: Freeze,
impl<'a> Move for Rectangle<'a>
impl<'a> RefUnwindSafe for Rectangle<'a>
impl<'a> Send for Rectangle<'a>where
&'a [GradientStop]: Send,
impl<'a> Sync for Rectangle<'a>
impl<'a> Unpin for Rectangle<'a>where
&'a [GradientStop]: Unpin,
impl<'a> UnsafeUnpin for Rectangle<'a>where
&'a [GradientStop]: UnsafeUnpin,
impl<'a> UnwindSafe for Rectangle<'a>where
&'a [GradientStop]: UnwindSafe,
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