FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrushSelectorConveter

    struct · ferroui-diagnostics · v0.5.0

    struct BrushSelectorConveter
    

    Converts a brush to brush when it is the brush of the parameter (the same brush, or a solid color brush of the same color, transform and opacity), and to null otherwise: the brush that marks the selected one of a row of sample brushes.

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

    Returns a strong reference to this object.

    Source

    brush_property

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

    Defines the brush property.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    as_value_converter

    fn as_value_converter(this: Ref<Self>) -> Rc<dyn IValueConverter>
    

    The converter as its contract (the class implements it in the original).

    Source

    brush

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

    The brush the selected brush converts to.

    A plain property upstream: setting it raises no change notification.

    Source

    set_brush

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

    Source

    convert

    fn convert(self: &Self, value: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
    

    Convert.

    Source

    Trait implementations

    Availability

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