FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AmbientLight

    struct · ferroui-media3d · v0.5.0

    struct AmbientLight
    

    WPF's AmbientLight: light of the same colour everywhere, from no direction.

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A white ambient light.

    Source

    with_color

    fn with_color(color: Color) -> Ref<Self>
    

    An ambient light of color.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.