DiffuseMaterial
struct · ferroui-media3d · v0.5.0
struct DiffuseMaterial
WPF's DiffuseMaterial: its Brush, filtered by Color, lit by the lights (the ambient
lights through AmbientColor).
Members
TYPEto_refcolor_propertyambient_color_propertybrush_propertyconstructnewwith_brushcolorset_colorambient_colorset_ambient_colorbrushset_brush
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DiffuseMaterial>
Returns a strong reference to this object.
color_property
fn color_property() -> &'static StyledProperty<Color>
ambient_color_property
fn ambient_color_property() -> &'static StyledProperty<Color>
brush_property
fn brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
A material without a brush (it paints nothing until it has one).
with_brush
fn with_brush(brush: Option<Rc<dyn IBrush>>) -> Ref<Self>
A material of brush.
color
fn color(self: &Self) -> Color
The colour that filters the brush (white by default).
set_color
fn set_color(self: &Self, value: Color)
ambient_color
fn ambient_color(self: &Self) -> Color
The colour that filters the ambient light (white by default).
set_ambient_color
fn set_ambient_color(self: &Self, value: Color)
brush
fn brush(self: &Self) -> Option<Rc<dyn IBrush>>
The brush.
set_brush
fn set_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<DiffuseMaterial>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.