FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PointLightBase

    struct · ferroui-media3d · v0.5.0

    struct PointLightBase
    

    WPF's PointLightBase: light from Position, as far as Range (infinite by default), attenuated by 1 / (ConstantAttenuation + LinearAttenuation d + QuadraticAttenuation d^2) (1, 0 and 0 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<PointLightBase>
    

    Returns a strong reference to this object.

    Source

    position_property

    fn position_property() -> &'static StyledProperty<Point3D>
    

    Source

    range_property

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

    Source

    constant_attenuation_property

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

    Source

    linear_attenuation_property

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

    Source

    quadratic_attenuation_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    position

    fn position(self: &Self) -> Point3D
    

    The position of the light.

    Source

    set_position

    fn set_position(self: &Self, value: Point3D)
    

    Source

    range

    fn range(self: &Self) -> f64
    

    The distance beyond which the light has no effect.

    Source

    set_range

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

    Source

    constant_attenuation

    fn constant_attenuation(self: &Self) -> f64
    

    The constant attenuation.

    Source

    set_constant_attenuation

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

    Source

    linear_attenuation

    fn linear_attenuation(self: &Self) -> f64
    

    The attenuation proportional to the distance.

    Source

    set_linear_attenuation

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

    Source

    quadratic_attenuation

    fn quadratic_attenuation(self: &Self) -> f64
    

    The attenuation proportional to the square of the distance.

    Source

    set_quadratic_attenuation

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

    Source

    Trait implementations

    Availability

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