FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    XamlAmbientLight

    struct · ferroui-controls · v0.5.0

    struct XamlAmbientLight
    

    The ambient light of Reveal (WinUI's internal XamlAmbientLight), also usable on its own: an ambient composition light of its color that lights the targets of its id; the attached is_target makes an element or a brush a target.

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

    Returns a strong reference to this object.

    Source

    color_property

    fn color_property() -> &'static StyledProperty<Color>
    

    Color (default white).

    Source

    is_target_property

    fn is_target_property() -> &'static AttachedProperty<bool>
    

    IsTarget (attached): the ambient lights light the element or brush it is set on.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    color

    fn color(self: &Self) -> Color
    

    Source

    set_color

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

    Source

    get_is_target

    fn get_is_target(object: &FerroObject) -> bool
    

    GetIsTarget.

    Source

    set_is_target

    fn set_is_target(object: &FerroObject, value: bool)
    

    SetIsTarget.

    Source

    Trait implementations

    Availability

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