Trait objc2_app_kit::NSTextInput
source ยท pub unsafe trait NSTextInput {
// Provided methods
unsafe fn insertText(&self, string: Option<&AnyObject>)
where Self: Sized + Message { ... }
unsafe fn doCommandBySelector(&self, selector: Option<Sel>)
where Self: Sized + Message { ... }
unsafe fn setMarkedText_selectedRange(
&self,
string: Option<&AnyObject>,
sel_range: NSRange
)
where Self: Sized + Message { ... }
unsafe fn unmarkText(&self)
where Self: Sized + Message { ... }
unsafe fn hasMarkedText(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn conversationIdentifier(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn attributedSubstringFromRange(
&self,
range: NSRange
) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message { ... }
unsafe fn markedRange(&self) -> NSRange
where Self: Sized + Message { ... }
unsafe fn selectedRange(&self) -> NSRange
where Self: Sized + Message { ... }
unsafe fn firstRectForCharacterRange(&self, range: NSRange) -> NSRect
where Self: Sized + Message { ... }
unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
where Self: Sized + Message { ... }
unsafe fn validAttributesForMarkedText(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSInputManager
only.Provided Methodsยง
unsafe fn insertText(&self, string: Option<&AnyObject>)
๐Deprecated
unsafe fn doCommandBySelector(&self, selector: Option<Sel>)
๐Deprecated
unsafe fn setMarkedText_selectedRange( &self, string: Option<&AnyObject>, sel_range: NSRange )
๐Deprecated
unsafe fn unmarkText(&self)
๐Deprecated
unsafe fn hasMarkedText(&self) -> bool
๐Deprecated
unsafe fn conversationIdentifier(&self) -> NSInteger
๐Deprecated
unsafe fn attributedSubstringFromRange( &self, range: NSRange ) -> Option<Retained<NSAttributedString>>
๐Deprecated
unsafe fn markedRange(&self) -> NSRange
๐Deprecated
unsafe fn selectedRange(&self) -> NSRange
๐Deprecated
unsafe fn firstRectForCharacterRange(&self, range: NSRange) -> NSRect
๐Deprecated
unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
๐Deprecated
unsafe fn validAttributesForMarkedText(&self) -> Option<Retained<NSArray>>
๐Deprecated
Trait Implementationsยง
sourceยงimpl ProtocolType for dyn NSTextInput
impl ProtocolType for dyn NSTextInput
impl<T> ImplementedBy<T> for dyn NSTextInput
Implementations on Foreign Typesยง
impl<T> NSTextInput for ProtocolObject<T>where
T: ?Sized + NSTextInput,
Implementorsยง
impl NSTextInput for NSInputManager
impl NSTextInput for NSTextView
Available on crate features
NSResponder
and NSText
and NSView
and NSTextView
only.