Trait NSAttributedStringAppKitAdditions

Source
pub unsafe trait NSAttributedStringAppKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn fontAttributesInRange(
        &self,
        range: NSRange,
    ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>> { ... }
    unsafe fn rulerAttributesInRange(
        &self,
        range: NSRange,
    ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>> { ... }
    unsafe fn lineBreakBeforeIndex_withinRange(
        &self,
        location: NSUInteger,
        a_range: NSRange,
    ) -> NSUInteger { ... }
    unsafe fn lineBreakByHyphenatingBeforeIndex_withinRange(
        &self,
        location: NSUInteger,
        a_range: NSRange,
    ) -> NSUInteger { ... }
    unsafe fn doubleClickAtIndex(&self, location: NSUInteger) -> NSRange { ... }
    unsafe fn nextWordFromIndex_forward(
        &self,
        location: NSUInteger,
        is_forward: bool,
    ) -> NSUInteger { ... }
    unsafe fn rangeOfTextBlock_atIndex(
        &self,
        block: &NSTextBlock,
        location: NSUInteger,
    ) -> NSRange { ... }
    unsafe fn rangeOfTextTable_atIndex(
        &self,
        table: &NSTextTable,
        location: NSUInteger,
    ) -> NSRange { ... }
    unsafe fn rangeOfTextList_atIndex(
        &self,
        list: &NSTextList,
        location: NSUInteger,
    ) -> NSRange { ... }
    unsafe fn itemNumberInTextList_atIndex(
        &self,
        list: &NSTextList,
        location: NSUInteger,
    ) -> NSInteger { ... }
}
Available on crate feature NSAttributedString only.
Expand description

Category on NSAttributedString. ********************** Misc methods ***********************

Provided Methods§

Source

unsafe fn fontAttributesInRange( &self, range: NSRange, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>

Source

unsafe fn rulerAttributesInRange( &self, range: NSRange, ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>>

Source

unsafe fn lineBreakBeforeIndex_withinRange( &self, location: NSUInteger, a_range: NSRange, ) -> NSUInteger

Source

unsafe fn lineBreakByHyphenatingBeforeIndex_withinRange( &self, location: NSUInteger, a_range: NSRange, ) -> NSUInteger

Source

unsafe fn doubleClickAtIndex(&self, location: NSUInteger) -> NSRange

Source

unsafe fn nextWordFromIndex_forward( &self, location: NSUInteger, is_forward: bool, ) -> NSUInteger

Source

unsafe fn rangeOfTextBlock_atIndex( &self, block: &NSTextBlock, location: NSUInteger, ) -> NSRange

Available on crate feature NSTextTable only.
Source

unsafe fn rangeOfTextTable_atIndex( &self, table: &NSTextTable, location: NSUInteger, ) -> NSRange

Available on crate feature NSTextTable only.
Source

unsafe fn rangeOfTextList_atIndex( &self, list: &NSTextList, location: NSUInteger, ) -> NSRange

Available on crate feature NSTextList only.
Source

unsafe fn itemNumberInTextList_atIndex( &self, list: &NSTextList, location: NSUInteger, ) -> NSInteger

Available on crate feature NSTextList only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSAttributedStringAppKitAdditions for NSAttributedString

Implementors§