use super::*;
impl AvailableSpace {
#[must_use]
pub fn root(viewport: Size) -> Self {
Self::new(
viewport.get_width(),
viewport.get_height(),
viewport,
0.0,
0.0,
)
}
#[must_use]
pub fn with_stretch(mut self, stretch_width: bool, stretch_height: bool) -> Self {
self.set_stretch_width(stretch_width);
self.set_stretch_height(stretch_height);
self
}
}