FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PointLight

    struct · ferroui-media3d · v0.5.0

    struct PointLight
    

    WPF's PointLight: light in every direction from Position.

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A white light at the origin.

    Source

    with_color_and_position

    fn with_color_and_position(color: Color, position: Point3D) -> Ref<Self>
    

    A light of color at position.

    Source

    Trait implementations

    Availability

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