Trait BoxExt

Source
pub trait BoxExt: 'static {
Show 18 methods // Required methods fn get_baseline_position(&self) -> BaselinePosition; fn get_center_widget(&self) -> Option<Widget>; fn get_homogeneous(&self) -> bool; fn get_spacing(&self) -> i32; fn pack_end<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, ); fn pack_start<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, ); fn query_child_packing<P: IsA<Widget>>( &self, child: &P, ) -> (bool, bool, u32, PackType); fn reorder_child<P: IsA<Widget>>(&self, child: &P, position: i32); fn set_baseline_position(&self, position: BaselinePosition); fn set_center_widget<P: IsA<Widget>>(&self, widget: Option<&P>); fn set_child_packing<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, pack_type: PackType, ); fn set_homogeneous(&self, homogeneous: bool); fn set_spacing(&self, spacing: i32); fn get_child_position<T: IsA<Widget>>(&self, item: &T) -> i32; fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32); fn connect_property_baseline_position_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_baseline_position(&self) -> BaselinePosition

Source

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

Source

fn get_homogeneous(&self) -> bool

Source

fn get_spacing(&self) -> i32

Source

fn pack_end<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, )

Source

fn pack_start<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, )

Source

fn query_child_packing<P: IsA<Widget>>( &self, child: &P, ) -> (bool, bool, u32, PackType)

Source

fn reorder_child<P: IsA<Widget>>(&self, child: &P, position: i32)

Source

fn set_baseline_position(&self, position: BaselinePosition)

Source

fn set_center_widget<P: IsA<Widget>>(&self, widget: Option<&P>)

Source

fn set_child_packing<P: IsA<Widget>>( &self, child: &P, expand: bool, fill: bool, padding: u32, pack_type: PackType, )

Source

fn set_homogeneous(&self, homogeneous: bool)

Source

fn set_spacing(&self, spacing: i32)

Source

fn get_child_position<T: IsA<Widget>>(&self, item: &T) -> i32

Source

fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32)

Source

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

Source

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

Source

fn connect_property_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