FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DirectionalLight

    struct · ferroui-media3d · v0.5.0

    struct DirectionalLight
    

    WPF's DirectionalLight: parallel light travelling along Direction ((0, 0, -1) by default).

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

    Returns a strong reference to this object.

    Source

    direction_property

    fn direction_property() -> &'static StyledProperty<Vector3D>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A white light along the negative z axis.

    Source

    with_color_and_direction

    fn with_color_and_direction(color: Color, direction: Vector3D) -> Ref<Self>
    

    A light of color along direction.

    Source

    direction

    fn direction(self: &Self) -> Vector3D
    

    The direction the light travels in.

    Source

    set_direction

    fn set_direction(self: &Self, value: Vector3D)
    

    Source

    Trait implementations

    Availability

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