FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrushEditor

    struct · ferroui-diagnostics · v0.5.0

    struct BrushEditor
    

    An editor of a brush: shows the brush with the text of its color, opens a color view in a flyout when pressed, and clears the brush with the clear button of its template (PART_ClearButton).

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

    Returns a strong reference to this object.

    Source

    brush_property

    fn brush_property() -> &'static DirectProperty<BrushEditor, Option<Rc<dyn IBrush>>>
    

    Defines the Brush property.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    brush

    fn brush(self: &Self) -> Option<Rc<dyn IBrush>>
    

    Source

    set_brush

    fn set_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
    

    Source

    Trait implementations

    Availability

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