pub unsafe trait NSTextSelectionDataSource: NSObjectProtocol {
// Provided methods
unsafe fn documentRange(&self) -> Retained<NSTextRange>
where Self: Sized + Message { ... }
unsafe fn enumerateSubstringsFromLocation_options_usingBlock(
&self,
location: &ProtocolObject<dyn NSTextLocation>,
options: NSStringEnumerationOptions,
block: &Block<dyn Fn(*mut NSString, NonNull<NSTextRange>, *mut NSTextRange, NonNull<Bool>) + '_>
)
where Self: Sized + Message { ... }
unsafe fn textRangeForSelectionGranularity_enclosingLocation(
&self,
selection_granularity: NSTextSelectionGranularity,
location: &ProtocolObject<dyn NSTextLocation>
) -> Option<Retained<NSTextRange>>
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 baseWritingDirectionAtLocation(
&self,
location: &ProtocolObject<dyn NSTextLocation>
) -> NSTextSelectionNavigationWritingDirection
where Self: Sized + Message { ... }
unsafe fn enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock(
&self,
location: &ProtocolObject<dyn NSTextLocation>,
block: &Block<dyn Fn(CGFloat, NonNull<ProtocolObject<dyn NSTextLocation>>, Bool, NonNull<Bool>) + '_>
)
where Self: Sized + Message { ... }
unsafe fn lineFragmentRangeForPoint_inContainerAtLocation(
&self,
point: CGPoint,
location: &ProtocolObject<dyn NSTextLocation>
) -> Option<Retained<NSTextRange>>
where Self: Sized + Message { ... }
unsafe fn enumerateContainerBoundariesFromLocation_reverse_usingBlock(
&self,
location: &ProtocolObject<dyn NSTextLocation>,
reverse: bool,
block: &Block<dyn Fn(NonNull<ProtocolObject<dyn NSTextLocation>>, NonNull<Bool>) + '_>
)
where Self: Sized + Message { ... }
unsafe fn textLayoutOrientationAtLocation(
&self,
location: &ProtocolObject<dyn NSTextLocation>
) -> NSTextSelectionNavigationLayoutOrientation
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextSelectionNavigation
only.Provided Methods§
unsafe fn documentRange(&self) -> Retained<NSTextRange>
Available on crate feature
NSTextRange
only.unsafe fn enumerateSubstringsFromLocation_options_usingBlock( &self, location: &ProtocolObject<dyn NSTextLocation>, options: NSStringEnumerationOptions, block: &Block<dyn Fn(*mut NSString, NonNull<NSTextRange>, *mut NSTextRange, NonNull<Bool>) + '_> )
Available on crate features
NSTextRange
and block2
only.unsafe fn textRangeForSelectionGranularity_enclosingLocation( &self, selection_granularity: NSTextSelectionGranularity, location: &ProtocolObject<dyn NSTextLocation> ) -> Option<Retained<NSTextRange>>
Available on crate features
NSTextRange
and NSTextSelection
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 baseWritingDirectionAtLocation( &self, location: &ProtocolObject<dyn NSTextLocation> ) -> NSTextSelectionNavigationWritingDirection
Available on crate feature
NSTextRange
only.unsafe fn enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock( &self, location: &ProtocolObject<dyn NSTextLocation>, block: &Block<dyn Fn(CGFloat, NonNull<ProtocolObject<dyn NSTextLocation>>, Bool, NonNull<Bool>) + '_> )
Available on crate features
NSTextRange
and block2
only.unsafe fn lineFragmentRangeForPoint_inContainerAtLocation( &self, point: CGPoint, location: &ProtocolObject<dyn NSTextLocation> ) -> Option<Retained<NSTextRange>>
Available on crate feature
NSTextRange
only.unsafe fn enumerateContainerBoundariesFromLocation_reverse_usingBlock( &self, location: &ProtocolObject<dyn NSTextLocation>, reverse: bool, block: &Block<dyn Fn(NonNull<ProtocolObject<dyn NSTextLocation>>, NonNull<Bool>) + '_> )
Available on crate features
NSTextRange
and block2
only.unsafe fn textLayoutOrientationAtLocation( &self, location: &ProtocolObject<dyn NSTextLocation> ) -> NSTextSelectionNavigationLayoutOrientation
Available on crate feature
NSTextRange
only.Trait Implementations§
source§impl ProtocolType for dyn NSTextSelectionDataSource
impl ProtocolType for dyn NSTextSelectionDataSource
impl<T> ImplementedBy<T> for dyn NSTextSelectionDataSource
Implementations on Foreign Types§
impl<T> NSTextSelectionDataSource for ProtocolObject<T>where
T: ?Sized + NSTextSelectionDataSource,
Implementors§
impl NSTextSelectionDataSource for NSTextLayoutManager
Available on crate feature
NSTextLayoutManager
only.