FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DrawingBrush

    struct · ferroui-base · v0.5.0

    struct DrawingBrush
    

    Paints an area with a Drawing.

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

    Returns a strong reference to this object.

    Source

    drawing_property

    fn drawing_property() -> &'static StyledProperty<Option<Ref<Drawing>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_drawing

    fn with_drawing(drawing: impl Into<Nullable<Drawing>>) -> Ref<Self>
    

    Creates a brush that draws drawing.

    Source

    drawing

    fn drawing(self: &Self) -> Option<Ref<Drawing>>
    

    The drawing to draw.

    Source

    set_drawing

    fn set_drawing(self: &Self, value: impl Into<Nullable<Drawing>>)
    

    Source

    create_content

    fn create_content(self: &Self) -> Option<Rc<dyn ISceneBrushContent>>
    

    Records the current content of the brush: what the drawing draws. None when there is no drawing or it draws nothing.

    Source

    Trait implementations

    Availability

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