Skip to main content

UIPickerViewDelegate

Trait UIPickerViewDelegate 

Source
pub unsafe trait UIPickerViewDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn pickerView_widthForComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn pickerView_rowHeightForComponent(
        &self,
        picker_view: &UIPickerView,
        component: NSInteger,
    ) -> CGFloat
       where Self: Sized + Message { ... }
    fn pickerView_titleForRow_forComponent(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger,
    ) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    fn pickerView_attributedTitleForRow_forComponent(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger,
    ) -> Option<Retained<NSAttributedString>>
       where Self: Sized + Message { ... }
    fn pickerView_viewForRow_forComponent_reusingView(
        &self,
        picker_view: &UIPickerView,
        row: NSInteger,
        component: NSInteger,
        view: Option<&UIView>,
    ) -> Retained<UIView>
       where Self: Sized + Message { ... }
    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

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

Available on crate features objc2-core-foundation and UIResponder and UIView only.
Source

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

Available on crate features objc2-core-foundation and UIResponder and UIView only.
Source

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

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

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

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<T> ImplementedBy<T> for dyn UIPickerViewDelegate

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> UIPickerViewDelegate for ProtocolObject<T>

Implementors§