pub struct RawCoreGraphicsRaster {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
pub is_bgra: bool,
pub bearing_x: f32,
pub bearing_y: f32,
pub advance_width: f32,
}Expand description
Raw raster image payload emitted by the native CoreGraphics bridge.
Fields§
§width: u32Raster image width in pixels.
height: u32Raster image height in pixels.
pixels: Vec<u8>Pixel buffer data.
is_bgra: boolWhether pixel buffer is BGRA8 (typical for Apple CoreGraphics) vs RGBA8.
bearing_x: f32Horizontal bearing in layout points.
bearing_y: f32Vertical bearing in layout points.
advance_width: f32Advance width in layout points.
Trait Implementations§
Source§impl Clone for RawCoreGraphicsRaster
impl Clone for RawCoreGraphicsRaster
Source§impl Debug for RawCoreGraphicsRaster
impl Debug for RawCoreGraphicsRaster
Source§impl PartialEq for RawCoreGraphicsRaster
impl PartialEq for RawCoreGraphicsRaster
impl StructuralPartialEq for RawCoreGraphicsRaster
Auto Trait Implementations§
impl Freeze for RawCoreGraphicsRaster
impl RefUnwindSafe for RawCoreGraphicsRaster
impl Send for RawCoreGraphicsRaster
impl Sync for RawCoreGraphicsRaster
impl Unpin for RawCoreGraphicsRaster
impl UnsafeUnpin for RawCoreGraphicsRaster
impl UnwindSafe for RawCoreGraphicsRaster
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