[][src]Struct crossterm_cursor::sys::winapi::ScreenBuffer

pub struct ScreenBuffer { /* fields omitted */ }

Methods

impl ScreenBuffer[src]

pub fn current() -> Result<ScreenBuffer, Error>[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<(), Error>[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, Error>[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<(), Error>[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 get_handle(&self) -> &Handle[src]

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

Trait Implementations

impl From<*mut c_void> for ScreenBuffer[src]

impl From<Handle> 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, 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]