[−][src]Struct winapi_util::console::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]
fn clone(&self) -> ScreenBufferInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for ScreenBufferInfo
impl Send for ScreenBufferInfo
impl Sync for ScreenBufferInfo
impl Unpin for ScreenBufferInfo
impl UnwindSafe for ScreenBufferInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,