Trait NSAccessibilityElementLoading

Source
pub unsafe trait NSAccessibilityElementLoading: NSObjectProtocol {
    // Provided methods
    unsafe fn accessibilityElementWithToken(
        &self,
        token: &NSAccessibilityLoadingToken,
    ) -> Option<Retained<ProtocolObject<dyn NSAccessibilityElementProtocol>>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityRangeInTargetElementWithToken(
        &self,
        token: &NSAccessibilityLoadingToken,
    ) -> NSRange
       where Self: Sized + Message { ... }
}
Available on crate feature NSAccessibilityProtocols only.
Expand description

Provided Methods§

Source

unsafe fn accessibilityElementWithToken( &self, token: &NSAccessibilityLoadingToken, ) -> Option<Retained<ProtocolObject<dyn NSAccessibilityElementProtocol>>>
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.

Loads the target element with the given load token.

Returns: An element that will be messaged for other accessibility properties. Assistive technologies may try to set accessibility focus on the returned element.

Source

unsafe fn accessibilityRangeInTargetElementWithToken( &self, token: &NSAccessibilityLoadingToken, ) -> NSRange
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.

For text-based elements returned from accessibilityElementWithToken, such as an NSTextView, the range specifies an area of interest. Assistive technologies will try to bring focus to the specified text range.

Either do not implement this method or return NSNotFound for the location if there is no range of interest for a given load token.

Trait Implementations§

Source§

impl ProtocolType for dyn NSAccessibilityElementLoading

Source§

const NAME: &'static str = "NSAccessibilityElementLoading"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSAccessibilityElementLoading

Implementations on Foreign Types§

Source§

impl<T> NSAccessibilityElementLoading for ProtocolObject<T>

Implementors§