ContainerWithContentExt

Trait ContainerWithContentExt 

pub trait ContainerWithContentExt: LayoutExt {
    // Provided methods
    fn direction(self, direction: Direction) -> Self { ... }
    fn main_align(self, main_align: Alignment) -> Self { ... }
    fn cross_align(self, cross_align: Alignment) -> Self { ... }
    fn spacing(self, spacing: impl Into<f32>) -> Self { ... }
    fn content(self, content: Content) -> Self { ... }
    fn center(self) -> Self { ... }
    fn offset_x(self, offset_x: impl Into<f32>) -> Self { ... }
    fn offset_y(self, offset_y: impl Into<f32>) -> Self { ... }
    fn vertical(self) -> Self { ... }
    fn horizontal(self) -> Self { ... }
}

Provided Methods§

fn direction(self, direction: Direction) -> Self

fn main_align(self, main_align: Alignment) -> Self

fn cross_align(self, cross_align: Alignment) -> Self

fn spacing(self, spacing: impl Into<f32>) -> Self

fn content(self, content: Content) -> Self

fn center(self) -> Self

fn offset_x(self, offset_x: impl Into<f32>) -> Self

fn offset_y(self, offset_y: impl Into<f32>) -> Self

fn vertical(self) -> Self

fn horizontal(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 ContainerWithContentExt for Canvas

Source§

impl ContainerWithContentExt for ImageViewer

Implementors§