pub struct RasterizeCustomGlyphRequest {
pub id: CustomGlyphId,
pub width: u16,
pub height: u16,
pub x_bin: SubpixelBin,
pub y_bin: SubpixelBin,
pub scale: f32,
}Expand description
A request to rasterize a custom glyph
Fields§
§id: CustomGlyphIdThe unique identifier of the glyph
width: u16The width of the glyph in physical pixels
height: u16The height of the glyph in physical pixels
x_bin: SubpixelBinBinning of fractional X offset
If CustomGlyph::snap_to_physical_pixel was set to true, then this
will always be Zero.
y_bin: SubpixelBinBinning of fractional Y offset
If CustomGlyph::snap_to_physical_pixel was set to true, then this
will always be Zero.
scale: f32The scaling factor applied to the text area (Note that width and
height are already scaled by this factor.)
Trait Implementations§
Source§impl Clone for RasterizeCustomGlyphRequest
impl Clone for RasterizeCustomGlyphRequest
Source§fn clone(&self) -> RasterizeCustomGlyphRequest
fn clone(&self) -> RasterizeCustomGlyphRequest
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RasterizeCustomGlyphRequest
impl Debug for RasterizeCustomGlyphRequest
impl Copy for RasterizeCustomGlyphRequest
impl StructuralPartialEq for RasterizeCustomGlyphRequest
Auto Trait Implementations§
impl Freeze for RasterizeCustomGlyphRequest
impl RefUnwindSafe for RasterizeCustomGlyphRequest
impl Send for RasterizeCustomGlyphRequest
impl Sync for RasterizeCustomGlyphRequest
impl Unpin for RasterizeCustomGlyphRequest
impl UnwindSafe for RasterizeCustomGlyphRequest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)