Trait objc2_app_kit::NSColorPickingCustom

source ·
pub unsafe trait NSColorPickingCustom: NSColorPickingDefault + IsMainThreadOnly {
    // 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) -> Id<NSView>
       where Self: Sized + Message { ... }
    unsafe fn setColor(&self, new_color: &NSColor)
       where Self: Sized + Message { ... }
}
Available on crate feature NSColorPicking only.

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) -> Id<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.
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§