Expand description
Shared geometry, input, and image types.
Structs§
- Display
Info - One connected display, in logical pixels.
- Frame
- Decoded screenshot pixels.
- Frontmost
Info - Best-effort frontmost application and window.
- Point
- One logical point. Drag paths are a list of these.
- RawCapture
- Pixels from one capture, before max-width and canvas fitting.
- Region
- Rectangle in logical screen pixels. The origin is the top-left of the virtual desktop, matching click coordinates.
Enums§
- Image
Format - Image file format for screenshots.
- Modifier
- Modifier held while another key is pressed.
- Mouse
Button - Mouse button for click actions.
- Scroll
Direction - Scroll direction used with an amount.
Functions§
- parse_
path - Parse a flat
x,y,x,y,...list. At least two points, and an even count. - parse_
region - Parse
x,y,width,height. Whitespace around commas is ignored. - region_
inside - True when the region sits inside
widthbyheight.