pub unsafe trait NSTextLayoutManagerDelegate: NSObjectProtocol {
// Provided methods
fn textLayoutManager_textLayoutFragmentForLocation_inTextElement(
&self,
text_layout_manager: &NSTextLayoutManager,
location: &ProtocolObject<dyn NSTextLocation>,
text_element: &NSTextElement,
) -> Retained<NSTextLayoutFragment>
where Self: Sized + Message { ... }
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.Expand description
Provided Methods§
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.fn textLayoutManager_shouldBreakLineBeforeLocation_hyphenating( &self, text_layout_manager: &NSTextLayoutManager, location: &ProtocolObject<dyn NSTextLocation>, hyphenating: bool, ) -> bool
Available on crate feature
NSTextRange only.Sourceunsafe 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.
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>>>
NSTextRange only.§Safety
linkshould be of the correct type.rendering_attributesgeneric should be of the correct type.