Skip to main content

NSDockTilePlugIn

Trait NSDockTilePlugIn 

Source
pub unsafe trait NSDockTilePlugIn: NSObjectProtocol {
    // Provided methods
    fn setDockTile(&self, dock_tile: Option<&NSDockTile>)
       where Self: Sized + Message { ... }
    fn dockMenu(&self, mtm: MainThreadMarker) -> Option<Retained<NSMenu>>
       where Self: Sized + Message { ... }
}
Available on crate feature NSDockTile only.
Expand description

Provided Methods§

Source

fn setDockTile(&self, dock_tile: Option<&NSDockTile>)
where Self: Sized + Message,

Source

fn dockMenu(&self, mtm: MainThreadMarker) -> Option<Retained<NSMenu>>
where Self: Sized + Message,

Available on crate feature NSMenu only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSDockTilePlugIn

Source§

impl ProtocolType for dyn NSDockTilePlugIn

Source§

const NAME: &'static str = "NSDockTilePlugIn"

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> NSDockTilePlugIn for ProtocolObject<T>
where T: ?Sized + NSDockTilePlugIn,

Implementors§