[][src]Struct ransid::State

pub struct State {
    pub x: usize,
    pub y: usize,
    pub save_x: usize,
    pub save_y: usize,
    pub w: usize,
    pub h: usize,
    pub top_margin: usize,
    pub bottom_margin: usize,
    pub g0: char,
    pub g1: char,
    pub foreground: Color,
    pub background: Color,
    pub foreground_default: Color,
    pub background_default: Color,
    pub bold: bool,
    pub inverted: bool,
    pub italic: bool,
    pub underlined: bool,
    pub strikethrough: bool,
    pub cursor: bool,
    pub redraw: bool,
    pub origin: bool,
    pub autowrap: bool,
    pub mouse_vt200: bool,
    pub mouse_btn: bool,
    pub mouse_sgr: bool,
    pub mouse_rxvt: bool,
}

Fields

x: usizey: usizesave_x: usizesave_y: usizew: usizeh: usizetop_margin: usizebottom_margin: usizeg0: charg1: charforeground: Colorbackground: Colorforeground_default: Colorbackground_default: Colorbold: boolinverted: boolitalic: boolunderlined: boolstrikethrough: boolcursor: boolredraw: boolorigin: boolautowrap: boolmouse_vt200: boolmouse_btn: boolmouse_sgr: boolmouse_rxvt: bool

Methods

impl State[src]

pub fn new(w: usize, h: usize) -> State[src]

pub fn print<F: FnMut(Event)>(&mut self, c: char, callback: &mut F)[src]

pub fn execute<F: FnMut(Event)>(&mut self, c: char, _callback: &mut F)[src]

pub fn csi<F: FnMut(Event)>(
    &mut self,
    c: char,
    params: &[i64],
    _intermediates: &[u8],
    callback: &mut F
)
[src]

pub fn esc<F: FnMut(Event)>(
    &mut self,
    c: char,
    _params: &[i64],
    intermediates: &[u8],
    callback: &mut F
)
[src]

pub fn osc<F: FnMut(Event)>(&mut self, params: &[&[u8]], callback: &mut F)[src]

Auto Trait Implementations

impl Sync for State

impl Send for State

impl Unpin for State

impl RefUnwindSafe for State

impl UnwindSafe for State

Blanket Implementations

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

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]