ImmutableSolidColorBrush
struct · ferroui-base · v0.5.0
struct ImmutableSolidColorBrush
Fills an area with a solid color.
Members
new
fn new(color: Color) -> Self
Creates a fully opaque brush with the given color.
with_opacity
fn with_opacity(color: Color, opacity: f64) -> Self
Creates a brush with the given color and opacity.
with_transforms
fn with_transforms(color: Color, opacity: f64, transform: Option<Rc<ImmutableTransform>>, relative_transform: Option<Rc<ImmutableTransform>>) -> Self
Creates a brush with the given color, opacity and transforms.
from_uint32
fn from_uint32(color: u32) -> Self
Creates a brush with the color given as an 0xAARRGGBB value.
from_brush
fn from_brush(source: &dyn ISolidColorBrush) -> Self
Creates an immutable copy of source.
color
fn color(self: &Self) -> Color
The color of the brush.
opacity
fn opacity(self: &Self) -> f64
The opacity of the brush.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneDebugPartialEqDisplayIBrushISolidColorBrushIImmutableBrushIImmutableSolidColorBrushMarkupTypedValueTypeRegistration
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.