Skip to main content

NSViewContentSelectionInfo

Trait NSViewContentSelectionInfo 

Source
pub unsafe trait NSViewContentSelectionInfo: NSObjectProtocol {
    // Provided method
    fn selectionAnchorRect(&self) -> NSRect
       where Self: Sized + Message { ... }
}
Available on crate feature NSView only.
Expand description

A protocol to request information from NSView subclasses about the selected content in the view.

See also Apple’s documentation

Provided Methods§

Source

fn selectionAnchorRect(&self) -> NSRect
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSViewContentSelectionInfo

Source§

impl ProtocolType for dyn NSViewContentSelectionInfo

Source§

const NAME: &'static str = "NSViewContentSelectionInfo"

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

Implementors§