Trait NSColorPickingCustom

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

Provided Methods§

Source

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

Available on crate feature NSColorPanel only.
Source

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

Available on crate feature NSColorPanel only.
Source

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

Available on crate features NSResponder and NSView only.
Source

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

Available on crate feature NSColor only.

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn NSColorPickingCustom

Implementations on Foreign Types§

Source§

impl<T> NSColorPickingCustom for ProtocolObject<T>

Implementors§