pub struct ResolvedStroke {
pub paint: Paint,
pub material: ResolvedMaterial,
pub opacity: Opacity,
pub width: Size,
pub cap: StrokeCap,
pub join: StrokeJoin,
}Expand description
Plain drawing values captured before entering a rendering backend. Backends never read live shared properties while recording a frame.
Fields§
§paint: Paint§material: ResolvedMaterial§opacity: Opacity§width: Size§cap: StrokeCap§join: StrokeJoinImplementations§
Source§impl ResolvedStroke
impl ResolvedStroke
Sourcepub fn width_pixels(&self) -> f64
pub fn width_pixels(&self) -> f64
Resolves a finite, positive pixel width, or zero for an invisible stroke.
Trait Implementations§
Source§impl Clone for ResolvedStroke
impl Clone for ResolvedStroke
Source§fn clone(&self) -> ResolvedStroke
fn clone(&self) -> ResolvedStroke
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 ResolvedStroke
impl Debug for ResolvedStroke
Source§impl PartialEq for ResolvedStroke
impl PartialEq for ResolvedStroke
impl StructuralPartialEq for ResolvedStroke
Auto Trait Implementations§
impl Freeze for ResolvedStroke
impl RefUnwindSafe for ResolvedStroke
impl Send for ResolvedStroke
impl Sync for ResolvedStroke
impl Unpin for ResolvedStroke
impl UnsafeUnpin for ResolvedStroke
impl UnwindSafe for ResolvedStroke
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.