pub struct Font {
pub font: *mut nSDL_Font,
}Fields§
§font: *mut nSDL_FontImplementations§
Source§impl Font
impl Font
pub fn new(font: FontOptions, r: u8, g: u8, b: u8) -> Self
pub fn draw(&self, surface: *mut SDL_Surface, msg: &str, x: i32, y: i32)
pub fn get_width(&self, msg: &str) -> i32
pub fn get_height(&self, msg: &str) -> i32
pub fn monospaced(&self, monospaced: bool)
pub fn spacing(&self, horizontal: i32, vertical: i32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Font
impl RefUnwindSafe for Font
impl !Send for Font
impl !Sync for Font
impl Unpin for Font
impl UnwindSafe for Font
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