FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    from_light

    fn from_light(light: &Rc<CompositionLight>) -> Option<AmbientLight>
    

    The handle of light as this class, if it is one.

    Source

    color

    fn color(self: &Self) -> Color
    

    The colour of the light (default white).

    Source

    set_color

    fn set_color(self: &Self, value: Color)
    

    Source

    intensity

    fn intensity(self: &Self) -> f32
    

    The intensity of the light (default 1).

    Source

    set_intensity

    fn set_intensity(self: &Self, value: f32)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

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