pub trait DrawContextExtManual: IsA<DrawContext> + 'static {
// Provided method
fn frame_region(&self) -> Option<Region> { ... }
}
Expand description
Trait containing manually implemented methods of
DrawContext
.
Provided 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.
§Deprecated since 4.16
Drawing directly to the surface is no longer recommended.
Use GskRenderNode
and GskRenderer
.
§Returns
a Cairo region
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.