Struct window::Position [−][src]
Structure to store the window position.
The width and height are in points. On most computers, a point is 1:1 with a pixel. However, this is not universally true. For example, the Apple Retina Display defines 1 point to be a 2x2 square of pixels.
Normally, the consideration of points vs pixels should be left to the host operating system.
Fields
x: i32
The x coordinate.
y: i32
The y coordinate.
Trait Implementations
impl Debug for Position[src]
impl Debug for Positionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Position[src]
impl Copy for Positionimpl Clone for Position[src]
impl Clone for Positionfn clone(&self) -> Position[src]
fn clone(&self) -> PositionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Position[src]
impl PartialEq for Positionfn eq(&self, other: &Position) -> bool[src]
fn eq(&self, other: &Position) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Position) -> bool[src]
fn ne(&self, other: &Position) -> boolThis method tests for !=.
impl Eq for Position[src]
impl Eq for Positionimpl From<[i32; 2]> for Position[src]
impl From<[i32; 2]> for Positionimpl From<(i32, i32)> for Position[src]
impl From<(i32, i32)> for Positionimpl From<Position> for [i32; 2][src]
impl From<Position> for [i32; 2]impl From<Position> for (i32, i32)[src]
impl From<Position> for (i32, i32)