xengui 0.2.7

a retained-mode gui library in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// SPDX-License-Identifier: Apache-2.0
use super::Length;

#[derive(Clone, Copy, Debug, PartialEq, Default)]
pub struct Size {
    pub width: Option<Length>,
    pub height: Option<Length>,
}

impl Size {
    pub const fn new(width: Length, height: Length) -> Self {
        Self { width: Some(width), height: Some(height) }
    }
}