pub struct Stroke {
pub color: Property<Color>,
pub width: Property<Size>,
pub cap: Property<StrokeCap>,
pub join: Property<StrokeJoin>,
}Expand description
Describes the outline drawn around vector geometry.
Pax currently renders strokes centered on the underlying path. For open
geometry, cap controls how the stroke terminates at the start and end of
the path, while join controls how adjacent segments meet.
Fields§
§color: Property<Color>The stroke color, including alpha.
width: Property<Size>The stroke width.
The type is Size for consistency with the wider property system, but
current vector renderers interpret this value in pixels.
cap: Property<StrokeCap>The cap style used for exposed endpoints on open paths.
join: Property<StrokeJoin>The join style used where adjacent stroke segments meet.
Trait Implementations§
Source§impl CoercionRules for Stroke
impl CoercionRules for Stroke
Source§impl<'de> Deserialize<'de> for Stroke
impl<'de> Deserialize<'de> for Stroke
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HelperFunctions for Stroke
impl HelperFunctions for Stroke
Source§fn register_all_functions()
fn register_all_functions()
Registers all helper functions for this type.
Source§impl Interpolatable for Stroke
impl Interpolatable for Stroke
Source§fn interpolate(&self, other: &Self, t: f64) -> Self
fn interpolate(&self, other: &Self, t: f64) -> Self
Source§impl ToPaxValue for Stroke
impl ToPaxValue for Stroke
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for Stroke
impl RefUnwindSafe for Stroke
impl Send for Stroke
impl Sync for Stroke
impl Unpin for Stroke
impl UnsafeUnpin for Stroke
impl UnwindSafe for Stroke
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
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.