SpecularMaterial
struct · ferroui-media3d · v0.5.0
struct SpecularMaterial
WPF's SpecularMaterial: highlights of its Brush, filtered by Color, as sharp as
SpecularPower (40 by default), added to what is below.
Members
TYPEto_refcolor_propertyspecular_power_propertybrush_propertyconstructnewwith_brushcolorset_colorspecular_powerset_specular_powerbrushset_brush
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SpecularMaterial>
Returns a strong reference to this object.
color_property
fn color_property() -> &'static StyledProperty<Color>
specular_power_property
fn specular_power_property() -> &'static StyledProperty<f64>
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.
with_brush
fn with_brush(brush: Option<Rc<dyn IBrush>>, specular_power: f64) -> Ref<Self>
A material of brush with specular_power.
color
fn color(self: &Self) -> Color
The colour that filters the brush (white by default).
set_color
fn set_color(self: &Self, value: Color)
specular_power
fn specular_power(self: &Self) -> f64
The sharpness of the highlights.
set_specular_power
fn set_specular_power(self: &Self, value: f64)
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<SpecularMaterial>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.