pub unsafe trait NSTextElementProvider: NSObjectProtocol {
// Provided methods
unsafe fn documentRange(&self) -> Retained<NSTextRange>
where Self: Sized + Message { ... }
unsafe fn enumerateTextElementsFromLocation_options_usingBlock(
&self,
text_location: Option<&ProtocolObject<dyn NSTextLocation>>,
options: NSTextContentManagerEnumerationOptions,
block: &DynBlock<dyn Fn(NonNull<NSTextElement>) -> Bool + '_>,
) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
where Self: Sized + Message { ... }
unsafe fn replaceContentsInRange_withTextElements(
&self,
range: &NSTextRange,
text_elements: Option<&NSArray<NSTextElement>>,
)
where Self: Sized + Message { ... }
unsafe fn synchronizeToBackingStore(
&self,
completion_handler: Option<&DynBlock<dyn Fn(*mut NSError)>>,
)
where Self: Sized + Message { ... }
unsafe fn locationFromLocation_withOffset(
&self,
location: &ProtocolObject<dyn NSTextLocation>,
offset: NSInteger,
) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
where Self: Sized + Message { ... }
unsafe fn offsetFromLocation_toLocation(
&self,
from: &ProtocolObject<dyn NSTextLocation>,
to: &ProtocolObject<dyn NSTextLocation>,
) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn adjustedRangeFromRange_forEditingTextSelection(
&self,
text_range: &NSTextRange,
for_editing_text_selection: bool,
) -> Option<Retained<NSTextRange>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextContentManager
only.Expand description
Provided Methods§
unsafe fn documentRange(&self) -> Retained<NSTextRange>
Available on crate feature
NSTextRange
only.unsafe fn enumerateTextElementsFromLocation_options_usingBlock( &self, text_location: Option<&ProtocolObject<dyn NSTextLocation>>, options: NSTextContentManagerEnumerationOptions, block: &DynBlock<dyn Fn(NonNull<NSTextElement>) -> Bool + '_>, ) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
Available on crate features
NSTextElement
and NSTextRange
and block2
only.unsafe fn replaceContentsInRange_withTextElements( &self, range: &NSTextRange, text_elements: Option<&NSArray<NSTextElement>>, )
Available on crate features
NSTextElement
and NSTextRange
only.unsafe fn synchronizeToBackingStore( &self, completion_handler: Option<&DynBlock<dyn Fn(*mut NSError)>>, )
Available on crate feature
block2
only.unsafe fn locationFromLocation_withOffset( &self, location: &ProtocolObject<dyn NSTextLocation>, offset: NSInteger, ) -> Option<Retained<ProtocolObject<dyn NSTextLocation>>>
Available on crate feature
NSTextRange
only.unsafe fn offsetFromLocation_toLocation( &self, from: &ProtocolObject<dyn NSTextLocation>, to: &ProtocolObject<dyn NSTextLocation>, ) -> NSInteger
Available on crate feature
NSTextRange
only.unsafe fn adjustedRangeFromRange_forEditingTextSelection( &self, text_range: &NSTextRange, for_editing_text_selection: bool, ) -> Option<Retained<NSTextRange>>
Available on crate feature
NSTextRange
only.