RevealBorderLight
struct · ferroui-controls · v0.5.0
struct RevealBorderLight
A border light of Reveal (WinUI's internal RevealBorderLight): a spot
light above the pointer that lights the Reveal border brushes near it;
switched on while the pointer is over the window (250 ms).
RevealBrush attaches four of them (normal and
wide, for the light and the dark theme) and an ambient light to the
root of every window while a Reveal brush is connected.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RevealBorderLight>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
A border light of the dark theme.
with_options
fn with_options(light_theme: bool, wide: bool) -> Ref<Self>
A border light: light_theme selects the id of the light theme, wide
the wide light.
is_light_theme
fn is_light_theme(self: &Self) -> bool
Whether the light has the id of the light theme.
is_wide_light
fn is_wide_light(self: &Self) -> bool
Whether the light is the wide light.
is_on
fn is_on(self: &Self) -> bool
Whether the light is switched on.
spot_light
fn spot_light(self: &Self) -> Option<SpotLight>
The spot light, while it exists.
switch_light
fn switch_light(self: &Self, turn_on: bool)
SwitchLight: animates the intensity of the light to 1 or 0 over
250 ms; the light is disabled when the turn-off animation is done.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyXamlLightImplExtFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<RevealBorderLight>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplXamlLightImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.