Trait gdk4::prelude::DrawContextExtManual [−][src]
pub trait DrawContextExtManual: 'static {
fn frame_region(&self) -> Option<Region>;
}
Required methods
fn 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