pub struct Glyph {
pub ch: char,
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub page: Option<Rc<dyn Texture>>,
pub x_offset: i32,
pub y_offset: i32,
pub x_advance: i32,
/* private fields */
}
Expand description
Represents a single glyph in a bitmap font.
Fields
ch: char
This glyph’s ASCII character code.
x: i32
y: i32
width: i32
height: i32
page: Option<Rc<dyn Texture>>
The atlas that contains this glyph.
x_offset: i32
y_offset: i32
x_advance: i32
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Glyph
impl !Send for Glyph
impl !Sync for Glyph
impl Unpin for Glyph
impl !UnwindSafe for Glyph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.