Trait objc2_ui_kit::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.

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