libadwaita::prelude

Trait BinExt

source
pub trait BinExt: IsA<Bin> + 'static {
    // Provided methods
    fn child(&self) -> Option<Widget> { ... }
    fn set_child(&self, child: Option<&impl IsA<Widget>>) { ... }
    fn connect_child_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all Bin methods.

§Implementors

Bin

Provided Methods§

source

fn child(&self) -> Option<Widget>

Gets the child widget of @self.

§Returns

the child widget of @self

source

fn set_child(&self, child: Option<&impl IsA<Widget>>)

Sets the child widget of @self.

§child

the child widget

source

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

source§

impl<O: IsA<Bin>> BinExt for O