Trait libbismuth::prelude::BinExt

source ·
pub trait BinExt: IsA<Bin> + Sealed + '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

Object Safety§

This trait is not object safe.

Implementors§

source§

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