FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FocusTrapBehavior

    struct · ferroui-xaml-interactions-custom · v0.5.0

    struct FocusTrapBehavior
    

    Keeps the keyboard focus inside the associated control: the Tab key (and Shift+Tab) moves the focus from its last (first) tab stop back to its first (last) one, and into it from outside.

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

    Returns a strong reference to this object.

    Source

    is_active_property

    fn is_active_property() -> &'static StyledProperty<bool>
    

    Identifies the IsActive property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a behavior.

    Source

    is_active

    fn is_active(self: &Self) -> bool
    

    Gets or sets whether the focus trap is active. This is a property of the object model.

    Source

    set_is_active

    fn set_is_active(self: &Self, value: bool)
    

    Source

    Trait implementations

    Availability

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