Struct glow_glyph::ab_glyph::OutlinedGlyph [−]
pub struct OutlinedGlyph { /* fields omitted */ }
Expand description
A glyph that has been outlined at a scale & position.
Implementations
impl OutlinedGlyph
impl OutlinedGlyph
pub fn new(
glyph: Glyph,
outline: Outline,
scale_factor: PxScaleFactor
) -> OutlinedGlyph
pub fn new(
glyph: Glyph,
outline: Outline,
scale_factor: PxScaleFactor
) -> OutlinedGlyph
Constructs an OutlinedGlyph
from the source Glyph
, pixel bounds
& relatively positioned outline curves.
Draw this glyph outline using a pixel & coverage handling function.
The callback will be called for each (x, y)
pixel coordinate inside the bounds
with a coverage value in the range [0.0, 1.0]
indicating how much the glyph covered
that pixel.
Trait Implementations
impl AsRef<Glyph> for OutlinedGlyph
impl AsRef<Glyph> for OutlinedGlyph
impl Clone for OutlinedGlyph
impl Clone for OutlinedGlyph
pub fn clone(&self) -> OutlinedGlyph
pub fn clone(&self) -> OutlinedGlyph
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutlinedGlyph
impl Send for OutlinedGlyph
impl Sync for OutlinedGlyph
impl Unpin for OutlinedGlyph
impl UnwindSafe for OutlinedGlyph
Blanket Implementations
Mutably borrows from an owned value. Read more