gdk4::prelude

Trait SurfaceExtManual

Source
pub trait SurfaceExtManual:
    Sealed
    + IsA<Surface>
    + 'static {
    // Provided methods
    fn create_similar_surface(
        &self,
        content: Content,
        width: i32,
        height: i32,
    ) -> Surface { ... }
    fn translate_coordinates(&self, to: &Surface, x: f64, y: f64) -> bool { ... }
}
Expand description

Trait containing manually implemented methods of Surface.

Provided Methods§

Source

fn create_similar_surface( &self, content: Content, width: i32, height: i32, ) -> Surface

Source

fn translate_coordinates(&self, to: &Surface, x: f64, y: f64) -> bool

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§