pub struct Curses { /* private fields */ }Expand description
Curses state manager
Implementations§
Source§impl Curses
impl Curses
pub fn new() -> Self
pub fn initscr(&mut self) -> Result<()>
pub fn endwin(&mut self) -> Result<()>
pub fn newwin( &mut self, name: &str, rows: usize, cols: usize, y: usize, x: usize, ) -> bool
pub fn delwin(&mut self, name: &str) -> bool
pub fn get_window(&self, name: &str) -> Option<&Window>
pub fn get_window_mut(&mut self, name: &str) -> Option<&mut Window>
pub fn refresh(&self, name: &str) -> Result<()>
pub fn refresh_all(&self) -> Result<()>
pub fn init_pair(&mut self, pair: i32, fg: Color, bg: Color)
pub fn get_pair(&self, pair: i32) -> Option<(Color, Color)>
pub fn is_initialized(&self) -> bool
pub fn window_names(&self) -> Vec<&str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Curses
impl RefUnwindSafe for Curses
impl Send for Curses
impl Sync for Curses
impl Unpin for Curses
impl UnsafeUnpin for Curses
impl UnwindSafe for Curses
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more