DrawContextExt

Trait DrawContextExt 

Source
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ยง

Source

fn begin_frame(&self, region: &Region)

๐Ÿ‘ŽDeprecated: Since 4.16
Source

fn end_frame(&self)

๐Ÿ‘ŽDeprecated: Since 4.16
Source

fn display(&self) -> Option<Display>

Source

fn surface(&self) -> Option<Surface>

Source

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.

Implementorsยง