Trait ContainerExt

Source
pub trait ContainerExt: LayoutExt {
    // Provided methods
    fn position(self, position: impl Into<Position>) -> Self { ... }
    fn width(self, width: impl Into<Size>) -> Self { ... }
    fn height(self, height: impl Into<Size>) -> Self { ... }
    fn padding(self, padding: impl Into<Gaps>) -> Self { ... }
    fn margin(self, margin: impl Into<Gaps>) -> Self { ... }
    fn min_width(self, minimum_width: impl Into<Size>) -> Self { ... }
    fn min_height(self, minimum_height: impl Into<Size>) -> Self { ... }
    fn max_width(self, maximum_width: impl Into<Size>) -> Self { ... }
    fn max_height(self, maximum_height: impl Into<Size>) -> Self { ... }
    fn visible_width(self, visible_width: impl Into<VisibleSize>) -> Self { ... }
    fn visible_height(self, visible_height: impl Into<VisibleSize>) -> Self { ... }
    fn expanded(self) -> Self { ... }
}

Provided Methods§

Source

fn position(self, position: impl Into<Position>) -> Self

Source

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

Source

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

Source

fn padding(self, padding: impl Into<Gaps>) -> Self

Source

fn margin(self, margin: impl Into<Gaps>) -> Self

Source

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

Source

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

Source

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

Source

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

Source

fn visible_width(self, visible_width: impl Into<VisibleSize>) -> Self

Source

fn visible_height(self, visible_height: impl Into<VisibleSize>) -> Self

Source

fn expanded(self) -> Self

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§

Source§

impl ContainerExt for DraggableCanvas

Source§

impl ContainerExt for Gif

Source§

impl ContainerExt for Plot

Implementors§