Skip to main content

NSTextLayoutManagerDelegate

Trait NSTextLayoutManagerDelegate 

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

Source

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

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.
§Safety
  • link should be of the correct type.
  • rendering_attributes generic should be of the correct type.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextLayoutManagerDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSTextLayoutManagerDelegate for ProtocolObject<T>

Implementors§