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§

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,

source

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

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,

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.
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 features NSResponder and NSText and NSView and NSTextView only.