FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SpotLight

    struct · ferroui-media3d · v0.5.0

    struct SpotLight
    

    WPF's SpotLight: light from Position in a cone along Direction, full inside InnerConeAngle (180 degrees by default) and none beyond OuterConeAngle (90 degrees by default), both full angles in degrees.

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

    Returns a strong reference to this object.

    Source

    direction_property

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

    Source

    inner_cone_angle_property

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

    Source

    outer_cone_angle_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    A white light at the origin along the negative z axis.

    Source

    with_values

    fn with_values(color: Color, position: Point3D, direction: Vector3D, outer_cone_angle: f64, inner_cone_angle: f64) -> Ref<Self>
    

    A light of color at position along direction with the outer and inner cone angles, in the order of WPF's constructor.

    Source

    direction

    fn direction(self: &Self) -> Vector3D
    

    The direction of the cone.

    Source

    set_direction

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

    Source

    inner_cone_angle

    fn inner_cone_angle(self: &Self) -> f64
    

    The full angle of the cone of full light, in degrees.

    Source

    set_inner_cone_angle

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

    Source

    outer_cone_angle

    fn outer_cone_angle(self: &Self) -> f64
    

    The full angle of the cone beyond which there is no light, in degrees.

    Source

    set_outer_cone_angle

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

    Source

    Trait implementations

    Availability

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