Trait objc2_app_kit::NSComboBoxCellDataSource

source ·
pub unsafe trait NSComboBoxCellDataSource: NSObjectProtocol {
    // Provided methods
    unsafe fn numberOfItemsInComboBoxCell(
        &self,
        combo_box_cell: &NSComboBoxCell
    ) -> NSInteger
       where Self: Sized + Message { ... }
    unsafe fn comboBoxCell_objectValueForItemAtIndex(
        &self,
        combo_box_cell: &NSComboBoxCell,
        index: NSInteger
    ) -> Id<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn comboBoxCell_indexOfItemWithStringValue(
        &self,
        combo_box_cell: &NSComboBoxCell,
        string: &NSString
    ) -> NSUInteger
       where Self: Sized + Message { ... }
    unsafe fn comboBoxCell_completedString(
        &self,
        combo_box_cell: &NSComboBoxCell,
        uncompleted_string: &NSString
    ) -> Option<Id<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSComboBoxCell only.

Provided Methods§

source

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

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

unsafe fn comboBoxCell_objectValueForItemAtIndex( &self, combo_box_cell: &NSComboBoxCell, index: NSInteger ) -> Id<AnyObject>
where Self: Sized + Message,

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

unsafe fn comboBoxCell_indexOfItemWithStringValue( &self, combo_box_cell: &NSComboBoxCell, string: &NSString ) -> NSUInteger
where Self: Sized + Message,

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

unsafe fn comboBoxCell_completedString( &self, combo_box_cell: &NSComboBoxCell, uncompleted_string: &NSString ) -> Option<Id<NSString>>
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSTextFieldCell only.

Trait Implementations§

source§

impl ProtocolType for dyn NSComboBoxCellDataSource

source§

const NAME: &'static str = "NSComboBoxCellDataSource"

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 NSComboBoxCellDataSource

Implementations on Foreign Types§

source§

impl<T> NSComboBoxCellDataSource for ProtocolObject<T>

Implementors§