Skip to main content

UIAccessibilityReadingContent

Trait UIAccessibilityReadingContent 

Source
pub unsafe trait UIAccessibilityReadingContent: MainThreadOnly {
    // Provided methods
    fn accessibilityLineNumberForPoint(&self, point: CGPoint) -> NSInteger
       where Self: Sized + Message { ... }
    fn accessibilityContentForLineNumber(
        &self,
        line_number: NSInteger,
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn accessibilityFrameForLineNumber(&self, line_number: NSInteger) -> CGRect
       where Self: Sized + Message { ... }
    fn accessibilityPageContent(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn accessibilityAttributedContentForLineNumber(
        &self,
        line_number: NSInteger,
    ) -> Option<Retained<NSAttributedString>>
       where Self: Sized + Message { ... }
    fn accessibilityAttributedPageContent(
        &self,
    ) -> Option<Retained<NSAttributedString>>
       where Self: Sized + Message { ... }
}
Available on crate feature UIAccessibility only.
Expand description

Provided Methods§

Source

fn accessibilityLineNumberForPoint(&self, point: CGPoint) -> NSInteger
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

fn accessibilityContentForLineNumber( &self, line_number: NSInteger, ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

fn accessibilityFrameForLineNumber(&self, line_number: NSInteger) -> CGRect
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

fn accessibilityPageContent(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

Source

fn accessibilityAttributedContentForLineNumber( &self, line_number: NSInteger, ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

Source

fn accessibilityAttributedPageContent( &self, ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIAccessibilityReadingContent

Source§

impl ProtocolType for dyn UIAccessibilityReadingContent

Source§

const NAME: &'static str = "UIAccessibilityReadingContent"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIAccessibilityReadingContent for ProtocolObject<T>

Implementors§