Struct crossterm_winapi::ScreenBufferInfo[][src]

pub struct ScreenBufferInfo(pub CONSOLE_SCREEN_BUFFER_INFO);
Expand description

Information about a console screen buffer.

This wraps CONSOLE_SCREEN_BUFFER_INFO.

Tuple Fields

0: CONSOLE_SCREEN_BUFFER_INFO

Implementations

Create a new console screen buffer without all zeroed properties.

Get the size of the screen buffer.

Will take dwSize from the current screen buffer and convert it into a Size.

Get the size of the terminal display window.

Will calculate the width and height from srWindow and convert it into a Size.

Get the position and size of the terminal display window.

Will take srWindow and convert it into the WindowPositions type.

Get the current attributes of the characters that are being written to the console.

Will take wAttributes from the current screen buffer.

Get the current column and row of the terminal cursor in the screen buffer.

Will take dwCursorPosition from the current screen buffer.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.