Trait objc2_app_kit::NSTextFieldDelegate

source ·
pub unsafe trait NSTextFieldDelegate: NSControlTextEditingDelegate + IsMainThreadOnly {
    // Provided methods
    unsafe fn textField_textView_candidatesForSelectedRange(
        &self,
        text_field: &NSTextField,
        text_view: &NSTextView,
        selected_range: NSRange
    ) -> Option<Id<NSArray>>
       where Self: Sized + Message { ... }
    unsafe fn textField_textView_candidates_forSelectedRange(
        &self,
        text_field: &NSTextField,
        text_view: &NSTextView,
        candidates: &NSArray<NSTextCheckingResult>,
        selected_range: NSRange
    ) -> Id<NSArray<NSTextCheckingResult>>
       where Self: Sized + Message { ... }
    unsafe fn textField_textView_shouldSelectCandidateAtIndex(
        &self,
        text_field: &NSTextField,
        text_view: &NSTextView,
        index: NSUInteger
    ) -> bool
       where Self: Sized + Message { ... }
}
Available on crate features NSControl and NSTextField only.

Provided Methods§

source

unsafe fn textField_textView_candidatesForSelectedRange( &self, text_field: &NSTextField, text_view: &NSTextView, selected_range: NSRange ) -> Option<Id<NSArray>>
where Self: Sized + Message,

Available on crate features NSResponder and NSText and NSTextView and NSView only.
source

unsafe fn textField_textView_candidates_forSelectedRange( &self, text_field: &NSTextField, text_view: &NSTextView, candidates: &NSArray<NSTextCheckingResult>, selected_range: NSRange ) -> Id<NSArray<NSTextCheckingResult>>
where Self: Sized + Message,

Available on crate features NSResponder and NSText and NSTextView and NSView only.
source

unsafe fn textField_textView_shouldSelectCandidateAtIndex( &self, text_field: &NSTextField, text_view: &NSTextView, index: NSUInteger ) -> bool
where Self: Sized + Message,

Available on crate features NSResponder and NSText and NSTextView and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTextFieldDelegate

source§

const NAME: &'static str = "NSTextFieldDelegate"

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 NSTextFieldDelegate

Implementations on Foreign Types§

source§

impl<T> NSTextFieldDelegate for ProtocolObject<T>

Implementors§