Trait ux::BoxLayoutExt [−][src]
pub trait BoxLayoutExt: 'static { pub fn get_homogeneous(&self) -> bool; pub fn get_orientation(&self) -> Orientation; pub fn get_pack_start(&self) -> bool; pub fn get_spacing(&self) -> u32; pub fn set_homogeneous(&self, homogeneous: bool); pub fn set_orientation(&self, orientation: Orientation); pub fn set_pack_start(&self, pack_start: bool); pub fn set_spacing(&self, spacing: u32); pub fn connect_property_homogeneous_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_orientation_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_pack_start_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_spacing_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self); }
Required methods
pub fn get_homogeneous(&self) -> bool
[src]
Retrieves if the children sizes are allocated homogeneously.
Returns
true
if the BoxLayout
is arranging its children
homogeneously, and false
otherwise
pub fn get_orientation(&self) -> Orientation
[src]
pub fn get_pack_start(&self) -> bool
[src]
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
pub fn get_spacing(&self) -> u32
[src]
Retrieves the spacing set using BoxLayoutExt::set_spacing
Returns
the spacing between children of the BoxLayout
pub fn set_homogeneous(&self, homogeneous: bool)
[src]
Sets whether the size of self
children should be
homogeneous
homogeneous
true
if the layout should be homogeneous
pub fn set_orientation(&self, orientation: Orientation)
[src]
pub fn set_pack_start(&self, pack_start: bool)
[src]
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
pub fn set_spacing(&self, spacing: u32)
[src]
Sets the spacing between children of self
spacing
the spacing between children of the layout, in pixels
pub fn connect_property_homogeneous_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_orientation_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_pack_start_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> BoxLayoutExt for O where
O: IsA<BoxLayout>,
[src]
impl<O> BoxLayoutExt for O where
O: IsA<BoxLayout>,
[src]pub fn get_homogeneous(&self) -> bool
[src]
pub fn get_orientation(&self) -> Orientation
[src]
pub fn get_pack_start(&self) -> bool
[src]
pub fn get_spacing(&self) -> u32
[src]
pub fn set_homogeneous(&self, homogeneous: bool)
[src]
pub fn set_orientation(&self, orientation: Orientation)
[src]
pub fn set_pack_start(&self, pack_start: bool)
[src]
pub fn set_spacing(&self, spacing: u32)
[src]
pub fn connect_property_homogeneous_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_orientation_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_pack_start_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),