Skip to main content

pasteboard_region

Function pasteboard_region 

Source
pub fn pasteboard_region(
    slide_px: (u32, u32),
    scale: f64,
    extent: Rect,
    visible: Region,
) -> Region
Expand description

The pixels the editor renders: the slide (slide_px, its size in pixels at scale pixels per point) plus the part of extent (slide space, from slide_extent or what a render drew) that falls within visible, the canvas’s area relative to the slide’s top-left corner. The visible area is rounded out to whole TILEs.