[][src]Struct winconsole::console::ConsoleState

pub struct ConsoleState {
    pub background_color: ConsoleColor,
    pub buffer_size: Vector2<u16>,
    pub color_mapping: [RGB8; 16],
    pub cursor_position: Vector2<u16>,
    pub cursor_size: u8,
    pub cursor_visible: bool,
    pub font: ConsoleFont,
    pub foreground_color: ConsoleColor,
    pub input_code_page: CodePage,
    pub input_mode: InputSettings,
    pub output: String,
    pub output_code_page: CodePage,
    pub output_colors: Vec<(ConsoleColor, ConsoleColor)>,
    pub output_mode: OutputSettings,
    pub title: String,
}

Represents the state of the console.

Fields

background_color: ConsoleColor

The background color of the console.

buffer_size: Vector2<u16>

The console's buffer size.

color_mapping: [RGB8; 16]

The color mapping of the console.

cursor_position: Vector2<u16>

The console cursor position.

cursor_size: u8

The console cursor size.

cursor_visible: bool

The visibility of the console cursor.

font: ConsoleFont

The console font information.

foreground_color: ConsoleColor

The foreground color of the console.

input_code_page: CodePage

The console input code page.

input_mode: InputSettings

The console input mode.

output: String

The console's output contents.

output_code_page: CodePage

The console output code page.

output_colors: Vec<(ConsoleColor, ConsoleColor)>

The colors of the console's output contents.

output_mode: OutputSettings

The console output mode.

title: String

The console window title.

Trait Implementations

impl PartialEq<ConsoleState> for ConsoleState[src]

impl Clone for ConsoleState[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ConsoleState[src]

fn default() -> Self[src]

Returns an empty ConsoleState object.

impl Debug for ConsoleState[src]

impl Serialize for ConsoleState[src]

impl<'de> Deserialize<'de> for ConsoleState[src]

Auto Trait Implementations

impl Send for ConsoleState

impl Sync for ConsoleState

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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.

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]