FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RevealFocus

    struct · ferroui-controls · v0.5.0

    struct RevealFocus
    

    Reveal focus: the focus visual kind of the application, and the glow it shows around the element keyboard focus moves to.

    View source

    Members

    focus_visual_kind

    fn focus_visual_kind() -> FocusVisualKind
    

    Application.FocusVisualKind.

    Source

    set_focus_visual_kind

    fn set_focus_visual_kind(kind: FocusVisualKind)
    

    Sets Application.FocusVisualKind; a glow that is shown goes when the kind is no longer Reveal.

    Source

    focused_element

    fn focused_element() -> Option<Ref<Visual>>
    

    The element the glow is shown around, if one is.

    Source

    is_pressed

    fn is_pressed() -> bool
    

    Whether the press light of the glow is on.

    Source

    glow_host

    fn glow_host() -> Option<Ref<Border>>
    

    The host of the glow in the adorner layer, if a glow is shown.

    Source

    Trait implementations

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

    Availability

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