Trait BoxLayoutExt

Source
pub trait BoxLayoutExt: 'static {
    // Required methods
    fn get_homogeneous(&self) -> bool;
    fn get_orientation(&self) -> Orientation;
    fn get_pack_start(&self) -> bool;
    fn get_spacing(&self) -> u32;
    fn set_homogeneous(&self, homogeneous: bool);
    fn set_orientation(&self, orientation: Orientation);
    fn set_pack_start(&self, pack_start: bool);
    fn set_spacing(&self, spacing: u32);
    fn connect_property_homogeneous_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_orientation_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_pack_start_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
    fn connect_property_spacing_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}
Expand description

Trait containing all BoxLayout methods.

§Implementors

BoxLayout

Required Methods§

Source

fn get_homogeneous(&self) -> bool

Retrieves if the children sizes are allocated homogeneously.

§Returns

true if the BoxLayout is arranging its children homogeneously, and false otherwise

Source

fn get_orientation(&self) -> Orientation

Retrieves the orientation of the self.

§Returns

the orientation of the layout

Source

fn get_pack_start(&self) -> bool

Retrieves the value set using BoxLayoutExt::set_pack_start

§Returns

true if the BoxLayout should pack children at the beginning of the layout, and false otherwise

Source

fn get_spacing(&self) -> u32

Retrieves the spacing set using BoxLayoutExt::set_spacing

§Returns

the spacing between children of the BoxLayout

Source

fn set_homogeneous(&self, homogeneous: bool)

Sets whether the size of self children should be homogeneous

§homogeneous

true if the layout should be homogeneous

Source

fn set_orientation(&self, orientation: Orientation)

Sets the orientation of the BoxLayout layout manager.

§orientation

the orientation of the BoxLayout

Source

fn set_pack_start(&self, pack_start: bool)

Sets whether children of self should be layed out by appending them or by prepending them

§pack_start

true if the self should pack children at the beginning of the layout

Source

fn set_spacing(&self, spacing: u32)

Sets the spacing between children of self

§spacing

the spacing between children of the layout, in pixels

Source

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

Source

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

Source

fn connect_property_pack_start_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§