Skip to main content

Styleable

Trait Styleable 

Source
pub trait Styleable: Sized {
    // Required methods
    fn fill_width(self) -> Self;
    fn fill_height(self) -> Self;
    fn fit(self) -> Self;
    fn hit_testable(self, on: bool) -> Self;
    fn padding(self, padding: impl Into<Edges>) -> Self;

    // Provided methods
    fn fill_size(self) -> Self { ... }
    fn padding_xy(self, x: f32, y: f32) -> Self { ... }
}

Required Methods§

Source

fn fill_width(self) -> Self

Source

fn fill_height(self) -> Self

Source

fn fit(self) -> Self

Source

fn hit_testable(self, on: bool) -> Self

Source

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

Provided Methods§

Source

fn fill_size(self) -> Self

Source

fn padding_xy(self, x: f32, y: f32) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§