Enum druid::widget::BackgroundBrush
source · #[non_exhaustive]
pub enum BackgroundBrush<T> {
Color(Color),
ColorKey(Key<Color>),
Linear(LinearGradient),
Radial(RadialGradient),
Fixed(FixedGradient),
Painter(Painter<T>),
}
Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Color(Color)
ColorKey(Key<Color>)
Linear(LinearGradient)
Radial(RadialGradient)
Fixed(FixedGradient)
Painter(Painter<T>)
Implementations§
Trait Implementations§
source§impl<T> From<Color> for BackgroundBrush<T>
impl<T> From<Color> for BackgroundBrush<T>
source§fn from(src: Color) -> BackgroundBrush<T>
fn from(src: Color) -> BackgroundBrush<T>
Converts to this type from the input type.
source§impl<T> From<FixedGradient> for BackgroundBrush<T>
impl<T> From<FixedGradient> for BackgroundBrush<T>
source§fn from(src: FixedGradient) -> BackgroundBrush<T>
fn from(src: FixedGradient) -> BackgroundBrush<T>
Converts to this type from the input type.
source§impl<T> From<LinearGradient> for BackgroundBrush<T>
impl<T> From<LinearGradient> for BackgroundBrush<T>
source§fn from(src: LinearGradient) -> BackgroundBrush<T>
fn from(src: LinearGradient) -> BackgroundBrush<T>
Converts to this type from the input type.
source§impl<T> From<PaintBrush> for BackgroundBrush<T>
impl<T> From<PaintBrush> for BackgroundBrush<T>
source§fn from(src: PaintBrush) -> BackgroundBrush<T>
fn from(src: PaintBrush) -> BackgroundBrush<T>
Converts to this type from the input type.
source§impl<T> From<Painter<T>> for BackgroundBrush<T>
impl<T> From<Painter<T>> for BackgroundBrush<T>
source§fn from(src: Painter<T>) -> BackgroundBrush<T>
fn from(src: Painter<T>) -> BackgroundBrush<T>
Converts to this type from the input type.
source§impl<T> From<RadialGradient> for BackgroundBrush<T>
impl<T> From<RadialGradient> for BackgroundBrush<T>
source§fn from(src: RadialGradient) -> BackgroundBrush<T>
fn from(src: RadialGradient) -> BackgroundBrush<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BackgroundBrush<T>
impl<T> !Send for BackgroundBrush<T>
impl<T> !Sync for BackgroundBrush<T>
impl<T> Unpin for BackgroundBrush<T>
impl<T> !UnwindSafe for BackgroundBrush<T>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.