Trait gdk4::prelude::GdkCairoSurfaceExt

source ·
pub trait GdkCairoSurfaceExt {
    // Required method
    fn create_region(&self) -> Region;
Expand description

Trait containing integration methods with cairo::Surface.

Required Methods§


fn create_region(&self) -> Region

Creates region that covers the area where the given @surface is more than 50% opaque.

This function takes into account device offsets that might be set with cairo_surface_set_device_offset().


a cairo surface


A cairo::Region

Implementations on Foreign Types§


impl GdkCairoSurfaceExt for Surface