pub struct CursedRenderer { /* private fields */ }Expand description
CursedRenderer manages high-performance declarative View rendering.
Implementations§
Source§impl CursedRenderer
impl CursedRenderer
Sourcepub fn set_logger(&mut self, logger: Option<Box<dyn Logger + Send + Sync>>)
pub fn set_logger(&mut self, logger: Option<Box<dyn Logger + Send + Sync>>)
SetLogger sets the logger for the renderer.
Sourcepub fn set_optimizations(
&mut self,
hard_tabs: bool,
backspace: bool,
map_nl: bool,
)
pub fn set_optimizations( &mut self, hard_tabs: bool, backspace: bool, map_nl: bool, )
SetOptimizations sets the cursor movement optimizations.
Sourcepub fn set_color_profile(&mut self, p: Profile)
pub fn set_color_profile(&mut self, p: Profile)
SetColorProfile sets the color profile of the renderer.
Sourcepub fn set_syncd_updates(&mut self, syncd: bool)
pub fn set_syncd_updates(&mut self, syncd: bool)
SetSyncdUpdates sets whether synchronized output mode is used.
Sourcepub fn set_width_method(&mut self, method: WidthMethod)
pub fn set_width_method(&mut self, method: WidthMethod)
SetWidthMethod sets the width method of the renderer.
Sourcepub fn set_scroll_optim(&mut self, v: bool)
pub fn set_scroll_optim(&mut self, v: bool)
SetScrollOptim sets whether to use hard scroll optimizations.
Trait Implementations§
Source§impl Renderer for CursedRenderer
impl Renderer for CursedRenderer
Source§fn set_optimizations(&mut self, hard_tabs: bool, backspace: bool, map_nl: bool)
fn set_optimizations(&mut self, hard_tabs: bool, backspace: bool, map_nl: bool)
Sets the cursor movement optimizations (hard tabs, backspace,
newline mapping).
Source§fn set_color_profile(&mut self, p: Profile)
fn set_color_profile(&mut self, p: Profile)
Sets the terminal color profile used for downsampling colors.
Source§fn close(&mut self) -> Result<(), Box<dyn Error>>
fn close(&mut self) -> Result<(), Box<dyn Error>>
Closes the renderer and flushes any remaining data.
Source§fn flush(&mut self, closing: bool) -> Result<(), Box<dyn Error>>
fn flush(&mut self, closing: bool) -> Result<(), Box<dyn Error>>
Flushes renderer output buffer to terminal stdout.
Source§fn insert_above(&mut self, str_: String) -> Result<(), Box<dyn Error>>
fn insert_above(&mut self, str_: String) -> Result<(), Box<dyn Error>>
Inserts unmanaged lines above the TUI renderer.
Source§fn clear_screen(&mut self)
fn clear_screen(&mut self)
Clears terminal screen.
Auto Trait Implementations§
impl !Freeze for CursedRenderer
impl !RefUnwindSafe for CursedRenderer
impl !UnwindSafe for CursedRenderer
impl Send for CursedRenderer
impl Sync for CursedRenderer
impl Unpin for CursedRenderer
impl UnsafeUnpin for CursedRenderer
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