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.Expand description
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 feature
NSTextView
only.