Trait NSTextLayoutManagerDelegate

Source
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.
Expand description

Provided Methods§

Source

unsafe fn textLayoutManager_textLayoutFragmentForLocation_inTextElement( &self, text_layout_manager: &NSTextLayoutManager, location: &ProtocolObject<dyn NSTextLocation>, text_element: &NSTextElement, ) -> Retained<NSTextLayoutFragment>
where Self: Sized + Message,

Available on crate features NSTextElement and NSTextLayoutFragment and NSTextRange only.
Source

unsafe fn textLayoutManager_shouldBreakLineBeforeLocation_hyphenating( &self, text_layout_manager: &NSTextLayoutManager, location: &ProtocolObject<dyn NSTextLocation>, hyphenating: bool, ) -> bool
where Self: Sized + Message,

Available on crate feature NSTextRange only.
Available on crate feature NSTextRange only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSTextLayoutManagerDelegate

Source§

const NAME: &'static str = "NSTextLayoutManagerDelegate"

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
Source§

impl<T> ImplementedBy<T> for dyn NSTextLayoutManagerDelegate

Implementations on Foreign Types§

Source§

impl<T> NSTextLayoutManagerDelegate for ProtocolObject<T>

Implementors§