latchshot 0.2.4

A lightweight yet intelligent window-aware screenshot tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{Output, OutputId, OutputTransform, Rect, Size, Window};

pub fn output(id: &str, scale: f64) -> Output {
    Output {
        id: OutputId::new(id),
        logical_geometry: Rect::new(0.0, 0.0, 1920.0, 1080.0),
        pixel_size: Size::new(1920.0 * scale, 1080.0 * scale),
        scale,
        transform: OutputTransform::Normal,
    }
}

pub const fn window(geometry: Rect) -> Window {
    Window { geometry }
}