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<Id<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<Id<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<Id<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<Id<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.