[][src]Struct winapi_util::console::ScreenBufferInfo

pub struct ScreenBufferInfo(_);

Represents console screen buffer information such as size, cursor position and styling attributes.

This wraps a CONSOLE_SCREEN_BUFFER_INFO.

Methods

impl ScreenBufferInfo[src]

pub fn size(&self) -> (i16, i16)[src]

Returns the size of the console screen buffer, in character columns and rows.

This corresponds to dwSize.

pub fn cursor_position(&self) -> (i16, i16)[src]

Returns the position of the cursor in terms of column and row coordinates of the console screen buffer.

This corresponds to dwCursorPosition.

pub fn attributes(&self) -> u16[src]

Returns the character attributes associated with this console.

This corresponds to wAttributes.

See char info for more details.

pub fn max_window_size(&self) -> (i16, i16)[src]

Returns the maximum size of the console window, in character columns and rows, given the current screen buffer size and font and the screen size.

Trait Implementations

impl Clone for ScreenBufferInfo[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.