Struct window::Position
[−]
[src]
pub struct Position { pub x: i32, pub y: i32, }
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 Copy for Position
[src]
impl Clone for Position
[src]
fn clone(&self) -> Position
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Position
[src]
fn eq(&self, __arg_0: &Position) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Position) -> bool
[src]
This method tests for !=
.