pub trait ChildProxyExt: 'static {
    // Required methods
    fn child_added(&self, child: &impl IsA<Object>, name: &str);
    fn child_removed(&self, child: &impl IsA<Object>, name: &str);
    fn child_by_index(&self, index: u32) -> Option<Object>;
    fn child_by_name(&self, name: &str) -> Option<Object>;
    fn child_by_name_recurse(&self, name: &str) -> Option<Object>;
    fn children_count(&self) -> u32;
    fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
    fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required Methods§

source

fn child_added(&self, child: &impl IsA<Object>, name: &str)

source

fn child_removed(&self, child: &impl IsA<Object>, name: &str)

source

fn child_by_index(&self, index: u32) -> Option<Object>

source

fn child_by_name(&self, name: &str) -> Option<Object>

source

fn child_by_name_recurse(&self, name: &str) -> Option<Object>

Available on crate feature v1_22 only.
source

fn children_count(&self) -> u32

source

fn connect_child_added<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

source

fn connect_child_removed<F: Fn(&Self, &Object, &str) + Send + Sync + 'static>( &self, f: F ) -> SignalHandlerId

Implementors§