Skip to main content

Module types

Module types 

Source
Expand description

Shared geometry, input, and image types.

Structs§

DisplayInfo
One connected display, in logical pixels.
Frame
Decoded screenshot pixels.
FrontmostInfo
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§

ImageFormat
Image file format for screenshots.
Modifier
Modifier held while another key is pressed.
MouseButton
Mouse button for click actions.
ScrollDirection
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 width by height.