pub struct Strat9RatatuiBackend {
cursor: Position,
cursor_visible: bool,
}Fields§
§cursor: Position§cursor_visible: boolImplementations§
Source§impl Strat9RatatuiBackend
impl Strat9RatatuiBackend
Sourcepub fn new() -> Result<Self, BackendError>
pub fn new() -> Result<Self, BackendError>
Creates a new instance.
Sourcefn map_fg_color(color: Color) -> RgbColor
fn map_fg_color(color: Color) -> RgbColor
Maps fg color.
Sourcefn map_bg_color(color: Color) -> RgbColor
fn map_bg_color(color: Color) -> RgbColor
Maps bg color.
Sourcefn normalize_symbol(symbol: &str) -> char
fn normalize_symbol(symbol: &str) -> char
Performs the normalize symbol operation.
Trait Implementations§
Source§impl Backend for Strat9RatatuiBackend
impl Backend for Strat9RatatuiBackend
Source§fn hide_cursor(&mut self) -> Result<(), Self::Error>
fn hide_cursor(&mut self) -> Result<(), Self::Error>
Performs the hide cursor operation.
Source§fn show_cursor(&mut self) -> Result<(), Self::Error>
fn show_cursor(&mut self) -> Result<(), Self::Error>
Performs the show cursor operation.
Source§fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
fn get_cursor_position(&mut self) -> Result<Position, Self::Error>
Returns cursor position.
Source§fn set_cursor_position<P: Into<Position>>(
&mut self,
position: P,
) -> Result<(), Self::Error>
fn set_cursor_position<P: Into<Position>>( &mut self, position: P, ) -> Result<(), Self::Error>
Sets cursor position.
Source§fn clear_region(&mut self, clear_type: ClearType) -> Result<(), Self::Error>
fn clear_region(&mut self, clear_type: ClearType) -> Result<(), Self::Error>
Performs the clear region operation.
Source§fn window_size(&mut self) -> Result<WindowSize, Self::Error>
fn window_size(&mut self) -> Result<WindowSize, Self::Error>
Performs the window size operation.
Source§type Error = BackendError
type Error = BackendError
Error type associated with this Backend.
§fn append_lines(&mut self, _n: u16) -> Result<(), Self::Error>
fn append_lines(&mut self, _n: u16) -> Result<(), Self::Error>
Insert
n line breaks to the terminal screen. Read moreAuto Trait Implementations§
impl Freeze for Strat9RatatuiBackend
impl RefUnwindSafe for Strat9RatatuiBackend
impl Send for Strat9RatatuiBackend
impl Sync for Strat9RatatuiBackend
impl Unpin for Strat9RatatuiBackend
impl UnsafeUnpin for Strat9RatatuiBackend
impl UnwindSafe for Strat9RatatuiBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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