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§
fn pathControl_shouldDragItem_withPasteboard( &self, path_control: &NSPathControl, path_item: &NSPathControlItem, pasteboard: &NSPasteboard, ) -> bool
Available on crate features
NSControl and NSPasteboard and NSPathControlItem and NSResponder and NSView only.fn pathControl_shouldDragPathComponentCell_withPasteboard( &self, path_control: &NSPathControl, path_component_cell: &NSPathComponentCell, pasteboard: &NSPasteboard, ) -> bool
Available on crate features
NSActionCell and NSCell and NSControl and NSPasteboard and NSPathComponentCell and NSResponder and NSTextFieldCell and NSView only.fn pathControl_validateDrop( &self, path_control: &NSPathControl, info: &ProtocolObject<dyn NSDraggingInfo>, ) -> NSDragOperation
Available on crate features
NSControl and NSDragging and NSResponder and NSView only.fn pathControl_acceptDrop( &self, path_control: &NSPathControl, info: &ProtocolObject<dyn NSDraggingInfo>, ) -> bool
Available on crate features
NSControl and NSDragging and NSResponder and NSView only.fn pathControl_willDisplayOpenPanel( &self, path_control: &NSPathControl, open_panel: &NSOpenPanel, )
Available on crate features
NSControl and NSOpenPanel and NSPanel and NSResponder and NSSavePanel and NSView and NSWindow only.fn pathControl_willPopUpMenu(&self, path_control: &NSPathControl, menu: &NSMenu)
Available on crate features
NSControl and NSMenu and NSResponder and NSView only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSPathControlDelegate
Source§impl ProtocolType for dyn NSPathControlDelegate
impl ProtocolType for dyn NSPathControlDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".