Struct i_slint_core::graphics::BitmapGlyph
source · #[repr(C)]pub struct BitmapGlyph {
pub x: i16,
pub y: i16,
pub width: i16,
pub height: i16,
pub x_advance: i16,
pub data: Slice<'static, u8>,
}
Expand description
A pre-rendered glyph with the alpha map and associated metrics
Fields§
§x: i16
The starting x-coordinate for the glyph, relative to the base line
y: i16
The starting y-coordinate for the glyph, relative to the base line
width: i16
The width of the glyph in pixels
height: i16
The height of the glyph in pixels
x_advance: i16
The horizontal distance to the next glyph
data: Slice<'static, u8>
The 8-bit alpha map that’s to be blended with the current text color
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BitmapGlyph
impl RefUnwindSafe for BitmapGlyph
impl Send for BitmapGlyph
impl Sync for BitmapGlyph
impl Unpin for BitmapGlyph
impl UnwindSafe for BitmapGlyph
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