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§

source

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().

§surface

a cairo surface

§Returns

A cairo::Region

Implementations on Foreign Types§

source§

impl GdkCairoSurfaceExt for Surface

Implementors§