pub struct RoundedRectGradient {
pub position: ColorPos,
pub width: f32,
pub height: f32,
pub corner_radius: f32,
pub stops: Vec<GradientStop>,
}Expand description
Rounded rectangle gradient in normalized coordinates (0-1).
position is the top-left corner of the rectangle. width and height define its size.
corner_radius is the radius for all corners.
Fields§
§position: ColorPosTop-left position of rounded rectangle.
width: f32Rectangle width in normalized units.
height: f32Rectangle height in normalized units.
corner_radius: f32Shared corner radius.
stops: Vec<GradientStop>Gradient color stops.
Trait Implementations§
Source§impl Clone for RoundedRectGradient
impl Clone for RoundedRectGradient
Source§fn clone(&self) -> RoundedRectGradient
fn clone(&self) -> RoundedRectGradient
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 moreSource§impl Debug for RoundedRectGradient
impl Debug for RoundedRectGradient
Source§impl PartialEq for RoundedRectGradient
impl PartialEq for RoundedRectGradient
impl StructuralPartialEq for RoundedRectGradient
Auto Trait Implementations§
impl Freeze for RoundedRectGradient
impl RefUnwindSafe for RoundedRectGradient
impl Send for RoundedRectGradient
impl Sync for RoundedRectGradient
impl Unpin for RoundedRectGradient
impl UnsafeUnpin for RoundedRectGradient
impl UnwindSafe for RoundedRectGradient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.