Trait objc2_ui_kit::NSTextAttachmentLayout

source ·
pub unsafe trait NSTextAttachmentLayout: NSObjectProtocol {
    // Provided methods
    unsafe fn imageForBounds_attributes_location_textContainer(
        &self,
        bounds: CGRect,
        attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
        location: &ProtocolObject<dyn NSTextLocation>,
        text_container: Option<&NSTextContainer>
    ) -> Option<Retained<UIImage>>
       where Self: Sized + Message { ... }
    unsafe fn attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position(
        &self,
        attributes: &NSDictionary<NSAttributedStringKey, AnyObject>,
        location: &ProtocolObject<dyn NSTextLocation>,
        text_container: Option<&NSTextContainer>,
        proposed_line_fragment: CGRect,
        position: CGPoint
    ) -> CGRect
       where Self: Sized + Message { ... }
    unsafe fn viewProviderForParentView_location_textContainer(
        &self,
        parent_view: Option<&UIView>,
        location: &ProtocolObject<dyn NSTextLocation>,
        text_container: Option<&NSTextContainer>
    ) -> Option<Retained<NSTextAttachmentViewProvider>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextAttachment only.

Provided Methods§

source

unsafe fn imageForBounds_attributes_location_textContainer( &self, bounds: CGRect, attributes: &NSDictionary<NSAttributedStringKey, AnyObject>, location: &ProtocolObject<dyn NSTextLocation>, text_container: Option<&NSTextContainer> ) -> Option<Retained<UIImage>>
where Self: Sized + Message,

Available on crate features NSTextContainer and NSTextRange and UIImage only.
source

unsafe fn attachmentBoundsForAttributes_location_textContainer_proposedLineFragment_position( &self, attributes: &NSDictionary<NSAttributedStringKey, AnyObject>, location: &ProtocolObject<dyn NSTextLocation>, text_container: Option<&NSTextContainer>, proposed_line_fragment: CGRect, position: CGPoint ) -> CGRect
where Self: Sized + Message,

Available on crate features NSTextContainer and NSTextRange only.
source

unsafe fn viewProviderForParentView_location_textContainer( &self, parent_view: Option<&UIView>, location: &ProtocolObject<dyn NSTextLocation>, text_container: Option<&NSTextContainer> ) -> Option<Retained<NSTextAttachmentViewProvider>>
where Self: Sized + Message,

Available on crate features NSTextContainer and NSTextRange and UIResponder and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextAttachmentLayout

source§

const NAME: &'static str = "NSTextAttachmentLayout"

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 NSTextAttachmentLayout

Implementations on Foreign Types§

source§

impl<T> NSTextAttachmentLayout for ProtocolObject<T>

Implementors§