pub struct VectorData {
pub path: Option<Path>,
pub color: [u8; 4],
pub stroke: Option<StrokeInfo>,
pub bounds: Option<(u32, u32, u32, u32)>,
pub clip: Option<(f32, f32, f32, f32, bool)>,
pub blur: f32,
}Expand description
Vector graphics layer data
Fields§
§path: Option<Path>Path to draw
color: [u8; 4]Fill color (RGBA)
stroke: Option<StrokeInfo>Stroke information
bounds: Option<(u32, u32, u32, u32)>Bounding box
clip: Option<(f32, f32, f32, f32, bool)>Rectangular \clip / \iclip in render coordinates as
(x1, y1, x2, y2, inverse); None when the drawing is unclipped.
blur: f32Gaussian blur radius in screen pixels (the \blur value already scaled by
blur_scale = frame/PlayRes). 0.0 leaves the drawing sharp. Blur is
applied to the filled-and-stroked shape, then clipped — matching libass,
so soft \p glows (dust, sparkles, gradient banners) read correctly.
Auto Trait Implementations§
impl Freeze for VectorData
impl RefUnwindSafe for VectorData
impl Send for VectorData
impl Sync for VectorData
impl Unpin for VectorData
impl UnsafeUnpin for VectorData
impl UnwindSafe for VectorData
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more