Trait gdk4::prelude::DrawContextExtManual

source ·
pub trait DrawContextExtManual: Sealed + IsA<DrawContext> + 'static {
    // Provided method
    fn frame_region(&self) -> Option<Region> { ... }
Expand description

Trait containing manually implemented methods of DrawContext.

Provided Methods§


fn frame_region(&self) -> Option<Region>

Retrieves the region that is currently being repainted.

After a call to DrawContextExt::begin_frame() this function will return a union of the region passed to that function and the area of the surface that the @self determined needs to be repainted.

If @self is not in between calls to DrawContextExt::begin_frame() and DrawContextExt::end_frame(), None will be returned.


a Cairo region

Object Safety§

This trait is not object safe.