Trait gdk4::prelude::DrawContextExtManual
source · pub trait DrawContextExtManual: 'static {
// Required method
fn frame_region(&self) -> Option<Region>;
}
Expand description
Trait containing manually implemented methods of DrawContext
.
Required Methods§
sourcefn frame_region(&self) -> Option<Region>
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.
Returns
a Cairo region