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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<BrushSelectorConveter>
Returns a strong reference to this object.
brush_property
fn brush_property() -> &'static DirectProperty<BrushSelectorConveter, Option<Rc<dyn IBrush>>>
Defines the brush property.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
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).
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.
set_brush
fn set_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
convert
fn convert(self: &Self, value: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
Convert.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<BrushSelectorConveter>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.