[−][src]Struct crossterm_cursor::sys::winapi::ScreenBuffer
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]
fn from(handle: *mut c_void) -> ScreenBuffer
[src]
impl From<Handle> for ScreenBuffer
[src]
fn from(handle: Handle) -> ScreenBuffer
[src]
Auto Trait Implementations
impl !Send for ScreenBuffer
impl !Sync for ScreenBuffer
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,