pub struct Control { /* private fields */ }Implementations§
Source§impl Control
impl Control
pub fn new() -> Self
pub fn home() -> Self
pub fn carriage_return() -> Self
pub fn erase_in_line(mode: u8) -> Self
pub fn cursor_up(n: u16) -> Self
pub fn move_to(x: u16, y: u16) -> Self
Sourcepub fn show_cursor(show: bool) -> Self
pub fn show_cursor(show: bool) -> Self
Show or hide the cursor.
Sourcepub fn alt_screen(enable: bool) -> Self
pub fn alt_screen(enable: bool) -> Self
Enable or disable the alternate screen buffer.
pub fn extend(&mut self, controls: impl IntoIterator<Item = ControlType>)
pub fn push(&mut self, control: ControlType)
pub fn is_empty(&self) -> bool
pub fn into_segments(self) -> Segments
Trait Implementations§
Source§impl Renderable for Control
impl Renderable for Control
Source§fn render(&self, _console: &Console, _options: &ConsoleOptions) -> Segments
fn render(&self, _console: &Console, _options: &ConsoleOptions) -> Segments
Render this object to a sequence of segments.
Source§fn measure(&self, _console: &Console, _options: &ConsoleOptions) -> Measurement
fn measure(&self, _console: &Console, _options: &ConsoleOptions) -> Measurement
Measure the minimum and maximum width requirements. Read more
Auto Trait Implementations§
impl Freeze for Control
impl RefUnwindSafe for Control
impl Send for Control
impl Sync for Control
impl Unpin for Control
impl UnwindSafe for Control
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