ContainerSizeExt

Trait ContainerSizeExt 

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 { ... }
}

Provided Methods§

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

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

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", so this trait is not object safe.

Implementations on Foreign Types§

§

impl ContainerSizeExt for ArrowIcon

§

impl ContainerSizeExt for GifViewer

§

impl ContainerSizeExt for ImageViewer

§

impl ContainerSizeExt for OverflowedContent

§

impl ContainerSizeExt for ScrollView

§

impl ContainerSizeExt for TickIcon

§

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

§

impl<T> ContainerSizeExt for Portal<T>

Implementors§

§

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