Trait objc2_app_kit::NSPathControlDelegate

source ·
pub unsafe trait NSPathControlDelegate: NSObjectProtocol + IsMainThreadOnly {
    // Provided methods
    unsafe fn pathControl_shouldDragItem_withPasteboard(
        &self,
        path_control: &NSPathControl,
        path_item: &NSPathControlItem,
        pasteboard: &NSPasteboard
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn pathControl_shouldDragPathComponentCell_withPasteboard(
        &self,
        path_control: &NSPathControl,
        path_component_cell: &NSPathComponentCell,
        pasteboard: &NSPasteboard
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn pathControl_validateDrop(
        &self,
        path_control: &NSPathControl,
        info: &ProtocolObject<dyn NSDraggingInfo>
    ) -> NSDragOperation
       where Self: Sized + Message { ... }
    unsafe fn pathControl_acceptDrop(
        &self,
        path_control: &NSPathControl,
        info: &ProtocolObject<dyn NSDraggingInfo>
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn pathControl_willDisplayOpenPanel(
        &self,
        path_control: &NSPathControl,
        open_panel: &NSOpenPanel
    )
       where Self: Sized + Message { ... }
    unsafe fn pathControl_willPopUpMenu(
        &self,
        path_control: &NSPathControl,
        menu: &NSMenu
    )
       where Self: Sized + Message { ... }
}
Available on crate feature NSPathControl only.

Provided Methods§

source

unsafe fn pathControl_shouldDragItem_withPasteboard( &self, path_control: &NSPathControl, path_item: &NSPathControlItem, pasteboard: &NSPasteboard ) -> bool
where Self: Sized + Message,

Available on crate features NSControl and NSPasteboard and NSPathControlItem and NSResponder and NSView only.
source

unsafe fn pathControl_shouldDragPathComponentCell_withPasteboard( &self, path_control: &NSPathControl, path_component_cell: &NSPathComponentCell, pasteboard: &NSPasteboard ) -> bool
where Self: Sized + Message,

Available on crate features NSActionCell and NSCell and NSControl and NSPasteboard and NSPathComponentCell and NSResponder and NSTextFieldCell and NSView only.
source

unsafe fn pathControl_validateDrop( &self, path_control: &NSPathControl, info: &ProtocolObject<dyn NSDraggingInfo> ) -> NSDragOperation
where Self: Sized + Message,

Available on crate features NSControl and NSDragging and NSResponder and NSView only.
source

unsafe fn pathControl_acceptDrop( &self, path_control: &NSPathControl, info: &ProtocolObject<dyn NSDraggingInfo> ) -> bool
where Self: Sized + Message,

Available on crate features NSControl and NSDragging and NSResponder and NSView only.
source

unsafe fn pathControl_willDisplayOpenPanel( &self, path_control: &NSPathControl, open_panel: &NSOpenPanel )
where Self: Sized + Message,

Available on crate features NSControl and NSOpenPanel and NSPanel and NSResponder and NSSavePanel and NSView and NSWindow only.
source

unsafe fn pathControl_willPopUpMenu( &self, path_control: &NSPathControl, menu: &NSMenu )
where Self: Sized + Message,

Available on crate features NSControl and NSMenu and NSResponder and NSView only.

Trait Implementations§

source§

impl ProtocolType for dyn NSPathControlDelegate

source§

const NAME: &'static str = "NSPathControlDelegate"

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 NSPathControlDelegate

Implementations on Foreign Types§

source§

impl<T> NSPathControlDelegate for ProtocolObject<T>

Implementors§