Struct cgl_rs::graphics::text::FontCharacter
source · #[repr(C)]pub struct FontCharacter {
pub size: Vector2,
pub normalized_size: Vector2,
pub offset: Vector2,
pub normalized_offset: Vector2,
pub bearing: Vector2,
pub bearing_normalized: Vector2,
pub ch: c_char,
/* private fields */
}
Expand description
The Font Character struct contains all the information about a character in a font
Fields§
§size: Vector2
§normalized_size: Vector2
§offset: Vector2
§normalized_offset: Vector2
§bearing: Vector2
§bearing_normalized: Vector2
§ch: c_char
Trait Implementations§
source§impl Clone for FontCharacter
impl Clone for FontCharacter
source§fn clone(&self) -> FontCharacter
fn clone(&self) -> FontCharacter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for FontCharacter
Auto Trait Implementations§
impl RefUnwindSafe for FontCharacter
impl !Send for FontCharacter
impl !Sync for FontCharacter
impl Unpin for FontCharacter
impl UnwindSafe for FontCharacter
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