Skip to main content

NSTextAttachmentContainer

Trait NSTextAttachmentContainer 

Source
pub unsafe trait NSTextAttachmentContainer: NSObjectProtocol {
    // Provided methods
    fn imageForBounds_textContainer_characterIndex(
        &self,
        image_bounds: CGRect,
        text_container: Option<&NSTextContainer>,
        char_index: NSUInteger,
    ) -> Option<Retained<NSImage>>
       where Self: Sized + Message { ... }
    fn attachmentBoundsForTextContainer_proposedLineFragment_glyphPosition_characterIndex(
        &self,
        text_container: Option<&NSTextContainer>,
        line_frag: CGRect,
        position: CGPoint,
        char_index: NSUInteger,
    ) -> CGRect
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextAttachment only.
Expand description

Provided Methods§

Source

fn imageForBounds_textContainer_characterIndex( &self, image_bounds: CGRect, text_container: Option<&NSTextContainer>, char_index: NSUInteger, ) -> Option<Retained<NSImage>>
where Self: Sized + Message,

Available on crate features NSImage and NSTextContainer and objc2-core-foundation only.
Source

fn attachmentBoundsForTextContainer_proposedLineFragment_glyphPosition_characterIndex( &self, text_container: Option<&NSTextContainer>, line_frag: CGRect, position: CGPoint, char_index: NSUInteger, ) -> CGRect
where Self: Sized + Message,

Available on crate features NSTextContainer and objc2-core-foundation only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextAttachmentContainer

Source§

impl ProtocolType for dyn NSTextAttachmentContainer

Source§

const NAME: &'static str = "NSTextAttachmentContainer"

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

Implementors§