Trait UIPickerViewDelegate

Source
pub unsafe trait UIPickerViewDelegate: NSObjectProtocol + MainThreadOnly {
    // 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.
Expand description

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 and objc2-core-foundation only.
Source

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

Available on crate features UIResponder and UIView and objc2-core-foundation 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. Read more
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§