Skip to main content

UIPopoverControllerDelegate

Trait UIPopoverControllerDelegate 

Source
pub unsafe trait UIPopoverControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    fn popoverControllerShouldDismissPopover(
        &self,
        popover_controller: &UIPopoverController,
    ) -> bool
       where Self: Sized + Message { ... }
    fn popoverControllerDidDismissPopover(
        &self,
        popover_controller: &UIPopoverController,
    )
       where Self: Sized + Message { ... }
    unsafe fn popoverController_willRepositionPopoverToRect_inView(
        &self,
        popover_controller: &UIPopoverController,
        rect: NonNull<CGRect>,
        view: &mut Retained<UIView>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIPopoverController only.
Expand description

Provided Methods§

Source

fn popoverControllerShouldDismissPopover( &self, popover_controller: &UIPopoverController, ) -> bool
where Self: Sized + Message,

👎Deprecated
Source

fn popoverControllerDidDismissPopover( &self, popover_controller: &UIPopoverController, )
where Self: Sized + Message,

👎Deprecated
Source

unsafe fn popoverController_willRepositionPopoverToRect_inView( &self, popover_controller: &UIPopoverController, rect: NonNull<CGRect>, view: &mut Retained<UIView>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features objc2-core-foundation and UIResponder and UIView only.
§Safety

rect must be a valid pointer.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn UIPopoverControllerDelegate

Source§

impl ProtocolType for dyn UIPopoverControllerDelegate

Source§

const NAME: &'static str = "UIPopoverControllerDelegate"

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> UIPopoverControllerDelegate for ProtocolObject<T>

Implementors§