Trait objc2_app_kit::NSTextInputClient
source · pub unsafe trait NSTextInputClient {
Show 19 methods
// Provided methods
unsafe fn insertText_replacementRange(
&self,
string: &AnyObject,
replacement_range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn doCommandBySelector(&self, selector: Sel)
where Self: Sized + Message { ... }
unsafe fn setMarkedText_selectedRange_replacementRange(
&self,
string: &AnyObject,
selected_range: NSRange,
replacement_range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn unmarkText(&self)
where Self: Sized + Message { ... }
unsafe fn selectedRange(&self) -> NSRange
where Self: Sized + Message { ... }
unsafe fn markedRange(&self) -> NSRange
where Self: Sized + Message { ... }
unsafe fn hasMarkedText(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn attributedSubstringForProposedRange_actualRange(
&self,
range: NSRange,
actual_range: NSRangePointer
) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message { ... }
unsafe fn validAttributesForMarkedText(
&self
) -> Retained<NSArray<NSAttributedStringKey>>
where Self: Sized + Message { ... }
unsafe fn firstRectForCharacterRange_actualRange(
&self,
range: NSRange,
actual_range: NSRangePointer
) -> NSRect
where Self: Sized + Message { ... }
unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn attributedString(&self) -> Retained<NSAttributedString>
where Self: Sized + Message { ... }
unsafe fn fractionOfDistanceThroughGlyphForPoint(
&self,
point: NSPoint
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn baselineDeltaForCharacterAtIndex(
&self,
an_index: NSUInteger
) -> CGFloat
where Self: Sized + Message { ... }
unsafe fn windowLevel(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn drawsVerticallyForCharacterAtIndex(
&self,
char_index: NSUInteger
) -> bool
where Self: Sized + Message { ... }
unsafe fn preferredTextAccessoryPlacement(
&self
) -> NSTextCursorAccessoryPlacement
where Self: Sized + Message { ... }
unsafe fn unionRectInVisibleSelectedRange(&self) -> NSRect
where Self: Sized + Message { ... }
unsafe fn documentVisibleRect(&self) -> NSRect
where Self: Sized + Message { ... }
}
Available on crate feature
NSTextInputClient
only.Provided Methods§
unsafe fn insertText_replacementRange( &self, string: &AnyObject, replacement_range: NSRange )
unsafe fn doCommandBySelector(&self, selector: Sel)
unsafe fn setMarkedText_selectedRange_replacementRange( &self, string: &AnyObject, selected_range: NSRange, replacement_range: NSRange )
unsafe fn unmarkText(&self)
unsafe fn selectedRange(&self) -> NSRange
unsafe fn markedRange(&self) -> NSRange
unsafe fn hasMarkedText(&self) -> bool
unsafe fn attributedSubstringForProposedRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer ) -> Option<Retained<NSAttributedString>>
unsafe fn validAttributesForMarkedText( &self ) -> Retained<NSArray<NSAttributedStringKey>>
unsafe fn firstRectForCharacterRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer ) -> NSRect
unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
unsafe fn attributedString(&self) -> Retained<NSAttributedString>
unsafe fn fractionOfDistanceThroughGlyphForPoint( &self, point: NSPoint ) -> CGFloat
unsafe fn baselineDeltaForCharacterAtIndex( &self, an_index: NSUInteger ) -> CGFloat
unsafe fn windowLevel(&self) -> NSInteger
unsafe fn drawsVerticallyForCharacterAtIndex( &self, char_index: NSUInteger ) -> bool
unsafe fn preferredTextAccessoryPlacement( &self ) -> NSTextCursorAccessoryPlacement
unsafe fn unionRectInVisibleSelectedRange(&self) -> NSRect
unsafe fn documentVisibleRect(&self) -> NSRect
Trait Implementations§
source§impl ProtocolType for dyn NSTextInputClient
impl ProtocolType for dyn NSTextInputClient
impl<T> ImplementedBy<T> for dyn NSTextInputClient
Implementations on Foreign Types§
impl<T> NSTextInputClient for ProtocolObject<T>where
T: ?Sized + NSTextInputClient,
Implementors§
impl NSTextInputClient for NSTextView
Available on crate features
NSResponder
and NSText
and NSView
and NSTextView
only.