pub unsafe trait NSTextFinderClient: NSObjectProtocol {
Show 17 methods
// Provided methods
fn isSelectable(&self) -> bool
where Self: Sized + Message { ... }
fn allowsMultipleSelection(&self) -> bool
where Self: Sized + Message { ... }
fn isEditable(&self) -> bool
where Self: Sized + Message { ... }
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 { ... }
fn stringLength(&self) -> NSUInteger
where Self: Sized + Message { ... }
fn firstSelectedRange(&self) -> NSRange
where Self: Sized + Message { ... }
fn selectedRanges(&self) -> Retained<NSArray<NSValue>>
where Self: Sized + Message { ... }
fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
where Self: Sized + Message { ... }
fn scrollRangeToVisible(&self, range: NSRange)
where Self: Sized + Message { ... }
fn shouldReplaceCharactersInRanges_withStrings(
&self,
ranges: &NSArray<NSValue>,
strings: &NSArray<NSString>,
) -> bool
where Self: Sized + Message { ... }
fn replaceCharactersInRange_withString(
&self,
range: NSRange,
string: &NSString,
)
where Self: Sized + Message { ... }
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 { ... }
fn rectsForCharacterRange(
&self,
range: NSRange,
) -> Option<Retained<NSArray<NSValue>>>
where Self: Sized + Message { ... }
fn visibleCharacterRanges(&self) -> Retained<NSArray<NSValue>>
where Self: Sized + Message { ... }
fn drawCharactersInRange_forContentView(
&self,
range: NSRange,
view: &NSView,
)
where Self: Sized + Message { ... }
}Available on crate feature
NSTextFinder only.Expand description
Provided Methods§
fn isSelectable(&self) -> bool
fn allowsMultipleSelection(&self) -> bool
fn isEditable(&self) -> bool
fn string(&self) -> Retained<NSString>
Sourceunsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary(
&self,
character_index: NSUInteger,
out_range: NSRangePointer,
out_flag: NonNull<Bool>,
) -> Retained<NSString>
unsafe fn stringAtIndex_effectiveRange_endsWithSearchBoundary( &self, character_index: NSUInteger, out_range: NSRangePointer, out_flag: NonNull<Bool>, ) -> Retained<NSString>
§Safety
out_rangemust be a valid pointer.out_flagmust be a valid pointer.
fn stringLength(&self) -> NSUInteger
fn firstSelectedRange(&self) -> NSRange
fn selectedRanges(&self) -> Retained<NSArray<NSValue>>
Sourcefn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
fn setSelectedRanges(&self, selected_ranges: &NSArray<NSValue>)
Setter for selectedRanges.
This is copied when set.
fn scrollRangeToVisible(&self, range: NSRange)
fn shouldReplaceCharactersInRanges_withStrings( &self, ranges: &NSArray<NSValue>, strings: &NSArray<NSString>, ) -> bool
fn replaceCharactersInRange_withString(&self, range: NSRange, string: &NSString)
fn didReplaceCharacters(&self)
Sourceunsafe fn contentViewAtIndex_effectiveCharacterRange(
&self,
index: NSUInteger,
out_range: NSRangePointer,
mtm: MainThreadMarker,
) -> Retained<NSView>
Available on crate features NSResponder and NSView only.
unsafe fn contentViewAtIndex_effectiveCharacterRange( &self, index: NSUInteger, out_range: NSRangePointer, mtm: MainThreadMarker, ) -> Retained<NSView>
NSResponder and NSView only.§Safety
out_range must be a valid pointer.
fn rectsForCharacterRange( &self, range: NSRange, ) -> Option<Retained<NSArray<NSValue>>>
fn visibleCharacterRanges(&self) -> Retained<NSArray<NSValue>>
fn drawCharactersInRange_forContentView(&self, range: NSRange, view: &NSView)
Available on crate features
NSResponder and NSView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSTextFinderClient
Source§impl ProtocolType for dyn NSTextFinderClient
impl ProtocolType for dyn NSTextFinderClient
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".