Trait objc2_app_kit::NSTokenFieldCellDelegate

source ·
pub unsafe trait NSTokenFieldCellDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem(
        &self,
        token_field_cell: &NSTokenFieldCell,
        substring: &NSString,
        token_index: NSInteger,
        selected_index: NonNull<NSInteger>
    ) -> Id<NSArray>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_shouldAddObjects_atIndex(
        &self,
        token_field_cell: &NSTokenFieldCell,
        tokens: &NSArray,
        index: NSUInteger
    ) -> Id<NSArray>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_displayStringForRepresentedObject(
        &self,
        token_field_cell: &NSTokenFieldCell,
        represented_object: &AnyObject
    ) -> Option<Id<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_editingStringForRepresentedObject(
        &self,
        token_field_cell: &NSTokenFieldCell,
        represented_object: &AnyObject
    ) -> Option<Id<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_representedObjectForEditingString(
        &self,
        token_field_cell: &NSTokenFieldCell,
        editing_string: &NSString
    ) -> Option<Id<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_writeRepresentedObjects_toPasteboard(
        &self,
        token_field_cell: &NSTokenFieldCell,
        objects: &NSArray,
        pboard: &NSPasteboard
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_readFromPasteboard(
        &self,
        token_field_cell: &NSTokenFieldCell,
        pboard: &NSPasteboard
    ) -> Option<Id<NSArray>>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_menuForRepresentedObject(
        &self,
        token_field_cell: &NSTokenFieldCell,
        represented_object: &AnyObject
    ) -> Option<Id<NSMenu>>
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_hasMenuForRepresentedObject(
        &self,
        token_field_cell: &NSTokenFieldCell,
        represented_object: &AnyObject
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn tokenFieldCell_styleForRepresentedObject(
        &self,
        token_field_cell: &NSTokenFieldCell,
        represented_object: &AnyObject
    ) -> NSTokenStyle
       where Self: Sized + Message { ... }
}
Available on crate feature NSTokenFieldCell only.

Provided Methods§

source

unsafe fn tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem( &self, token_field_cell: &NSTokenFieldCell, substring: &NSString, token_index: NSInteger, selected_index: NonNull<NSInteger> ) -> Id<NSArray>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_shouldAddObjects_atIndex( &self, token_field_cell: &NSTokenFieldCell, tokens: &NSArray, index: NSUInteger ) -> Id<NSArray>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_displayStringForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> Option<Id<NSString>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_editingStringForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> Option<Id<NSString>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_representedObjectForEditingString( &self, token_field_cell: &NSTokenFieldCell, editing_string: &NSString ) -> Option<Id<AnyObject>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_writeRepresentedObjects_toPasteboard( &self, token_field_cell: &NSTokenFieldCell, objects: &NSArray, pboard: &NSPasteboard ) -> bool
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSPasteboard and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_readFromPasteboard( &self, token_field_cell: &NSTokenFieldCell, pboard: &NSPasteboard ) -> Option<Id<NSArray>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSPasteboard and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_menuForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> Option<Id<NSMenu>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSMenu and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_hasMenuForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> bool
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.
source

unsafe fn tokenFieldCell_styleForRepresentedObject( &self, token_field_cell: &NSTokenFieldCell, represented_object: &AnyObject ) -> NSTokenStyle
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.

Trait Implementations§

source§

impl ProtocolType for dyn NSTokenFieldCellDelegate

source§

const NAME: &'static str = "NSTokenFieldCellDelegate"

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 NSTokenFieldCellDelegate

Implementations on Foreign Types§

source§

impl<T> NSTokenFieldCellDelegate for ProtocolObject<T>

Implementors§