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.
Members
TYPEto_refcolor_propertyis_target_propertyconstructnewcolorset_colorget_is_targetset_is_target
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<XamlAmbientLight>
Returns a strong reference to this object.
color_property
fn color_property() -> &'static StyledProperty<Color>
Color (default white).
is_target_property
fn is_target_property() -> &'static AttachedProperty<bool>
IsTarget (attached): the ambient lights light the element or
brush it is set on.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
color
fn color(self: &Self) -> Color
set_color
fn set_color(self: &Self, value: Color)
get_is_target
fn get_is_target(object: &FerroObject) -> bool
GetIsTarget.
set_is_target
fn set_is_target(object: &FerroObject, value: bool)
SetIsTarget.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyXamlLightImplExtFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<XamlAmbientLight>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplXamlLightImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.