SurfaceDevice

Trait SurfaceDevice 

Source
pub trait SurfaceDevice {
    // Required methods
    fn is_current(&self) -> bool;
    fn surface() -> Self;
    fn push_current(new_current: &Self);
    fn pop_current();
}
Expand description

Defines the methods implemented by all surface types, currently ImageSurface

Required Methods§

Source

fn is_current(&self) -> bool

Checks whether this surface is the current surface

Source

fn surface() -> Self

Get the current surface

Source

fn push_current(new_current: &Self)

Push a surface as a current surface

Source

fn pop_current()

Pop the current surface

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§