Trait NSColorPickingDefault

Source
pub unsafe trait NSColorPickingDefault: MainThreadOnly {
    // 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.
Expand description

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. 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 NSColorPickingDefault

Implementations on Foreign Types§

Source§

impl<T> NSColorPickingDefault for ProtocolObject<T>

Implementors§

Source§

impl NSColorPickingDefault for NSColorPicker

Available on crate feature NSColorPicker only.