pub struct GlyphShadowParams {
pub glyph: RenderGlyphParams,
pub sigma_quarters: u16,
}Expand description
vue-native fork: identifies a glyph’s text-shadow coverage, blurred, in the sprite atlas.
Fields§
§glyph: RenderGlyphParamsThe glyph, rasterized without subpixel antialiasing.
sigma_quarters: u16The blur’s standard deviation in quarters of a device pixel.
Implementations§
Source§impl GlyphShadowParams
impl GlyphShadowParams
Sourcepub fn quantize_sigma(sigma: f32) -> u16
pub fn quantize_sigma(sigma: f32) -> u16
Quantizes a standard deviation in device pixels: finely where a step would show, by whole pixels above, so an animated blur radius adds few atlas tiles.
Trait Implementations§
Source§impl Clone for GlyphShadowParams
impl Clone for GlyphShadowParams
Source§impl Debug for GlyphShadowParams
impl Debug for GlyphShadowParams
impl Eq for GlyphShadowParams
Source§impl Hash for GlyphShadowParams
impl Hash for GlyphShadowParams
Source§impl PartialEq for GlyphShadowParams
impl PartialEq for GlyphShadowParams
impl StructuralPartialEq for GlyphShadowParams
Auto Trait Implementations§
impl Forget for GlyphShadowParams
impl Freeze for GlyphShadowParams
impl Move for GlyphShadowParams
impl RefUnwindSafe for GlyphShadowParams
impl Send for GlyphShadowParams
impl Sync for GlyphShadowParams
impl Unpin for GlyphShadowParams
impl UnsafeUnpin for GlyphShadowParams
impl UnwindSafe for GlyphShadowParams
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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