Trait objc2_app_kit::NSTextFinderClient

source ·
pub unsafe trait NSTextFinderClient: NSObjectProtocol {
Show 17 methods // Provided methods unsafe fn isSelectable(&self) -> bool where Self: Sized + Message { ... } unsafe fn allowsMultipleSelection(&self) -> bool where Self: Sized + Message { ... } unsafe fn isEditable(&self) -> bool where Self: Sized + Message { ... } unsafe fn string(&self) -> Id<NSString> where Self: Sized + Message { ... } unsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary( &self, character_index: NSUInteger, out_range: NSRangePointer, out_flag: NonNull<Bool> ) -> Id<NSString> where Self: Sized + Message { ... } unsafe fn stringLength(&self) -> NSUInteger where Self: Sized + Message { ... } unsafe fn firstSelectedRange(&self) -> NSRange where Self: Sized + Message { ... } unsafe fn selectedRanges(&self) -> Id<NSArray<NSValue>> where Self: Sized + Message { ... } unsafe fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>) where Self: Sized + Message { ... } unsafe fn scrollRangeToVisible(&self, range: NSRange) where Self: Sized + Message { ... } unsafe fn shouldReplaceCharactersInRanges_withStrings( &self, ranges: &NSArray<NSValue>, strings: &NSArray<NSString> ) -> bool where Self: Sized + Message { ... } unsafe fn replaceCharactersInRange_withString( &self, range: NSRange, string: &NSString ) where Self: Sized + Message { ... } unsafe fn didReplaceCharacters(&self) where Self: Sized + Message { ... } unsafe fn contentViewAtIndex_effectiveCharacterRange( &self, index: NSUInteger, out_range: NSRangePointer, mtm: MainThreadMarker ) -> Id<NSView> where Self: Sized + Message { ... } unsafe fn rectsForCharacterRange( &self, range: NSRange ) -> Option<Id<NSArray<NSValue>>> where Self: Sized + Message { ... } unsafe fn visibleCharacterRanges(&self) -> Id<NSArray<NSValue>> where Self: Sized + Message { ... } unsafe fn drawCharactersInRange_forContentView( &self, range: NSRange, view: &NSView ) where Self: Sized + Message { ... }
}
Available on crate feature NSTextFinder only.

Provided Methods§

source

unsafe fn isSelectable(&self) -> bool
where Self: Sized + Message,

source

unsafe fn allowsMultipleSelection(&self) -> bool
where Self: Sized + Message,

source

unsafe fn isEditable(&self) -> bool
where Self: Sized + Message,

source

unsafe fn string(&self) -> Id<NSString>
where Self: Sized + Message,

source

unsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary( &self, character_index: NSUInteger, out_range: NSRangePointer, out_flag: NonNull<Bool> ) -> Id<NSString>
where Self: Sized + Message,

source

unsafe fn stringLength(&self) -> NSUInteger
where Self: Sized + Message,

source

unsafe fn firstSelectedRange(&self) -> NSRange
where Self: Sized + Message,

source

unsafe fn selectedRanges(&self) -> Id<NSArray<NSValue>>
where Self: Sized + Message,

source

unsafe fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
where Self: Sized + Message,

source

unsafe fn scrollRangeToVisible(&self, range: NSRange)
where Self: Sized + Message,

source

unsafe fn shouldReplaceCharactersInRanges_withStrings( &self, ranges: &NSArray<NSValue>, strings: &NSArray<NSString> ) -> bool
where Self: Sized + Message,

source

unsafe fn replaceCharactersInRange_withString( &self, range: NSRange, string: &NSString )
where Self: Sized + Message,

source

unsafe fn didReplaceCharacters(&self)
where Self: Sized + Message,

source

unsafe fn contentViewAtIndex_effectiveCharacterRange( &self, index: NSUInteger, out_range: NSRangePointer, mtm: MainThreadMarker ) -> Id<NSView>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
source

unsafe fn rectsForCharacterRange( &self, range: NSRange ) -> Option<Id<NSArray<NSValue>>>
where Self: Sized + Message,

source

unsafe fn visibleCharacterRanges(&self) -> Id<NSArray<NSValue>>
where Self: Sized + Message,

source

unsafe fn drawCharactersInRange_forContentView( &self, range: NSRange, view: &NSView )
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextFinderClient

source§

const NAME: &'static str = "NSTextFinderClient"

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 NSTextFinderClient

Implementations on Foreign Types§

source§

impl<T> NSTextFinderClient for ProtocolObject<T>

Implementors§