DirectionalLight
struct · ferroui-media3d · v0.5.0
struct DirectionalLight
WPF's DirectionalLight: parallel light travelling along Direction ((0, 0, -1) by default).
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<DirectionalLight>
Returns a strong reference to this object.
direction_property
fn direction_property() -> &'static StyledProperty<Vector3D>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
A white light along the negative z axis.
with_color_and_direction
fn with_color_and_direction(color: Color, direction: Vector3D) -> Ref<Self>
A light of color along direction.
direction
fn direction(self: &Self) -> Vector3D
The direction the light travels in.
set_direction
fn set_direction(self: &Self, value: Vector3D)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeModel3DImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<DirectionalLight>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplModel3DImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.