pub fn new(size: Vec2, min_size: Vec2, frame_time: Duration) -> Self {
        let corrected_size = if size.x >= min_size.x && size.y >= min_size.y {
            size
        } else {
            min_size
        };
        Self {
            min_size,
            frame_time,
            cleanedup: AtomicBool::new(false),
            stdout: Stdout::new(),
            buffer: Mutex::new(ScreenBuffer::blank(corrected_size)),
            notifier: Notify::new(),
        }
    }
/// Creates screen data from the given settings. If given actual size is
/// less than given minimum allowed size, the actual size is replaced by the
/// minimum size.
Creates screen data from the given settings. If given actual size is
less than given minimum allowed size, the actual size is replaced by the
minimum size.
Creates screen data from the given settings . If given actual size is less than given minimum allowed size the actual size is replaced by the minimum size .
pub fn new(size: Vec2, min_size: Vec2, frame_time: Duration) -> Self {
        let corrected_size = if size.x >= min_size.x && size.y >= min_size.y {
            size
        } else {
            min_size
        };
        Self {
            min_size,
            frame_time,
            cleanedup: AtomicBool::new(false),
            stdout: Stdout::new(),
            buffer: Mutex::new(ScreenBuffer::blank(corrected_size)),
            notifier: Notify::new(),
        }
    }
pub fn new ( size : Vec2 , min_size : Vec2 , frame_time : Duration ) -> Self { let corrected_size = if size . x >= min_size . x && size . y >= min_size . y { size } else { min_size } ; Self { min_size , frame_time , cleanedup : AtomicBool :: new ( false ) , stdout : Stdout :: new ( ) , buffer : Mutex :: new ( ScreenBuffer :: blank ( corrected_size ) ) , notifier : Notify :: new ( ) , } }
Creates screen data from the given settings.
Creates screen data from the given settings .
size
Vec2
min_size
Vec2
frame_time
Duration
size
Vec2
min_size
Vec2
frame_time
Duration