pub trait FlowLayoutExt: 'static {
Show 31 methods
// Required methods
fn get_column_spacing(&self) -> f32;
fn get_column_width(&self) -> (f32, f32);
fn get_homogeneous(&self) -> bool;
fn get_orientation(&self) -> FlowOrientation;
fn get_row_height(&self) -> (f32, f32);
fn get_row_spacing(&self) -> f32;
fn get_snap_to_grid(&self) -> bool;
fn set_column_spacing(&self, spacing: f32);
fn set_column_width(&self, min_width: f32, max_width: f32);
fn set_homogeneous(&self, homogeneous: bool);
fn set_orientation(&self, orientation: FlowOrientation);
fn set_row_height(&self, min_height: f32, max_height: f32);
fn set_row_spacing(&self, spacing: f32);
fn set_snap_to_grid(&self, snap_to_grid: bool);
fn get_property_max_column_width(&self) -> f32;
fn set_property_max_column_width(&self, max_column_width: f32);
fn get_property_max_row_height(&self) -> f32;
fn set_property_max_row_height(&self, max_row_height: f32);
fn get_property_min_column_width(&self) -> f32;
fn set_property_min_column_width(&self, min_column_width: f32);
fn get_property_min_row_height(&self) -> f32;
fn set_property_min_row_height(&self, min_row_height: f32);
fn connect_property_column_spacing_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_max_column_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_max_row_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_min_column_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_min_row_height_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_row_spacing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
fn connect_property_snap_to_grid_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId;
}
Expand description
Required Methods§
Sourcefn get_column_spacing(&self) -> f32
fn get_column_spacing(&self) -> f32
Retrieves the spacing between columns
§Returns
the spacing between columns of the FlowLayout
,
in pixels
Sourcefn get_column_width(&self) -> (f32, f32)
fn get_column_width(&self) -> (f32, f32)
Sourcefn get_homogeneous(&self) -> bool
fn get_homogeneous(&self) -> bool
Sourcefn get_orientation(&self) -> FlowOrientation
fn get_orientation(&self) -> FlowOrientation
Sourcefn get_row_height(&self) -> (f32, f32)
fn get_row_height(&self) -> (f32, f32)
Sourcefn get_row_spacing(&self) -> f32
fn get_row_spacing(&self) -> f32
Sourcefn get_snap_to_grid(&self) -> bool
fn get_snap_to_grid(&self) -> bool
Retrieves the value of FlowLayout:snap-to-grid
property
§Returns
true
if the self
is placing its children on a grid
Sourcefn set_column_spacing(&self, spacing: f32)
fn set_column_spacing(&self, spacing: f32)
Sourcefn set_column_width(&self, min_width: f32, max_width: f32)
fn set_column_width(&self, min_width: f32, max_width: f32)
Sourcefn set_homogeneous(&self, homogeneous: bool)
fn set_homogeneous(&self, homogeneous: bool)
Sets whether the self
should allocate the same space for
each child
§homogeneous
whether the layout should be homogeneous or not
Sourcefn set_orientation(&self, orientation: FlowOrientation)
fn set_orientation(&self, orientation: FlowOrientation)
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
Sourcefn set_row_height(&self, min_height: f32, max_height: f32)
fn set_row_height(&self, min_height: f32, max_height: f32)
Sourcefn set_row_spacing(&self, spacing: f32)
fn set_row_spacing(&self, spacing: f32)
Sourcefn set_snap_to_grid(&self, snap_to_grid: bool)
fn set_snap_to_grid(&self, snap_to_grid: bool)
Whether the self
should place its children on a grid.
§snap_to_grid
true
if self
should place its children on a grid
Sourcefn get_property_max_column_width(&self) -> f32
fn get_property_max_column_width(&self) -> f32
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
Sourcefn set_property_max_column_width(&self, max_column_width: f32)
fn set_property_max_column_width(&self, max_column_width: f32)
Maximum width for each column in the layout, in pixels. If set to -1 the width will be the maximum child width
Sourcefn get_property_max_row_height(&self) -> f32
fn get_property_max_row_height(&self) -> f32
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
Sourcefn set_property_max_row_height(&self, max_row_height: f32)
fn set_property_max_row_height(&self, max_row_height: f32)
Maximum height for each row in the layout, in pixels. If set to -1 the width will be the maximum child height
Sourcefn get_property_min_column_width(&self) -> f32
fn get_property_min_column_width(&self) -> f32
Minimum width for each column in the layout, in pixels
Sourcefn set_property_min_column_width(&self, min_column_width: f32)
fn set_property_min_column_width(&self, min_column_width: f32)
Minimum width for each column in the layout, in pixels
Sourcefn get_property_min_row_height(&self) -> f32
fn get_property_min_row_height(&self) -> f32
Minimum height for each row in the layout, in pixels
Sourcefn set_property_min_row_height(&self, min_row_height: f32)
fn set_property_min_row_height(&self, min_row_height: f32)
Minimum height for each row in the layout, in pixels
fn connect_property_column_spacing_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_max_column_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_max_row_height_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_min_column_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_min_row_height_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_row_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_property_snap_to_grid_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.