Trait DrawingAreaExt

Source
pub trait DrawingAreaExt:
    IsA<DrawingArea>
    + Sealed
    + 'static {
    // Provided methods
    fn content_height(&self) -> i32 { ... }
    fn content_width(&self) -> i32 { ... }
    fn set_content_height(&self, height: i32) { ... }
    fn set_content_width(&self, width: i32) { ... }
    fn connect_resize<F: Fn(&Self, i32, i32) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_content_height_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_content_width_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn content_height(&self) -> i32

Source

fn content_width(&self) -> i32

Source

fn set_content_height(&self, height: i32)

Source

fn set_content_width(&self, width: i32)

Source

fn connect_resize<F: Fn(&Self, i32, i32) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_content_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

fn connect_content_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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§