NSAttributedStringAppKitAdditions

Trait NSAttributedStringAppKitAdditions 

Source
pub unsafe trait NSAttributedStringAppKitAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    fn fontAttributesInRange(
        &self,
        range: NSRange,
    ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>> { ... }
    fn rulerAttributesInRange(
        &self,
        range: NSRange,
    ) -> Retained<NSDictionary<NSAttributedStringKey, AnyObject>> { ... }
    fn lineBreakBeforeIndex_withinRange(
        &self,
        location: NSUInteger,
        a_range: NSRange,
    ) -> NSUInteger { ... }
    fn lineBreakByHyphenatingBeforeIndex_withinRange(
        &self,
        location: NSUInteger,
        a_range: NSRange,
    ) -> NSUInteger { ... }
    fn doubleClickAtIndex(&self, location: NSUInteger) -> NSRange { ... }
    fn nextWordFromIndex_forward(
        &self,
        location: NSUInteger,
        is_forward: bool,
    ) -> NSUInteger { ... }
    fn rangeOfTextBlock_atIndex(
        &self,
        block: &NSTextBlock,
        location: NSUInteger,
    ) -> NSRange { ... }
    fn rangeOfTextTable_atIndex(
        &self,
        table: &NSTextTable,
        location: NSUInteger,
    ) -> NSRange { ... }
    fn rangeOfTextList_atIndex(
        &self,
        list: &NSTextList,
        location: NSUInteger,
    ) -> NSRange { ... }
    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

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Available on crate feature NSTextTable only.
Source

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

Available on crate feature NSTextTable only.
Source

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

Available on crate feature NSTextList only.
Source

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§