[go: up one dir, main page]

PaintableExt

Trait PaintableExt 

Source
pub trait PaintableExt: IsA<Paintable> + 'static {
    // Provided methods
    fn compute_concrete_size(
        &self,
        specified_width: f64,
        specified_height: f64,
        default_width: f64,
        default_height: f64,
    ) -> (f64, f64) { ... }
    fn current_image(&self) -> Paintable { ... }
    fn flags(&self) -> PaintableFlags { ... }
    fn intrinsic_aspect_ratio(&self) -> f64 { ... }
    fn intrinsic_height(&self) -> i32 { ... }
    fn intrinsic_width(&self) -> i32 { ... }
    fn invalidate_contents(&self) { ... }
    fn invalidate_size(&self) { ... }
    fn snapshot(&self, snapshot: &impl IsA<Snapshot>, width: f64, height: f64) { ... }
    fn connect_invalidate_contents<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_invalidate_size<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn compute_concrete_size( &self, specified_width: f64, specified_height: f64, default_width: f64, default_height: f64, ) -> (f64, f64)

Source

fn current_image(&self) -> Paintable

Source

fn flags(&self) -> PaintableFlags

Source

fn intrinsic_aspect_ratio(&self) -> f64

Source

fn intrinsic_height(&self) -> i32

Source

fn intrinsic_width(&self) -> i32

Source

fn invalidate_contents(&self)

Source

fn invalidate_size(&self)

Source

fn snapshot(&self, snapshot: &impl IsA<Snapshot>, width: f64, height: f64)

Source

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

Source

fn connect_invalidate_size<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§