FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    color_property

    fn color_property() -> &'static StyledProperty<Color>
    

    Source

    specular_power_property

    fn specular_power_property() -> &'static StyledProperty<f64>
    

    Source

    brush_property

    fn brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A material without a brush.

    Source

    with_brush

    fn with_brush(brush: Option<Rc<dyn IBrush>>, specular_power: f64) -> Ref<Self>
    

    A material of brush with specular_power.

    Source

    color

    fn color(self: &Self) -> Color
    

    The colour that filters the brush (white by default).

    Source

    set_color

    fn set_color(self: &Self, value: Color)
    

    Source

    specular_power

    fn specular_power(self: &Self) -> f64
    

    The sharpness of the highlights.

    Source

    set_specular_power

    fn set_specular_power(self: &Self, value: f64)
    

    Source

    brush

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

    The brush.

    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.