pub struct CachedLcdText {
pub pixels: Arc<Vec<u8>>,
pub width: u32,
pub height: u32,
pub baseline_x_in_mask: f64,
pub baseline_y_in_mask: f64,
}Expand description
Result of rasterize_text_lcd_cached. Callers composite the mask
at (x - baseline_x_in_mask, y - baseline_y_in_mask) where (x, y)
is the target baseline position in local / screen coordinates.
Fields§
§pixels: Arc<Vec<u8>>3-byte-per-pixel coverage mask, Y-up (row 0 = bottom). Shared
Arc so GL backends can key a texture cache on its pointer
identity — one upload per unique raster result.
width: u32§height: u32§baseline_x_in_mask: f64Mask-local x of the glyph origin (= padding inset).
baseline_y_in_mask: f64Mask-local Y-up y of the glyph baseline.
Auto Trait Implementations§
impl Freeze for CachedLcdText
impl RefUnwindSafe for CachedLcdText
impl Send for CachedLcdText
impl Sync for CachedLcdText
impl Unpin for CachedLcdText
impl UnsafeUnpin for CachedLcdText
impl UnwindSafe for CachedLcdText
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more