Trait objc2_ui_kit::NSTextStorageObserving

source ·
pub unsafe trait NSTextStorageObserving: NSObjectProtocol {
    // Provided methods
    unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>
       where Self: Sized + Message { ... }
    unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
       where Self: Sized + Message { ... }
    unsafe fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange(
        &self,
        text_storage: &NSTextStorage,
        edit_mask: NSTextStorageEditActions,
        new_char_range: NSRange,
        delta: NSInteger,
        invalidated_char_range: NSRange
    )
       where Self: Sized + Message { ... }
    unsafe fn performEditingTransactionForTextStorage_usingBlock(
        &self,
        text_storage: &NSTextStorage,
        transaction: &Block<dyn Fn() + '_>
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSTextStorage only.

Provided Methods§

source

unsafe fn textStorage(&self) -> Option<Retained<NSTextStorage>>
where Self: Sized + Message,

source

unsafe fn setTextStorage(&self, text_storage: Option<&NSTextStorage>)
where Self: Sized + Message,

source

unsafe fn processEditingForTextStorage_edited_range_changeInLength_invalidatedRange( &self, text_storage: &NSTextStorage, edit_mask: NSTextStorageEditActions, new_char_range: NSRange, delta: NSInteger, invalidated_char_range: NSRange )
where Self: Sized + Message,

source

unsafe fn performEditingTransactionForTextStorage_usingBlock( &self, text_storage: &NSTextStorage, transaction: &Block<dyn Fn() + '_> )
where Self: Sized + Message,

Available on crate feature block2 only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextStorageObserving

source§

const NAME: &'static str = "NSTextStorageObserving"

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 NSTextStorageObserving

Implementations on Foreign Types§

source§

impl<T> NSTextStorageObserving for ProtocolObject<T>

Implementors§

source§

impl NSTextStorageObserving for NSTextContentStorage

Available on crate feature NSTextContentManager only.