Skip to main content

NSTextContentManagerDelegate

Trait NSTextContentManagerDelegate 

Source
pub unsafe trait NSTextContentManagerDelegate: NSObjectProtocol {
    // Provided methods
    fn textContentManager_textElementAtLocation(
        &self,
        text_content_manager: &NSTextContentManager,
        location: &ProtocolObject<dyn NSTextLocation>,
    ) -> Option<Retained<NSTextElement>>
       where Self: Sized + Message { ... }
    fn textContentManager_shouldEnumerateTextElement_options(
        &self,
        text_content_manager: &NSTextContentManager,
        text_element: &NSTextElement,
        options: NSTextContentManagerEnumerationOptions,
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextContentManager only.
Expand description

Provided Methods§

Source

fn textContentManager_textElementAtLocation( &self, text_content_manager: &NSTextContentManager, location: &ProtocolObject<dyn NSTextLocation>, ) -> Option<Retained<NSTextElement>>
where Self: Sized + Message,

Available on crate features NSTextElement and NSTextRange only.
Source

fn textContentManager_shouldEnumerateTextElement_options( &self, text_content_manager: &NSTextContentManager, text_element: &NSTextElement, options: NSTextContentManagerEnumerationOptions, ) -> bool
where Self: Sized + Message,

Available on crate feature NSTextElement only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextContentManagerDelegate

Source§

impl ProtocolType for dyn NSTextContentManagerDelegate

Source§

const NAME: &'static str = "NSTextContentManagerDelegate"

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> NSTextContentManagerDelegate for ProtocolObject<T>

Implementors§