FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    A border light of the dark theme.

    Source

    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.

    Source

    is_light_theme

    fn is_light_theme(self: &Self) -> bool
    

    Whether the light has the id of the light theme.

    Source

    is_wide_light

    fn is_wide_light(self: &Self) -> bool
    

    Whether the light is the wide light.

    Source

    is_on

    fn is_on(self: &Self) -> bool
    

    Whether the light is switched on.

    Source

    spot_light

    fn spot_light(self: &Self) -> Option<SpotLight>
    

    The spot light, while it exists.

    Source

    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.

    Source

    Trait implementations

    Availability

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