pub struct RustConsoleSprite { /* private fields */ }
Implementations§
Source§impl RustConsoleSprite
impl RustConsoleSprite
pub fn new(w: usize, h: usize) -> Result<RustConsoleSprite, Error>
pub fn from_path(path: &str) -> Result<RustConsoleSprite, Error>
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn set_glyph(&mut self, x: usize, y: usize, c: char)
pub fn set_color(&mut self, x: usize, y: usize, col: u16)
pub fn get_glyph(&self, x: usize, y: usize) -> char
pub fn get_color(&self, x: usize, y: usize) -> u16
pub fn sample_glyph(&self, x: f32, y: f32) -> char
pub fn sample_color(&self, x: f32, y: f32) -> u16
Auto Trait Implementations§
impl Freeze for RustConsoleSprite
impl RefUnwindSafe for RustConsoleSprite
impl Send for RustConsoleSprite
impl Sync for RustConsoleSprite
impl Unpin for RustConsoleSprite
impl UnwindSafe for RustConsoleSprite
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