Skip to main content

NSTextFinderClient

Trait NSTextFinderClient 

Source
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§

Source

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

Source

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

Source

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

Source

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,

§Safety
  • out_range must be a valid pointer.
  • out_flag must be a valid pointer.
Source

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

Source

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

Source

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

Source

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

Setter for selectedRanges.

This is copied when set.

Source

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

Source

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

Source

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

Source

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.
§Safety

out_range must be a valid pointer.

Source

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

Source

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

Source

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

Available on crate features NSResponder and NSView only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSTextFinderClient

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSTextFinderClient for ProtocolObject<T>

Implementors§