Struct window::Size [−] [src]

pub struct Size {
    pub width: u32,
    pub height: u32,
}

Size in pixels.

Fields

width

The width in pixels.

height

The height in pixels.

Trait Implementations

impl From<[u32; 2]> for Size

fn from(value: [u32; 2]) -> Size

impl From<(u32, u32)> for Size

fn from(value: (u32, u32)) -> Size

Derived Implementations

impl Clone for Size

fn clone(&self) -> Size

fn clone_from(&mut self, source: &Self)

impl Copy for Size