Function clip

Source
pub fn clip(
    origin: Point2D<i32>,
    size: Size2D<u32>,
    surface: Size2D<u32>,
) -> Option<Rect<u32>>