NSObjectIKImageBrowserDelegate

Trait NSObjectIKImageBrowserDelegate 

Source
pub unsafe trait NSObjectIKImageBrowserDelegate:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn imageBrowserSelectionDidChange(
        &self,
        a_browser: Option<&IKImageBrowserView>,
    ) { ... }
    unsafe fn imageBrowser_cellWasDoubleClickedAtIndex(
        &self,
        a_browser: Option<&IKImageBrowserView>,
        index: NSUInteger,
    ) { ... }
    unsafe fn imageBrowser_cellWasRightClickedAtIndex_withEvent(
        &self,
        a_browser: Option<&IKImageBrowserView>,
        index: NSUInteger,
        event: Option<&NSEvent>,
    ) { ... }
    unsafe fn imageBrowser_backgroundWasRightClickedWithEvent(
        &self,
        a_browser: Option<&IKImageBrowserView>,
        event: Option<&NSEvent>,
    ) { ... }
}
Available on crate features IKImageBrowserView and ImageKit only.
Expand description

Category “IKImageBrowserDelegate” on NSObject. Informal protocol for image browser ’s delegate

Provided Methods§

Source

unsafe fn imageBrowserSelectionDidChange( &self, a_browser: Option<&IKImageBrowserView>, )

Invoked by ‘aBrowser’ when the selection did change

Source

unsafe fn imageBrowser_cellWasDoubleClickedAtIndex( &self, a_browser: Option<&IKImageBrowserView>, index: NSUInteger, )

Invoked by ‘aBrowser’ when a cell was double clicked.

Parameter index: Index of the cell that was double clicked.

Source

unsafe fn imageBrowser_cellWasRightClickedAtIndex_withEvent( &self, a_browser: Option<&IKImageBrowserView>, index: NSUInteger, event: Option<&NSEvent>, )

Invoked by ‘aBrowser’ when a cell was right clicked or left clicked with the Alt key pressed.

Parameter index: Index of the cell that was right clicked.

Source

unsafe fn imageBrowser_backgroundWasRightClickedWithEvent( &self, a_browser: Option<&IKImageBrowserView>, event: Option<&NSEvent>, )

Invoked by ‘aBrowser’ when a the background was right clicked or left clicked with the Alt key pressed.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NSObjectIKImageBrowserDelegate for NSObject

Implementors§