Trait objc2_ui_kit::UIPickerViewDelegate

source ·
pub unsafe trait UIPickerViewDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn pickerView_widthForComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger
    ) -> CGFloat
       where Self: Sized + Message { ... }
    unsafe fn pickerView_rowHeightForComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger
    ) -> CGFloat
       where Self: Sized + Message { ... }
    unsafe fn pickerView_titleForRow_forComponent(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn pickerView_attributedTitleForRow_forComponent(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger
    ) -> Option<Retained<NSAttributedString>>
       where Self: Sized + Message { ... }
    unsafe fn pickerView_viewForRow_forComponent_reusingView(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger,
        view: Option<&UIView>
    ) -> Retained<UIView>
       where Self: Sized + Message { ... }
    unsafe fn pickerView_didSelectRow_inComponent(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIPickerView only.

Provided Methods§

source

unsafe fn pickerView_widthForComponent( &self, picker_view: &UIPickerView, component: NSInteger ) -> CGFloat
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_rowHeightForComponent( &self, picker_view: &UIPickerView, component: NSInteger ) -> CGFloat
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_titleForRow_forComponent( &self, picker_view: &UIPickerView, row: NSInteger, component: NSInteger ) -> Option<Retained<NSString>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_attributedTitleForRow_forComponent( &self, picker_view: &UIPickerView, row: NSInteger, component: NSInteger ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_viewForRow_forComponent_reusingView( &self, picker_view: &UIPickerView, row: NSInteger, component: NSInteger, view: Option<&UIView> ) -> Retained<UIView>
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.
source

unsafe fn pickerView_didSelectRow_inComponent( &self, picker_view: &UIPickerView, row: NSInteger, component: NSInteger )
where Self: Sized + Message,

Available on crate features UIResponder and UIView only.

Trait Implementations§

source§

impl ProtocolType for dyn UIPickerViewDelegate

source§

const NAME: &'static str = "UIPickerViewDelegate"

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 UIPickerViewDelegate

Implementations on Foreign Types§

source§

impl<T> UIPickerViewDelegate for ProtocolObject<T>

Implementors§