Skip to main content

NSColorPickingCustom

Trait NSColorPickingCustom 

Source
pub unsafe trait NSColorPickingCustom: NSColorPickingDefault + MainThreadOnly {
    // Provided methods
    fn supportsMode(&self, mode: NSColorPanelMode) -> bool
       where Self: Sized + Message { ... }
    fn currentMode(&self) -> NSColorPanelMode
       where Self: Sized + Message { ... }
    fn provideNewView(&self, initial_request: bool) -> Retained<NSView>
       where Self: Sized + Message { ... }
    fn setColor(&self, new_color: &NSColor)
       where Self: Sized + Message { ... }
}
Available on crate feature NSColorPicking only.
Expand description

Provided Methods§

Source

fn supportsMode(&self, mode: NSColorPanelMode) -> bool
where Self: Sized + Message,

Available on crate feature NSColorPanel only.
Source

fn currentMode(&self) -> NSColorPanelMode
where Self: Sized + Message,

Available on crate feature NSColorPanel only.
Source

fn provideNewView(&self, initial_request: bool) -> Retained<NSView>
where Self: Sized + Message,

Available on crate features NSResponder and NSView only.
Source

fn setColor(&self, new_color: &NSColor)
where Self: Sized + Message,

Available on crate feature NSColor only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSColorPickingCustom

Source§

impl ProtocolType for dyn NSColorPickingCustom

Source§

const NAME: &'static str = "NSColorPickingCustom"

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

Implementors§