FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SolidColorBrush

    struct · ferroui-base · v0.5.0

    struct SolidColorBrush
    

    Fills an area with a solid color.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SolidColorBrush>
    

    Returns a strong reference to this object.

    Source

    color_property

    fn color_property() -> &'static StyledProperty<Color>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_color

    fn with_color(color: Color) -> Ref<Self>
    

    Creates a brush with the given color.

    Source

    with_color_and_opacity

    fn with_color_and_opacity(color: Color, opacity: f64) -> Ref<Self>
    

    Creates a brush with the given color and opacity.

    Source

    from_uint32

    fn from_uint32(color: u32) -> Ref<Self>
    

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

    Source

    color

    fn color(self: &Self) -> Color
    

    The color of the brush.

    Source

    set_color

    fn set_color(self: &Self, value: Color)
    

    Source

    parse

    fn parse(s: &str) -> Result<Ref<SolidColorBrush>, FormatError>
    

    Parses a brush string.

    Source

    to_immutable

    fn to_immutable(self: &Self) -> Rc<dyn IImmutableBrush>
    

    Creates an immutable clone of the brush.

    Source

    Trait implementations

    Availability

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