pub fn make_size(&self, screen_size: Vec2) -> Vec2 {
        Vec2 {
            y: screen_size
                .y
                .saturating_sub(self.make_margin_below().y)
                .saturating_sub(self.make_margin_above().y)
                .min(self.make_max_size().y),
            x: screen_size
                .x
                .saturating_sub(self.make_margin_below().x)
                .saturating_sub(self.make_margin_above().x)
                .min(self.make_max_size().x),
        }
    }
/// Makes a coordinate pair that contains the actual sizes.
Makes a coordinate pair that contains the actual sizes.
Makes a coordinate pair that contains the actual sizes .
pub fn make_size(&self, screen_size: Vec2) -> Vec2 {
        Vec2 {
            y: screen_size
                .y
                .saturating_sub(self.make_margin_below().y)
                .saturating_sub(self.make_margin_above().y)
                .min(self.make_max_size().y),
            x: screen_size
                .x
                .saturating_sub(self.make_margin_below().x)
                .saturating_sub(self.make_margin_above().x)
                .min(self.make_max_size().x),
        }
    }
pub fn make_size ( & self , screen_size : Vec2 ) -> Vec2 { Vec2 { y : screen_size . y . saturating_sub ( self . make_margin_below ( ) . y ) . saturating_sub ( self . make_margin_above ( ) . y ) . min ( self . make_max_size ( ) . y ) , x : screen_size . x . saturating_sub ( self . make_margin_below ( ) . x ) . saturating_sub ( self . make_margin_above ( ) . x ) . min ( self . make_max_size ( ) . x ) , } }
Makes a coordinate pair that contains the actual sizes.
Makes a coordinate pair that contains the actual sizes .
&self
screen_size
Vec2
&self
screen_size
Vec2