Skip to main content

LayoutSurface

Trait LayoutSurface 

Source
pub trait LayoutSurface {
Show 21 methods // Provided methods fn width(&self, width: f32, unit: Unit) -> &Self { ... } fn width_len(&self, length: Length) -> &Self { ... } fn height(&self, height: f32, unit: Unit) -> &Self { ... } fn height_len(&self, length: Length) -> &Self { ... } fn fill_width(&self) -> &Self { ... } fn fill_height(&self) -> &Self { ... } fn fill_size(&self) -> &Self { ... } fn fill_width_percent(&self, percent: f32) -> &Self { ... } fn fill_height_percent(&self, percent: f32) -> &Self { ... } fn min_width(&self, value: f32, unit: Unit) -> &Self { ... } fn min_width_len(&self, length: Length) -> &Self { ... } fn max_width(&self, value: f32, unit: Unit) -> &Self { ... } fn max_width_len(&self, length: Length) -> &Self { ... } fn min_height(&self, value: f32, unit: Unit) -> &Self { ... } fn min_height_len(&self, length: Length) -> &Self { ... } fn max_height(&self, value: f32, unit: Unit) -> &Self { ... } fn max_height_len(&self, length: Length) -> &Self { ... } fn margin(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self { ... } fn position_type(&self, position_type: PositionType) -> &Self { ... } fn position_absolute(&self) -> &Self { ... } fn position(&self, left: f32, top: f32) -> &Self { ... }
}

Provided Methods§

Source

fn width(&self, width: f32, unit: Unit) -> &Self

Source

fn width_len(&self, length: Length) -> &Self

Source

fn height(&self, height: f32, unit: Unit) -> &Self

Source

fn height_len(&self, length: Length) -> &Self

Source

fn fill_width(&self) -> &Self

Source

fn fill_height(&self) -> &Self

Source

fn fill_size(&self) -> &Self

Source

fn fill_width_percent(&self, percent: f32) -> &Self

Source

fn fill_height_percent(&self, percent: f32) -> &Self

Source

fn min_width(&self, value: f32, unit: Unit) -> &Self

Source

fn min_width_len(&self, length: Length) -> &Self

Source

fn max_width(&self, value: f32, unit: Unit) -> &Self

Source

fn max_width_len(&self, length: Length) -> &Self

Source

fn min_height(&self, value: f32, unit: Unit) -> &Self

Source

fn min_height_len(&self, length: Length) -> &Self

Source

fn max_height(&self, value: f32, unit: Unit) -> &Self

Source

fn max_height_len(&self, length: Length) -> &Self

Source

fn margin(&self, left: f32, top: f32, right: f32, bottom: f32) -> &Self

Source

fn position_type(&self, position_type: PositionType) -> &Self

Source

fn position_absolute(&self) -> &Self

Source

fn position(&self, left: f32, top: f32) -> &Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§