Struct crossterm_winapi::WindowPositions
source · pub struct WindowPositions {
pub left: i16,
pub right: i16,
pub bottom: i16,
pub top: i16,
}
Expand description
This is a wrapper for the locations of a rectangle.
Fields§
§left: i16
The rectangle’s offset from the left.
right: i16
The rectangle’s offset from the right.
bottom: i16
The rectangle’s offset from the bottom.
top: i16
The rectangle’s offset from the top.
Trait Implementations§
source§impl Clone for WindowPositions
impl Clone for WindowPositions
source§fn clone(&self) -> WindowPositions
fn clone(&self) -> WindowPositions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WindowPositions
impl Debug for WindowPositions
source§impl Default for WindowPositions
impl Default for WindowPositions
source§fn default() -> WindowPositions
fn default() -> WindowPositions
Returns the “default value” for a type. Read more
source§impl From<CONSOLE_SCREEN_BUFFER_INFO> for WindowPositions
impl From<CONSOLE_SCREEN_BUFFER_INFO> for WindowPositions
source§fn from(csbi: CONSOLE_SCREEN_BUFFER_INFO) -> Self
fn from(csbi: CONSOLE_SCREEN_BUFFER_INFO) -> Self
Converts to this type from the input type.
source§impl From<SMALL_RECT> for WindowPositions
impl From<SMALL_RECT> for WindowPositions
source§fn from(rect: SMALL_RECT) -> Self
fn from(rect: SMALL_RECT) -> Self
Converts to this type from the input type.
source§impl From<WindowPositions> for SMALL_RECT
impl From<WindowPositions> for SMALL_RECT
source§fn from(positions: WindowPositions) -> Self
fn from(positions: WindowPositions) -> Self
Converts to this type from the input type.
source§impl PartialEq<WindowPositions> for WindowPositions
impl PartialEq<WindowPositions> for WindowPositions
source§fn eq(&self, other: &WindowPositions) -> bool
fn eq(&self, other: &WindowPositions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.