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§
Sourcefn min_height<M>(self, value: impl IntoProp<f64, M>) -> Self
fn min_height<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn max_height<M>(self, value: impl IntoProp<f64, M>) -> Self
fn max_height<M>(self, value: impl IntoProp<f64, M>) -> Self
Sourcefn horizontal_alignment<M>(
self,
value: impl IntoProp<HorizontalAlignment, M>,
) -> Self
fn horizontal_alignment<M>( self, value: impl IntoProp<HorizontalAlignment, M>, ) -> Self
Sourcefn vertical_alignment<M>(
self,
value: impl IntoProp<VerticalAlignment, M>,
) -> Self
fn vertical_alignment<M>( self, value: impl IntoProp<VerticalAlignment, M>, ) -> Self
Sourcefn use_layout_rounding<M>(self, value: impl IntoProp<bool, M>) -> Self
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".