Skip to main content

NSPathControlDelegate

Trait NSPathControlDelegate 

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

Provided Methods§

Source

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

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

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

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

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

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

Source§

impl ProtocolType for dyn NSPathControlDelegate

Source§

const NAME: &'static str = "NSPathControlDelegate"

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

Implementors§