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