Trait libhelium::prelude::BinExt

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

Provided Methods§

source

fn add_child( &self, builder: &Builder, child: &impl IsA<Object>, type_: Option<&str> )

Add a child to the Bin, should only be used in the context of a UI or Blueprint file. There should be no need to use this method in code.

source

fn child(&self) -> Widget

source

fn set_child(&self, value: &impl IsA<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