Trait NSTextInputClient

Source
pub unsafe trait NSTextInputClient {
Show 21 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 { ... } unsafe fn supportsAdaptiveImageGlyph(&self) -> bool where Self: Sized + Message { ... } unsafe fn insertAdaptiveImageGlyph_replacementRange( &self, adaptive_image_glyph: &NSAdaptiveImageGlyph, replacement_range: NSRange, ) where Self: Sized + Message { ... }
}
Available on crate feature NSTextInputClient only.
Expand description

Provided Methods§

Source

unsafe fn insertText_replacementRange( &self, string: &AnyObject, replacement_range: NSRange, )
where Self: Sized + Message,

Source

unsafe fn doCommandBySelector(&self, selector: Sel)
where Self: Sized + Message,

Source

unsafe fn setMarkedText_selectedRange_replacementRange( &self, string: &AnyObject, selected_range: NSRange, replacement_range: NSRange, )
where Self: Sized + Message,

Source

unsafe fn unmarkText(&self)
where Self: Sized + Message,

Source

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

Source

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

Source

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

Source

unsafe fn attributedSubstringForProposedRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer, ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

Source

unsafe fn validAttributesForMarkedText( &self, ) -> Retained<NSArray<NSAttributedStringKey>>
where Self: Sized + Message,

Source

unsafe fn firstRectForCharacterRange_actualRange( &self, range: NSRange, actual_range: NSRangePointer, ) -> NSRect
where Self: Sized + Message,

Source

unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
where Self: Sized + Message,

Source

unsafe fn attributedString(&self) -> Retained<NSAttributedString>
where Self: Sized + Message,

Source

unsafe fn fractionOfDistanceThroughGlyphForPoint( &self, point: NSPoint, ) -> CGFloat
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

unsafe fn baselineDeltaForCharacterAtIndex( &self, an_index: NSUInteger, ) -> CGFloat
where Self: Sized + Message,

Available on crate feature objc2-core-foundation only.
Source

unsafe fn windowLevel(&self) -> NSInteger
where Self: Sized + Message,

Source

unsafe fn drawsVerticallyForCharacterAtIndex( &self, char_index: NSUInteger, ) -> bool
where Self: Sized + Message,

Source

unsafe fn preferredTextAccessoryPlacement( &self, ) -> NSTextCursorAccessoryPlacement
where Self: Sized + Message,

Source

unsafe fn unionRectInVisibleSelectedRange(&self) -> NSRect
where Self: Sized + Message,

Source

unsafe fn documentVisibleRect(&self) -> NSRect
where Self: Sized + Message,

Source

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

Source

unsafe fn insertAdaptiveImageGlyph_replacementRange( &self, adaptive_image_glyph: &NSAdaptiveImageGlyph, replacement_range: NSRange, )
where Self: Sized + Message,

Available on crate feature NSAdaptiveImageGlyph only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSTextInputClient

Source§

const NAME: &'static str = "NSTextInputClient"

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

impl<T> ImplementedBy<T> for dyn NSTextInputClient

Implementations on Foreign Types§

Source§

impl<T> NSTextInputClient for ProtocolObject<T>

Implementors§

Source§

impl NSTextInputClient for NSTextView

Available on crate feature NSTextView only.