FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FocusBehaviorBase

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

    struct FocusBehaviorBase
    

    The base class of the behaviors that focus their associated control: the navigation method and the key modifiers the focus is given with.

    The class is abstract: a deriving class implements AttachedToVisualTreeBehaviorImpl::on_attached_to_visual_tree_override and calls focus.

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

    Returns a strong reference to this object.

    Source

    focus

    fn focus(self: &Self) -> bool
    

    Focuses the associated control, in a job of the dispatcher.

    Returns true when the focus is requested; false when the behavior is disabled.

    Source

    navigation_method_property

    fn navigation_method_property() -> &'static StyledProperty<NavigationMethod>
    

    Identifies the NavigationMethod property.

    Source

    key_modifiers_property

    fn key_modifiers_property() -> &'static StyledProperty<KeyModifiers>
    

    Identifies the KeyModifiers property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    navigation_method

    fn navigation_method(self: &Self) -> NavigationMethod
    

    Gets or sets the navigation method the focus is given with. This is a property of the object model.

    Source

    set_navigation_method

    fn set_navigation_method(self: &Self, value: NavigationMethod)
    

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    Gets or sets the key modifiers the focus is given with. This is a property of the object model.

    Source

    set_key_modifiers

    fn set_key_modifiers(self: &Self, value: KeyModifiers)
    

    Source

    Trait implementations

    Availability

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