Trait 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) -> Retained<NSString> where Self: Sized + Message { ... } unsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary( &self, character_index: NSUInteger, out_range: NSRangePointer, out_flag: NonNull<Bool>, ) -> Retained<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) -> Retained<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, ) -> Retained<NSView> where Self: Sized + Message { ... } unsafe fn rectsForCharacterRange( &self, range: NSRange, ) -> Option<Retained<NSArray<NSValue>>> where Self: Sized + Message { ... } unsafe fn visibleCharacterRanges(&self) -> Retained<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.
Expand description

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) -> Retained<NSString>
where Self: Sized + Message,

Source

unsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary( &self, character_index: NSUInteger, out_range: NSRangePointer, out_flag: NonNull<Bool>, ) -> Retained<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) -> Retained<NSArray<NSValue>>
where Self: Sized + Message,

Source

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

Setter for selectedRanges.

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, ) -> Retained<NSView>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

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

Source

unsafe fn visibleCharacterRanges(&self) -> Retained<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. Read more
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§