pub struct GlyphStroke {
pub width: f32,
pub cap: Cap,
pub join: Join,
pub miter_limit: f32,
}Expand description
GlyphStroke describes an outline applied before rasterizing a glyph.
It is equivalent to valo_geometry::Stroke without a dash pattern.
Fields§
§width: f32width is the full stroke width in raster pixels.
cap: Capcap controls the ends of open outline contours.
join: Joinjoin controls how consecutive outline segments meet.
miter_limit: f32miter_limit is the maximum miter length divided by half the stroke width.
Trait Implementations§
Source§impl Clone for GlyphStroke
impl Clone for GlyphStroke
Source§fn clone(&self) -> GlyphStroke
fn clone(&self) -> GlyphStroke
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 moreimpl Copy for GlyphStroke
Source§impl Debug for GlyphStroke
impl Debug for GlyphStroke
Source§impl PartialEq for GlyphStroke
impl PartialEq for GlyphStroke
impl StructuralPartialEq for GlyphStroke
Auto Trait Implementations§
impl Freeze for GlyphStroke
impl RefUnwindSafe for GlyphStroke
impl Send for GlyphStroke
impl Sync for GlyphStroke
impl Unpin for GlyphStroke
impl UnsafeUnpin for GlyphStroke
impl UnwindSafe for GlyphStroke
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