Trait UIPopoverControllerDelegate

Source
pub unsafe trait UIPopoverControllerDelegate: NSObjectProtocol + MainThreadOnly {
    // Provided methods
    unsafe fn popoverControllerShouldDismissPopover(
        &self,
        popover_controller: &UIPopoverController,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe 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

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

👎Deprecated
Source

unsafe 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 UIResponder and UIView and objc2-core-foundation only.

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn UIPopoverControllerDelegate

Implementations on Foreign Types§

Source§

impl<T> UIPopoverControllerDelegate for ProtocolObject<T>

Implementors§