Struct i_slint_core::graphics::BitmapGlyphs
source · #[repr(C)]pub struct BitmapGlyphs {
pub pixel_size: i16,
pub glyph_data: Slice<'static, BitmapGlyph>,
}Expand description
A set of pre-rendered bitmap glyphs at a fixed pixel size
Fields§
§pixel_size: i16The font size in pixels at which the glyphs were pre-rendered. The boundaries of glyphs may exceed this size, if the font designer has chosen so. This is only used for matching.
glyph_data: Slice<'static, BitmapGlyph>The data of the pre-rendered glyphs
Implementations§
source§impl BitmapGlyphs
impl BitmapGlyphs
sourcepub fn pixel_size(&self) -> Length<i16, PhysicalPx>
pub fn pixel_size(&self) -> Length<i16, PhysicalPx>
Returns the size of the pre-rendered font in pixels.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for BitmapGlyphs
impl Send for BitmapGlyphs
impl Sync for BitmapGlyphs
impl Unpin for BitmapGlyphs
impl UnwindSafe for BitmapGlyphs
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