Trait FlowLayoutExt

Source
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

Trait containing all FlowLayout methods.

§Implementors

FlowLayout

Required Methods§

Source

fn get_column_spacing(&self) -> f32

Retrieves the spacing between columns

§Returns

the spacing between columns of the FlowLayout, in pixels

Source

fn get_column_width(&self) -> (f32, f32)

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

Source

fn get_homogeneous(&self) -> bool

Retrieves whether the self is homogeneous

§Returns

true if the FlowLayout is homogeneous

Source

fn get_orientation(&self) -> FlowOrientation

Retrieves the orientation of the self

§Returns

the orientation of the FlowLayout

Source

fn get_row_height(&self) -> (f32, f32)

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

Source

fn get_row_spacing(&self) -> f32

Retrieves the spacing between rows

§Returns

the spacing between rows of the FlowLayout, in pixels

Source

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

Source

fn set_column_spacing(&self, spacing: f32)

Sets the space between columns, in pixels

§spacing

the space between columns

Source

fn set_column_width(&self, min_width: f32, max_width: f32)

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

Source

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

Source

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

Source

fn set_row_height(&self, min_height: f32, max_height: f32)

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

Source

fn set_row_spacing(&self, spacing: f32)

Sets the spacing between rows, in pixels

§spacing

the space between rows

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn get_property_min_column_width(&self) -> f32

Minimum width for each column in the layout, in pixels

Source

fn set_property_min_column_width(&self, min_column_width: f32)

Minimum width for each column in the layout, in pixels

Source

fn get_property_min_row_height(&self) -> f32

Minimum height for each row in the layout, in pixels

Source

fn set_property_min_row_height(&self, min_row_height: f32)

Minimum height for each row in the layout, in pixels

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_min_row_height_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_row_spacing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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.

Implementors§