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§
fn initWithPickerMask_colorPanel( this: Allocated<Self>, mask: NSUInteger, owning_color_panel: &NSColorPanel, ) -> Option<Retained<Self>>
Available on crate features
NSColorPanel
and NSPanel
and NSResponder
and NSWindow
only.fn provideNewButtonImage(&self) -> Retained<NSImage>
Available on crate feature
NSImage
only.fn insertNewButtonImage_in( &self, new_button_image: &NSImage, button_cell: &NSButtonCell, )
Available on crate features
NSActionCell
and NSButtonCell
and NSCell
and NSImage
only.Sourceunsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
unsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
Sourceunsafe fn alphaControlAddedOrRemoved(&self, sender: Option<&AnyObject>)
unsafe fn alphaControlAddedOrRemoved(&self, sender: Option<&AnyObject>)
§Safety
sender
should be of the correct type.
fn attachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.fn detachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.fn setMode(&self, mode: NSColorPanelMode)
Available on crate feature
NSColorPanel
only.fn minContentSize(&self) -> NSSize
Trait Implementations§
Source§impl ProtocolType for dyn NSColorPickingDefault
impl ProtocolType for dyn NSColorPickingDefault
impl<T> ImplementedBy<T> for dyn NSColorPickingDefault
Implementations on Foreign Types§
impl<T> NSColorPickingDefault for ProtocolObject<T>where
T: ?Sized + NSColorPickingDefault,
Implementors§
impl NSColorPickingDefault for NSColorPicker
Available on crate feature
NSColorPicker
only.