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ยง

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.
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 features NSResponder and NSText and NSView and NSTextView only.