pub unsafe trait NSTextLayoutManagerDelegate: NSObjectProtocol {
// Provided methods
unsafe fn textLayoutManager_textLayoutFragmentForLocation_inTextElement(
&self,
text_layout_manager: &NSTextLayoutManager,
location: &ProtocolObject<dyn NSTextLocation>,
text_element: &NSTextElement
) -> Retained<NSTextLayoutFragment>
where Self: Sized + Message { ... }
unsafe fn textLayoutManager_shouldBreakLineBeforeLocation_hyphenating(
&self,
text_layout_manager: &NSTextLayoutManager,
location: &ProtocolObject<dyn NSTextLocation>,
hyphenating: bool
) -> bool
where Self: Sized + Message { ... }
unsafe fn textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes(
&self,
text_layout_manager: &NSTextLayoutManager,
link: &AnyObject,
location: &ProtocolObject<dyn NSTextLocation>,
rendering_attributes: &NSDictionary<NSAttributedStringKey, AnyObject>
) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextLayoutManager
only.Provided Methods§
unsafe fn textLayoutManager_textLayoutFragmentForLocation_inTextElement( &self, text_layout_manager: &NSTextLayoutManager, location: &ProtocolObject<dyn NSTextLocation>, text_element: &NSTextElement ) -> Retained<NSTextLayoutFragment>
Available on crate features
NSTextElement
and NSTextLayoutFragment
and NSTextRange
only.unsafe fn textLayoutManager_shouldBreakLineBeforeLocation_hyphenating( &self, text_layout_manager: &NSTextLayoutManager, location: &ProtocolObject<dyn NSTextLocation>, hyphenating: bool ) -> bool
Available on crate feature
NSTextRange
only.unsafe fn textLayoutManager_renderingAttributesForLink_atLocation_defaultAttributes( &self, text_layout_manager: &NSTextLayoutManager, link: &AnyObject, location: &ProtocolObject<dyn NSTextLocation>, rendering_attributes: &NSDictionary<NSAttributedStringKey, AnyObject> ) -> Option<Retained<NSDictionary<NSAttributedStringKey, AnyObject>>>
Available on crate feature
NSTextRange
only.