FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableSolidColorBrush

    struct · ferroui-base · v0.5.0

    struct ImmutableSolidColorBrush
    

    Fills an area with a solid color.

    View source

    Members

    new

    fn new(color: Color) -> Self
    

    Creates a fully opaque brush with the given color.

    Source

    with_opacity

    fn with_opacity(color: Color, opacity: f64) -> Self
    

    Creates a brush with the given color and opacity.

    Source

    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.

    Source

    from_uint32

    fn from_uint32(color: u32) -> Self
    

    Creates a brush with the color given as an 0xAARRGGBB value.

    Source

    from_brush

    fn from_brush(source: &dyn ISolidColorBrush) -> Self
    

    Creates an immutable copy of source.

    Source

    color

    fn color(self: &Self) -> Color
    

    The color of the brush.

    Source

    opacity

    fn opacity(self: &Self) -> f64
    

    The opacity of the brush.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.