pub struct State {Show 27 fields
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: usize
y: usize
save_x: usize
save_y: usize
w: usize
h: usize
top_margin: usize
bottom_margin: usize
g0: char
g1: char
foreground: Color
background: Color
foreground_default: Color
background_default: Color
bold: bool
inverted: bool
italic: bool
underlined: bool
strikethrough: bool
cursor: bool
redraw: bool
origin: bool
autowrap: bool
mouse_vt200: bool
mouse_btn: bool
mouse_sgr: bool
mouse_rxvt: bool
Implementations
sourceimpl State
impl State
pub fn new(w: usize, h: usize) -> State
pub fn print<F: FnMut(Event<'_>)>(&mut self, c: char, callback: &mut F)
pub fn execute<F: FnMut(Event<'_>)>(&mut self, c: char, _callback: &mut F)
pub fn csi<F: FnMut(Event<'_>)>(
&mut self,
c: char,
params: &[i64],
_intermediates: &[u8],
callback: &mut F
)
pub fn esc<F: FnMut(Event<'_>)>(
&mut self,
c: char,
_params: &[i64],
intermediates: &[u8],
callback: &mut F
)
pub fn osc<F: FnMut(Event<'_>)>(&mut self, params: &[&[u8]], callback: &mut F)
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more