Struct kas_text::raster::Sprite [−][src]
Expand description
A rastered sprite
Fields
offset: (i32, i32)
Offset to be added to the glyph position
size: (u32, u32)
Size of the sprite in pixels
data: Vec<u8>
Grayscale image, row major order, length size.0 * size.1
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sprite
impl UnwindSafe for Sprite
Blanket Implementations
Mutably borrows from an owned value. Read more
Cast to integer, truncating Read more
Cast to the nearest integer Read more
Cast the floor to an integer Read more
Try converting to integer with truncation Read more
Try converting to the nearest integer Read more
Try converting the floor to an integer Read more
Try convert the ceiling to an integer Read more