FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImageBrush

    struct · ferroui-base · v0.5.0

    struct ImageBrush
    

    Paints an area with an image.

    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<ImageBrush>
    

    Returns a strong reference to this object.

    Source

    source_property

    fn source_property() -> &'static StyledProperty<Option<Rc<dyn IImageBrushSource>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_source

    fn with_source(source: Option<Rc<dyn IImageBrushSource>>) -> Ref<Self>
    

    Creates a brush that draws source.

    Source

    source

    fn source(self: &Self) -> Option<Rc<dyn IImageBrushSource>>
    

    The image to draw.

    Source

    set_source

    fn set_source(self: &Self, value: Option<Rc<dyn IImageBrushSource>>)
    

    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.