Struct rust_console_game_engine::RustConsole[][src]

pub struct RustConsole { /* fields omitted */ }

Implementations

impl RustConsole[src]

pub const FG_BLACK: u16[src]

pub const FG_DARK_BLUE: u16[src]

pub const FG_DARK_GREEN: u16[src]

pub const FG_DARK_CYAN: u16[src]

pub const FG_DARK_RED: u16[src]

pub const FG_DARK_MAGENTA: u16[src]

pub const FG_DARK_YELLOW: u16[src]

pub const FG_GREY: u16[src]

pub const FG_DARK_GREY: u16[src]

pub const FG_BLUE: u16[src]

pub const FG_GREEN: u16[src]

pub const FG_CYAN: u16[src]

pub const FG_RED: u16[src]

pub const FG_MAGENTA: u16[src]

pub const FG_YELLOW: u16[src]

pub const FG_WHITE: u16[src]

pub const BG_BLACK: u16[src]

pub const BG_DARK_BLUE: u16[src]

pub const BG_DARK_GREEN: u16[src]

pub const BG_DARK_CYAN: u16[src]

pub const BG_DARK_RED: u16[src]

pub const BG_DARK_MAGENTA: u16[src]

pub const BG_DARK_YELLOW: u16[src]

pub const BG_GREY: u16[src]

pub const BG_DARK_GREY: u16[src]

pub const BG_BLUE: u16[src]

pub const BG_GREEN: u16[src]

pub const BG_CYAN: u16[src]

pub const BG_RED: u16[src]

pub const BG_MAGENTA: u16[src]

pub const BG_YELLOW: u16[src]

pub const BG_WHITE: u16[src]

pub const PIXEL_SOLID: char[src]

pub const PIXEL_THREEQUARTER: char[src]

pub const PIXEL_HALF: char[src]

pub const PIXEL_QUARTER: char[src]

pub const VK_UP: u32[src]

pub const VK_DOWN: u32[src]

pub const VK_LEFT: u32[src]

pub const VK_RIGHT: u32[src]

pub fn width(&self) -> usize[src]

pub fn height(&self) -> usize[src]

pub fn font_width(&self) -> i16[src]

pub fn font_height(&self) -> i16[src]

pub fn key(&self, v_key: usize) -> KeyState[src]

pub fn set_title(&self, _title: String)[src]

pub fn resize(
    &mut self,
    new_width: usize,
    new_height: usize,
    new_font_width: i16,
    new_font_height: i16
)
[src]

pub fn clear(&mut self)[src]

pub fn draw(&mut self, _x: usize, _y: usize, _c: char, _col: u16)[src]

pub fn fill(
    &mut self,
    x1: usize,
    y1: usize,
    x2: usize,
    y2: usize,
    c: char,
    col: u16
)
[src]

pub fn draw_string(&mut self, _x: usize, _y: usize, _s: &str, _col: u16)[src]

pub fn draw_string_alpha(&mut self, _x: usize, _y: usize, _s: &str, _col: u16)[src]

pub fn draw_line(
    &mut self,
    x1: usize,
    y1: usize,
    x2: usize,
    y2: usize,
    c: char,
    col: u16
)
[src]

pub fn draw_triangle(
    &mut self,
    x1: usize,
    y1: usize,
    x2: usize,
    y2: usize,
    x3: usize,
    y3: usize,
    c: char,
    col: u16
)
[src]

pub fn fill_triangle(
    &mut self,
    x1: usize,
    y1: usize,
    x2: usize,
    y2: usize,
    x3: usize,
    y3: usize,
    c: char,
    col: u16
)
[src]

pub fn draw_circle(&mut self, xc: usize, yc: usize, r: usize, c: char, col: u16)[src]

pub fn fill_circle(&mut self, xc: usize, yc: usize, r: usize, c: char, col: u16)[src]

pub fn draw_sprite(&mut self, x: usize, y: usize, sprite: &RustConsoleSprite)[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.