Trait BEAccessibilityTextMarkerSupport

Source
pub unsafe trait BEAccessibilityTextMarkerSupport: NSObjectProtocol {
    // Provided methods
    unsafe fn accessibilityBoundsForTextMarkerRange(
        &self,
        range: &BEAccessibilityTextMarkerRange,
    ) -> CGRect
       where Self: Sized + Message { ... }
    unsafe fn accessibilityContentForTextMarkerRange(
        &self,
        range: &BEAccessibilityTextMarkerRange,
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityTextMarkerRangeForCurrentSelection(
        &self,
    ) -> Option<Retained<BEAccessibilityTextMarkerRange>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityTextMarkerRange(
        &self,
    ) -> Retained<BEAccessibilityTextMarkerRange>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityNextTextMarker(
        &self,
        marker: &BEAccessibilityTextMarker,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityPreviousTextMarker(
        &self,
        marker: &BEAccessibilityTextMarker,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityLineEndMarkerForMarker(
        &self,
        marker: &BEAccessibilityTextMarker,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityLineStartMarkerForMarker(
        &self,
        marker: &BEAccessibilityTextMarker,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityMarkerForPoint(
        &self,
        point: CGPoint,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityTextMarkerForPosition(
        &self,
        position: NSInteger,
    ) -> Option<Retained<BEAccessibilityTextMarker>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityTextMarkerRangeForRange(
        &self,
        range: NSRange,
    ) -> Option<Retained<BEAccessibilityTextMarkerRange>>
       where Self: Sized + Message { ... }
    unsafe fn accessibilityRangeForTextMarkerRange(
        &self,
        range: &BEAccessibilityTextMarkerRange,
    ) -> NSRange
       where Self: Sized + Message { ... }
}
Available on crate feature BEAccessibilityTextMarker only.
Expand description

Implement BEAccessibilityTextMarkerSupport to support assistive technology features that rely on granular text offsets.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn accessibilityBoundsForTextMarkerRange( &self, range: &BEAccessibilityTextMarkerRange, ) -> CGRect
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

The accessibility frame for a text range.

Parameter range: The text marker range.

Returns: The bounds in accessibility space of the text marker range. If the bounds cannot be determined, return CGRectZero.

Source

unsafe fn accessibilityContentForTextMarkerRange( &self, range: &BEAccessibilityTextMarkerRange, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

The accessibility content for a text range.

Parameter range: The text marker range.

Source

unsafe fn accessibilityTextMarkerRangeForCurrentSelection( &self, ) -> Option<Retained<BEAccessibilityTextMarkerRange>>
where Self: Sized + Message,

The text marker range of the current selection. Return nil if there is none.

Source

unsafe fn accessibilityTextMarkerRange( &self, ) -> Retained<BEAccessibilityTextMarkerRange>
where Self: Sized + Message,

The text marker range of the current element.

Source

unsafe fn accessibilityNextTextMarker( &self, marker: &BEAccessibilityTextMarker, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

The text marker after the marker.

Parameter marker: The text marker.

Source

unsafe fn accessibilityPreviousTextMarker( &self, marker: &BEAccessibilityTextMarker, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

The text marker before the marker.

Parameter marker: The text marker.

Source

unsafe fn accessibilityLineEndMarkerForMarker( &self, marker: &BEAccessibilityTextMarker, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

The text marker representing the end-of-line position of the line pointed to by the given marker.

Parameter marker: The text marker.

Source

unsafe fn accessibilityLineStartMarkerForMarker( &self, marker: &BEAccessibilityTextMarker, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

The text marker representing the start-of-line position of the line pointed to by the given marker.

Parameter marker: The text marker.

Source

unsafe fn accessibilityMarkerForPoint( &self, point: CGPoint, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.

The text marker for the specific point.

Parameter point: A point in view space.

Source

unsafe fn accessibilityTextMarkerForPosition( &self, position: NSInteger, ) -> Option<Retained<BEAccessibilityTextMarker>>
where Self: Sized + Message,

The text marker given an index-based position.

Parameter position: The text position as an index.

Source

unsafe fn accessibilityTextMarkerRangeForRange( &self, range: NSRange, ) -> Option<Retained<BEAccessibilityTextMarkerRange>>
where Self: Sized + Message,

The text marker range given an index-based range.

Parameter range: The text marker range as an NSRange.

Source

unsafe fn accessibilityRangeForTextMarkerRange( &self, range: &BEAccessibilityTextMarkerRange, ) -> NSRange
where Self: Sized + Message,

The index-based range given a text marker range.

Parameter range: The text marker range.

Trait Implementations§

Source§

impl ProtocolType for dyn BEAccessibilityTextMarkerSupport

Source§

const NAME: &'static str = "BEAccessibilityTextMarkerSupport"

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 BEAccessibilityTextMarkerSupport

Implementations on Foreign Types§

Source§

impl<T> BEAccessibilityTextMarkerSupport for ProtocolObject<T>

Implementors§