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;
}
Required Methods§
Sourcefn get_homogeneous(&self) -> bool
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
Sourcefn get_orientation(&self) -> Orientation
fn get_orientation(&self) -> Orientation
Sourcefn get_pack_start(&self) -> bool
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
Sourcefn get_spacing(&self) -> u32
fn get_spacing(&self) -> u32
Retrieves the spacing set using BoxLayoutExt::set_spacing
§Returns
the spacing between children of the BoxLayout
Sourcefn set_homogeneous(&self, homogeneous: bool)
fn set_homogeneous(&self, homogeneous: bool)
Sets whether the size of self
children should be
homogeneous
§homogeneous
true
if the layout should be homogeneous
Sourcefn set_orientation(&self, orientation: Orientation)
fn set_orientation(&self, orientation: Orientation)
Sourcefn set_pack_start(&self, pack_start: bool)
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
Sourcefn set_spacing(&self, spacing: u32)
fn set_spacing(&self, spacing: u32)
Sets the spacing between children of self
§spacing
the spacing between children of the layout, in pixels
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
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.