Skip to main content

NSColorPickingDefault

Trait NSColorPickingDefault 

Source
pub unsafe trait NSColorPickingDefault: MainThreadOnly {
    // Provided methods
    fn initWithPickerMask_colorPanel(
        this: Allocated<Self>,
        mask: NSUInteger,
        owning_color_panel: &NSColorPanel,
    ) -> Option<Retained<Self>>
       where Self: Sized + Message { ... }
    fn provideNewButtonImage(&self) -> Retained<NSImage>
       where Self: Sized + Message { ... }
    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 { ... }
    fn attachColorList(&self, color_list: &NSColorList)
       where Self: Sized + Message { ... }
    fn detachColorList(&self, color_list: &NSColorList)
       where Self: Sized + Message { ... }
    fn setMode(&self, mode: NSColorPanelMode)
       where Self: Sized + Message { ... }
    fn buttonToolTip(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    fn minContentSize(&self) -> NSSize
       where Self: Sized + Message { ... }
}
Available on crate feature NSColorPicking only.
Expand description

Provided Methods§

Source

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

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

Available on crate feature NSImage only.
Source

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,

§Safety

sender should be of the correct type.

Source

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

§Safety

sender should be of the correct type.

Source

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

Available on crate feature NSColorList only.
Source

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

Available on crate feature NSColorList only.
Source

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

Available on crate feature NSColorPanel only.
Source

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

Source

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

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSColorPickingDefault

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

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

Implementors§

Source§

impl NSColorPickingDefault for NSColorPicker

Available on crate feature NSColorPicker only.