FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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).

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

    Returns a strong reference to this object.

    Source

    color_property

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

    Source

    ambient_color_property

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

    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 (it paints nothing until it has one).

    Source

    with_brush

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

    A material of brush.

    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

    ambient_color

    fn ambient_color(self: &Self) -> Color
    

    The colour that filters the ambient light (white by default).

    Source

    set_ambient_color

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

    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.