AmbientLight
struct · ferroui-base · v0.5.0
struct AmbientLight
A light that lights every point of its targets alike (WinUI
Microsoft.UI.Composition.AmbientLight): Color times Intensity,
both animatable.
Members
from_light
fn from_light(light: &Rc<CompositionLight>) -> Option<AmbientLight>
The handle of light as this class, if it is one.
color
fn color(self: &Self) -> Color
The colour of the light (default white).
set_color
fn set_color(self: &Self, value: Color)
intensity
fn intensity(self: &Self) -> f32
The intensity of the light (default 1).
set_intensity
fn set_intensity(self: &Self, value: f32)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.