Trait objc2_app_kit::NSTextAttachmentContainer

source ·
pub unsafe trait NSTextAttachmentContainer: NSObjectProtocol {
    // Provided methods
    unsafe fn imageForBounds_textContainer_characterIndex(
        &self,
        image_bounds: CGRect,
        text_container: Option<&NSTextContainer>,
        char_index: NSUInteger
    ) -> Option<Retained<NSImage>>
       where Self: Sized + Message { ... }
    unsafe 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.

Provided Methods§

source

unsafe 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 only.
source

unsafe 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 NSTextContainer only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextAttachmentContainer

source§

const NAME: &'static str = "NSTextAttachmentContainer"

The name of the Objective-C protocol that this type represents.
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 NSTextAttachmentContainer

Implementations on Foreign Types§

source§

impl<T> NSTextAttachmentContainer for ProtocolObject<T>

Implementors§