Trait 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.
Expand description

Provided MethodsΒ§

Source

unsafe fn insertText(&self, string: Option<&AnyObject>)
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn doCommandBySelector(&self, selector: Option<Sel>)
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn setMarkedText_selectedRange( &self, string: Option<&AnyObject>, sel_range: NSRange, )
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn unmarkText(&self)
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn hasMarkedText(&self) -> bool
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn conversationIdentifier(&self) -> NSInteger
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn attributedSubstringFromRange( &self, range: NSRange, ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn markedRange(&self) -> NSRange
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn selectedRange(&self) -> NSRange
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn firstRectForCharacterRange(&self, range: NSRange) -> NSRect
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn characterIndexForPoint(&self, point: NSPoint) -> NSUInteger
where Self: Sized + Message,

πŸ‘ŽDeprecated
Source

unsafe fn validAttributesForMarkedText(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

πŸ‘ŽDeprecated

Trait ImplementationsΒ§

SourceΒ§

impl ProtocolType for dyn NSTextInput

SourceΒ§

const NAME: &'static str = "NSTextInput"

The name of the Objective-C protocol that this type represents. Read more
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 NSTextInput
where T: ?Sized + Message + NSTextInput,

Implementations on Foreign TypesΒ§

SourceΒ§

impl<T> NSTextInput for ProtocolObject<T>
where T: ?Sized + NSTextInput,

ImplementorsΒ§

SourceΒ§

impl NSTextInput for NSInputManager

SourceΒ§

impl NSTextInput for NSTextView

Available on crate feature NSTextView only.