pub trait DrawContextExt: IsA<DrawContext> + 'static {
// Provided methods
fn begin_frame(&self, region: &Region) { ... }
fn end_frame(&self) { ... }
fn display(&self) -> Option<Display> { ... }
fn surface(&self) -> Option<Surface> { ... }
fn is_in_frame(&self) -> bool { ... }
}Provided Methodsยง
fn begin_frame(&self, region: &Region)
๐Deprecated: Since 4.16
fn end_frame(&self)
๐Deprecated: Since 4.16
fn display(&self) -> Option<Display>
fn surface(&self) -> Option<Surface>
fn is_in_frame(&self) -> bool
๐Deprecated: Since 4.16
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.