Struct window::Size [−][src]
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 Debug for Sizefn 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 Size[src]
impl Copy for Sizeimpl Clone for Size[src]
impl Clone for Sizefn clone(&self) -> Size[src]
fn clone(&self) -> SizeReturns 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 Size[src]
impl PartialEq for Sizefn eq(&self, other: &Size) -> bool[src]
fn eq(&self, other: &Size) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Size) -> bool[src]
fn ne(&self, other: &Size) -> boolThis method tests for !=.
impl Eq for Size[src]
impl Eq for Sizeimpl From<[u32; 2]> for Size[src]
impl From<[u32; 2]> for Sizeimpl From<(u32, u32)> for Size[src]
impl From<(u32, u32)> for Sizeimpl From<Size> for [u32; 2][src]
impl From<Size> for [u32; 2]impl From<Size> for (u32, u32)[src]
impl From<Size> for (u32, u32)