Struct window::Size [−][src]
Expand description
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: f64
The width.
height: f64
The height.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Size
impl UnwindSafe for Size
Blanket Implementations
Mutably borrows from an owned value. Read more