Skip to main content

ContainerSizeExt

Trait ContainerSizeExt 

Source
pub trait ContainerSizeExt: LayoutExt {
    // Provided methods
    fn width(self, width: impl Into<Size>) -> Self { ... }
    fn height(self, height: impl Into<Size>) -> Self { ... }
    fn expanded(self) -> Self { ... }
}
Expand description

Methods for setting an element’s width and height.

Provided Methods§

Source

fn width(self, width: impl Into<Size>) -> Self

Set the element’s width. See Size.

Source

fn height(self, height: impl Into<Size>) -> Self

Set the element’s height. See Size.

Source

fn expanded(self) -> Self

Expand both width and height using Size::fill().

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ContainerSizeExt for ArrowIcon

Source§

impl ContainerSizeExt for ImageViewer

Source§

impl ContainerSizeExt for OverflowedContent

Source§

impl ContainerSizeExt for ScrollView

Source§

impl ContainerSizeExt for SvgViewer

Source§

impl ContainerSizeExt for TickIcon

Source§

impl<D, B> ContainerSizeExt for VirtualScrollView<D, B>
where D: PartialEq, B: Fn(usize, &D) -> Element,

Source§

impl<T> ContainerSizeExt for Portal<T>

Implementors§

Source§

impl<T> ContainerSizeExt for T
where T: ContainerExt,