Skip to main content

RoundingExt

Trait RoundingExt 

Source
pub trait RoundingExt: Sized {
    // Required methods
    fn button_rounding(self) -> Self;
    fn panel_rounding(self) -> Self;
    fn no_rounding(self) -> Self;
    fn pill_rounding(self) -> Self;
}
Expand description

Generic extension trait for widgets that support rounding

Required Methods§

Source

fn button_rounding(self) -> Self

Apply standard button rounding

Source

fn panel_rounding(self) -> Self

Apply panel rounding

Source

fn no_rounding(self) -> Self

Apply no rounding

Source

fn pill_rounding(self) -> Self

Apply pill rounding (fully rounded)

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§