[][src]Struct crossterm_winapi::ScreenBuffer

pub struct ScreenBuffer { /* fields omitted */ }

Methods

impl ScreenBuffer[src]

pub fn new(handle: Handle) -> Self[src]

pub fn current() -> Result<ScreenBuffer>[src]

Create an instance of ScreenBuffer where the HANDLE, used for the functions this type wraps, is the current output handle.

pub fn create() -> ScreenBuffer[src]

Create new console screen buffer.

Wraps the underlying function call: CreateConsoleScreenBuffer link: [https://docs.microsoft.com/en-us/windows/console/createconsolescreenbuffer]

pub fn show(&self) -> Result<()>[src]

This will make this ScreenBuffer the active one.

Wraps the underlying function call: SetConsoleActiveScreenBuffer link: [https://docs.microsoft.com/en-us/windows/console/setconsoleactivescreenbuffer]

pub fn info(&self) -> Result<ScreenBufferInfo>[src]

Get the screen buffer information like terminal size, cursor position, buffer size.

Wraps the underlying function call: GetConsoleScreenBufferInfo link: [https://docs.microsoft.com/en-us/windows/console/getconsolescreenbufferinfo]

pub fn set_size(&self, x: i16, y: i16) -> Result<()>[src]

Set the console screen buffer size to the given size.

Wraps the underlying function call: SetConsoleScreenBufferSize link: [https://docs.microsoft.com/en-us/windows/console/setconsolescreenbuffersize]

pub fn handle(&self) -> &Handle[src]

Get the underlining raw HANDLE used by this type to execute whit.

Trait Implementations

impl From<Handle> for ScreenBuffer[src]

impl Clone for ScreenBuffer[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]