Trait BoxExt

Source
pub trait BoxExt:
    IsA<Box>
    + Sealed
    + 'static {
Show 17 methods // Provided methods fn append(&self, child: &impl IsA<Widget>) { ... } fn baseline_child(&self) -> i32 { ... } fn baseline_position(&self) -> BaselinePosition { ... } fn is_homogeneous(&self) -> bool { ... } fn spacing(&self) -> i32 { ... } fn insert_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>>, ) { ... } fn prepend(&self, child: &impl IsA<Widget>) { ... } fn remove(&self, child: &impl IsA<Widget>) { ... } fn reorder_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>>, ) { ... } fn set_baseline_child(&self, child: i32) { ... } fn set_baseline_position(&self, position: BaselinePosition) { ... } fn set_homogeneous(&self, homogeneous: bool) { ... } fn set_spacing(&self, spacing: i32) { ... } fn connect_baseline_child_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_baseline_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

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

Source

fn baseline_child(&self) -> i32

Available on crate feature v4_12 only.
Source

fn baseline_position(&self) -> BaselinePosition

Source

fn is_homogeneous(&self) -> bool

Source

fn spacing(&self) -> i32

Source

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

Source

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

Source

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

Source

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

Source

fn set_baseline_child(&self, child: i32)

Available on crate feature v4_12 only.
Source

fn set_baseline_position(&self, position: BaselinePosition)

Source

fn set_homogeneous(&self, homogeneous: bool)

Source

fn set_spacing(&self, spacing: i32)

Source

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

Available on crate feature v4_12 only.
Source

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

Source

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

Source

fn connect_spacing_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<Box>> BoxExt for O