Skip to main content

TitlebarButtonThemePartialExt

Trait TitlebarButtonThemePartialExt 

pub trait TitlebarButtonThemePartialExt {
    // Required methods
    fn background(self, background: impl Into<Color>) -> Self;
    fn hover_background(self, hover_background: impl Into<Color>) -> Self;
    fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self;
    fn width(self, width: impl Into<Size>) -> Self;
    fn height(self, height: impl Into<Size>) -> Self;
}
Available on crate feature titlebar only.

Required Methods§

fn background(self, background: impl Into<Color>) -> Self

fn hover_background(self, hover_background: impl Into<Color>) -> Self

fn corner_radius(self, corner_radius: impl Into<CornerRadius>) -> Self

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

fn height(self, height: impl Into<Size>) -> 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.

Implementors§