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 feature IKImageBrowserView 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

§Safety

a_browser might not allow None.

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.

§Safety

a_browser might not allow None.

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.

§Safety
  • a_browser might not allow None.
  • event might not allow None.
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.

§Safety
  • a_browser might not allow None.
  • event might not allow None.

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

Available on crate feature ImageKit only.

Implementors§