Skip to main content

WindowSpec

Type Alias WindowSpec 

Source
pub type WindowSpec = Window<f32>;

Aliased Type§

pub struct WindowSpec {
    pub width: f32,
    pub height: f32,
    pub pos_x: f32,
    pub pos_y: f32,
}

Fields§

§width: f32§height: f32§pos_x: f32§pos_y: f32

Trait Implementations§

Source§

impl From<(&Point, &Size)> for WindowSpec

Source§

fn from((point, size): (&Point, &Size)) -> Self

Converts to this type from the input type.