Skip to main content

LayoutableProps

Trait LayoutableProps 

Source
pub trait LayoutableProps: ElementBuilder {
    // Provided methods
    fn width<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn height<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn min_width<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn max_width<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn min_height<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn max_height<M>(self, value: impl IntoProp<f64, M>) -> Self { ... }
    fn margin<M>(self, value: impl IntoProp<Thickness, M>) -> Self { ... }
    fn horizontal_alignment<M>(
        self,
        value: impl IntoProp<HorizontalAlignment, M>,
    ) -> Self { ... }
    fn vertical_alignment<M>(
        self,
        value: impl IntoProp<VerticalAlignment, M>,
    ) -> Self { ... }
    fn use_layout_rounding<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
}
Expand description

The properties and routed events of Layoutable.

Provided Methods§

Source

fn width<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn height<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn min_width<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn max_width<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn min_height<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn max_height<M>(self, value: impl IntoProp<f64, M>) -> Self

Source

fn margin<M>(self, value: impl IntoProp<Thickness, M>) -> Self

Source

fn horizontal_alignment<M>( self, value: impl IntoProp<HorizontalAlignment, M>, ) -> Self

Source

fn vertical_alignment<M>( self, value: impl IntoProp<VerticalAlignment, M>, ) -> Self

Source

fn use_layout_rounding<M>(self, value: impl IntoProp<bool, M>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§