pub struct RustConsole { /* private fields */ }Implementations§
Source§impl RustConsole
impl RustConsole
pub const FG_BLACK: u16 = 0x0000
pub const FG_DARK_BLUE: u16 = 0x0001
pub const FG_DARK_GREEN: u16 = 0x0002
pub const FG_DARK_CYAN: u16 = 0x0003
pub const FG_DARK_RED: u16 = 0x0004
pub const FG_DARK_MAGENTA: u16 = 0x0005
pub const FG_DARK_YELLOW: u16 = 0x0006
pub const FG_GREY: u16 = 0x0007
pub const FG_DARK_GREY: u16 = 0x0008
pub const FG_BLUE: u16 = 0x0009
pub const FG_GREEN: u16 = 0x000a
pub const FG_CYAN: u16 = 0x000b
pub const FG_RED: u16 = 0x000c
pub const FG_MAGENTA: u16 = 0x000d
pub const FG_YELLOW: u16 = 0x000e
pub const FG_WHITE: u16 = 0x000f
pub const BG_BLACK: u16 = 0x0000
pub const BG_DARK_BLUE: u16 = 0x0010
pub const BG_DARK_GREEN: u16 = 0x0020
pub const BG_DARK_CYAN: u16 = 0x0030
pub const BG_DARK_RED: u16 = 0x0040
pub const BG_DARK_MAGENTA: u16 = 0x0050
pub const BG_DARK_YELLOW: u16 = 0x0060
pub const BG_GREY: u16 = 0x0070
pub const BG_DARK_GREY: u16 = 0x0080
pub const BG_BLUE: u16 = 0x0090
pub const BG_GREEN: u16 = 0x00a0
pub const BG_CYAN: u16 = 0x00b0
pub const BG_RED: u16 = 0x00c0
pub const BG_MAGENTA: u16 = 0x00d0
pub const BG_YELLOW: u16 = 0x00e0
pub const BG_WHITE: u16 = 0x00f0
pub const PIXEL_SOLID: char = '\u{2588}'
pub const PIXEL_THREEQUARTER: char = '\u{2593}'
pub const PIXEL_HALF: char = '\u{2592}'
pub const PIXEL_QUARTER: char = '\u{2591}'
pub const VK_UP: u32 = 38u32
pub const VK_DOWN: u32 = 40u32
pub const VK_LEFT: u32 = 37u32
pub const VK_RIGHT: u32 = 39u32
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn font_width(&self) -> i16
pub fn font_height(&self) -> i16
pub fn key(&self, v_key: usize) -> KeyState
pub fn set_title(&self, _title: String)
pub fn resize( &mut self, new_width: usize, new_height: usize, new_font_width: i16, new_font_height: i16, )
pub fn clear(&mut self)
pub fn draw(&mut self, _x: usize, _y: usize, _c: char, _col: u16)
pub fn fill( &mut self, x1: usize, y1: usize, x2: usize, y2: usize, c: char, col: u16, )
pub fn draw_string(&mut self, _x: usize, _y: usize, _s: &str, _col: u16)
pub fn draw_string_alpha(&mut self, _x: usize, _y: usize, _s: &str, _col: u16)
pub fn draw_line( &mut self, x1: usize, y1: usize, x2: usize, y2: usize, c: char, col: u16, )
pub fn draw_triangle( &mut self, x1: usize, y1: usize, x2: usize, y2: usize, x3: usize, y3: usize, c: char, col: u16, )
pub fn fill_triangle( &mut self, x1: usize, y1: usize, x2: usize, y2: usize, x3: usize, y3: usize, c: char, col: u16, )
pub fn draw_circle(&mut self, xc: usize, yc: usize, r: usize, c: char, col: u16)
pub fn fill_circle(&mut self, xc: usize, yc: usize, r: usize, c: char, col: u16)
pub fn draw_sprite(&mut self, x: usize, y: usize, sprite: &RustConsoleSprite)
Auto Trait Implementations§
impl Freeze for RustConsole
impl RefUnwindSafe for RustConsole
impl Send for RustConsole
impl Sync for RustConsole
impl Unpin for RustConsole
impl UnsafeUnpin for RustConsole
impl UnwindSafe for RustConsole
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