Trait objc2_app_kit::NSColorPickingDefault

source ·
pub unsafe trait NSColorPickingDefault: IsMainThreadOnly {
    // Provided methods
    unsafe fn initWithPickerMask_colorPanel(
        this: Allocated<Self>,
        mask: NSUInteger,
        owning_color_panel: &NSColorPanel
    ) -> Option<Retained<Self>>
       where Self: Sized + Message { ... }
    unsafe fn provideNewButtonImage(&self) -> Retained<NSImage>
       where Self: Sized + Message { ... }
    unsafe fn insertNewButtonImage_in(
        &self,
        new_button_image: &NSImage,
        button_cell: &NSButtonCell
    )
       where Self: Sized + Message { ... }
    unsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
       where Self: Sized + Message { ... }
    unsafe fn alphaControlAddedOrRemoved(&self, sender: Option<&AnyObject>)
       where Self: Sized + Message { ... }
    unsafe fn attachColorList(&self, color_list: &NSColorList)
       where Self: Sized + Message { ... }
    unsafe fn detachColorList(&self, color_list: &NSColorList)
       where Self: Sized + Message { ... }
    unsafe fn setMode(&self, mode: NSColorPanelMode)
       where Self: Sized + Message { ... }
    unsafe fn buttonToolTip(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn minContentSize(&self) -> NSSize
       where Self: Sized + Message { ... }
}
Available on crate feature NSColorPicking only.

Provided Methods§

source

unsafe fn initWithPickerMask_colorPanel( this: Allocated<Self>, mask: NSUInteger, owning_color_panel: &NSColorPanel ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate features NSColorPanel and NSPanel and NSResponder and NSWindow only.
source

unsafe fn provideNewButtonImage(&self) -> Retained<NSImage>
where Self: Sized + Message,

Available on crate feature NSImage only.
source

unsafe fn insertNewButtonImage_in( &self, new_button_image: &NSImage, button_cell: &NSButtonCell )
where Self: Sized + Message,

Available on crate features NSActionCell and NSButtonCell and NSCell and NSImage only.
source

unsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source

unsafe fn alphaControlAddedOrRemoved(&self, sender: Option<&AnyObject>)
where Self: Sized + Message,

source

unsafe fn attachColorList(&self, color_list: &NSColorList)
where Self: Sized + Message,

Available on crate feature NSColorList only.
source

unsafe fn detachColorList(&self, color_list: &NSColorList)
where Self: Sized + Message,

Available on crate feature NSColorList only.
source

unsafe fn setMode(&self, mode: NSColorPanelMode)
where Self: Sized + Message,

Available on crate feature NSColorPanel only.
source

unsafe fn buttonToolTip(&self) -> Retained<NSString>
where Self: Sized + Message,

source

unsafe fn minContentSize(&self) -> NSSize
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn NSColorPickingDefault

source§

const NAME: &'static str = "NSColorPickingDefault"

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 NSColorPickingDefault

Implementations on Foreign Types§

source§

impl<T> NSColorPickingDefault for ProtocolObject<T>

Implementors§

source§

impl NSColorPickingDefault for NSColorPicker

Available on crate feature NSColorPicker only.