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 { ... }
fn unmarkText(&self)
where Self: Sized + Message { ... }
fn hasMarkedText(&self) -> bool
where Self: Sized + Message { ... }
fn conversationIdentifier(&self) -> NSInteger
where Self: Sized + Message { ... }
fn attributedSubstringFromRange(
&self,
range: NSRange,
) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message { ... }
fn markedRange(&self) -> NSRange
where Self: Sized + Message { ... }
fn selectedRange(&self) -> NSRange
where Self: Sized + Message { ... }
fn firstRectForCharacterRange(&self, range: NSRange) -> NSRect
where Self: Sized + Message { ... }
fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
where Self: Sized + Message { ... }
fn validAttributesForMarkedText(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message { ... }
}
Available on crate feature
NSInputManager
only.Expand description
Provided Methods§
Sourceunsafe fn insertText(&self, string: Option<&AnyObject>)
👎Deprecated
unsafe fn insertText(&self, string: Option<&AnyObject>)
§Safety
string
should be of the correct type.string
might not allowNone
.
Sourceunsafe fn doCommandBySelector(&self, selector: Option<Sel>)
👎Deprecated
unsafe fn doCommandBySelector(&self, selector: Option<Sel>)
§Safety
selector
must be a valid selector.
Sourceunsafe fn setMarkedText_selectedRange(
&self,
string: Option<&AnyObject>,
sel_range: NSRange,
)
👎Deprecated
unsafe fn setMarkedText_selectedRange( &self, string: Option<&AnyObject>, sel_range: NSRange, )
§Safety
string
should be of the correct type.string
might not allowNone
.
fn unmarkText(&self)
👎Deprecated
fn hasMarkedText(&self) -> bool
👎Deprecated
fn conversationIdentifier(&self) -> NSInteger
👎Deprecated
fn attributedSubstringFromRange( &self, range: NSRange, ) -> Option<Retained<NSAttributedString>>
👎Deprecated
fn markedRange(&self) -> NSRange
👎Deprecated
fn selectedRange(&self) -> NSRange
👎Deprecated
fn firstRectForCharacterRange(&self, range: NSRange) -> NSRect
👎Deprecated
fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
👎Deprecated
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.