Trait ux::FlowLayoutExt [−][src]
pub trait FlowLayoutExt: 'static {}Show methods
pub fn get_column_spacing(&self) -> f32; pub fn get_column_width(&self) -> (f32, f32); pub fn get_homogeneous(&self) -> bool; pub fn get_orientation(&self) -> FlowOrientation; pub fn get_row_height(&self) -> (f32, f32); pub fn get_row_spacing(&self) -> f32; pub fn get_snap_to_grid(&self) -> bool; pub fn set_column_spacing(&self, spacing: f32); pub fn set_column_width(&self, min_width: f32, max_width: f32); pub fn set_homogeneous(&self, homogeneous: bool); pub fn set_orientation(&self, orientation: FlowOrientation); pub fn set_row_height(&self, min_height: f32, max_height: f32); pub fn set_row_spacing(&self, spacing: f32); pub fn set_snap_to_grid(&self, snap_to_grid: bool); pub fn get_property_max_column_width(&self) -> f32; pub fn set_property_max_column_width(&self, max_column_width: f32); pub fn get_property_max_row_height(&self) -> f32; pub fn set_property_max_row_height(&self, max_row_height: f32); pub fn get_property_min_column_width(&self) -> f32; pub fn set_property_min_column_width(&self, min_column_width: f32); pub fn get_property_min_row_height(&self) -> f32; pub fn set_property_min_row_height(&self, min_row_height: f32); pub fn connect_property_column_spacing_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_homogeneous_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_max_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_max_row_height_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_min_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_min_row_height_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_row_spacing_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self); pub fn connect_property_snap_to_grid_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
Required methods
pub fn get_column_spacing(&self) -> f32
[src]
Retrieves the spacing between columns
Returns
the spacing between columns of the FlowLayout
,
in pixels
pub fn get_column_width(&self) -> (f32, f32)
[src]
Retrieves the minimum and maximum column widths
min_width
return location for the minimum column width, or None
max_width
return location for the maximum column width, or None
pub fn get_homogeneous(&self) -> bool
[src]
pub fn get_orientation(&self) -> FlowOrientation
[src]
pub fn get_row_height(&self) -> (f32, f32)
[src]
Retrieves the minimum and maximum row heights
min_height
return location for the minimum row height, or None
max_height
return location for the maximum row height, or None
pub fn get_row_spacing(&self) -> f32
[src]
pub fn get_snap_to_grid(&self) -> bool
[src]
Retrieves the value of FlowLayout:snap-to-grid
property
Returns
true
if the self
is placing its children on a grid
pub fn set_column_spacing(&self, spacing: f32)
[src]
pub fn set_column_width(&self, min_width: f32, max_width: f32)
[src]
Sets the minimum and maximum widths that a column can have
min_width
minimum width of a column
max_width
maximum width of a column
pub fn set_homogeneous(&self, homogeneous: bool)
[src]
Sets whether the self
should allocate the same space for
each child
homogeneous
whether the layout should be homogeneous or not
pub fn set_orientation(&self, orientation: FlowOrientation)
[src]
Sets the orientation of the flow layout
The orientation controls the direction used to allocate the children: either horizontally or vertically. The orientation also controls the direction of the overflowing
orientation
the orientation of the layout
pub fn set_row_height(&self, min_height: f32, max_height: f32)
[src]
Sets the minimum and maximum heights that a row can have
min_height
the minimum height of a row
max_height
the maximum height of a row
pub fn set_row_spacing(&self, spacing: f32)
[src]
pub fn set_snap_to_grid(&self, snap_to_grid: bool)
[src]
Whether the self
should place its children on a grid.
snap_to_grid
true
if self
should place its children on a grid
pub fn get_property_max_column_width(&self) -> f32
[src]
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
pub fn set_property_max_column_width(&self, max_column_width: f32)
[src]
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
pub fn get_property_max_row_height(&self) -> f32
[src]
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
pub fn set_property_max_row_height(&self, max_row_height: f32)
[src]
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
pub fn get_property_min_column_width(&self) -> f32
[src]
Minimum width for each column in the layout, in pixels
pub fn set_property_min_column_width(&self, min_column_width: f32)
[src]
Minimum width for each column in the layout, in pixels
pub fn get_property_min_row_height(&self) -> f32
[src]
Minimum height for each row in the layout, in pixels
pub fn set_property_min_row_height(&self, min_row_height: f32)
[src]
Minimum height for each row in the layout, in pixels
pub fn connect_property_column_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
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_max_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
pub fn connect_property_max_row_height_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_min_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
pub fn connect_property_min_row_height_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_row_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
pub fn connect_property_snap_to_grid_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
[src]
F: 'static + Fn(&Self),
Implementors
impl<O> FlowLayoutExt for O where
O: IsA<FlowLayout>,
[src]
impl<O> FlowLayoutExt for O where
O: IsA<FlowLayout>,
[src]pub fn get_column_spacing(&self) -> f32
[src]
pub fn get_column_width(&self) -> (f32, f32)
[src]
pub fn get_homogeneous(&self) -> bool
[src]
pub fn get_orientation(&self) -> FlowOrientation
[src]
pub fn get_row_height(&self) -> (f32, f32)
[src]
pub fn get_row_spacing(&self) -> f32
[src]
pub fn get_snap_to_grid(&self) -> bool
[src]
pub fn set_column_spacing(&self, spacing: f32)
[src]
pub fn set_column_width(&self, min_width: f32, max_width: f32)
[src]
pub fn set_homogeneous(&self, homogeneous: bool)
[src]
pub fn set_orientation(&self, orientation: FlowOrientation)
[src]
pub fn set_row_height(&self, min_height: f32, max_height: f32)
[src]
pub fn set_row_spacing(&self, spacing: f32)
[src]
pub fn set_snap_to_grid(&self, snap_to_grid: bool)
[src]
pub fn get_property_max_column_width(&self) -> f32
[src]
pub fn set_property_max_column_width(&self, max_column_width: f32)
[src]
pub fn get_property_max_row_height(&self) -> f32
[src]
pub fn set_property_max_row_height(&self, max_row_height: f32)
[src]
pub fn get_property_min_column_width(&self) -> f32
[src]
pub fn set_property_min_column_width(&self, min_column_width: f32)
[src]
pub fn get_property_min_row_height(&self) -> f32
[src]
pub fn set_property_min_row_height(&self, min_row_height: f32)
[src]
pub fn connect_property_column_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
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_max_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_max_row_height_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_min_column_width_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_min_row_height_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_row_spacing_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_snap_to_grid_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),