Struct objc2_app_kit::NSColorPicker
source · #[repr(C)]pub struct NSColorPicker { /* private fields */ }
Available on crate feature
NSColorPicker
only.Implementations§
source§impl NSColorPicker
impl NSColorPicker
pub unsafe fn initWithPickerMask_colorPanel( this: Allocated<Self>, mask: NSUInteger, owning_color_panel: &NSColorPanel ) -> Option<Id<Self>>
Available on crate features
NSColorPanel
and NSPanel
and NSResponder
and NSWindow
only.pub unsafe fn colorPanel(&self) -> Id<NSColorPanel>
Available on crate features
NSColorPanel
and NSPanel
and NSResponder
and NSWindow
only.pub unsafe fn provideNewButtonImage(&self) -> Id<NSImage>
Available on crate feature
NSImage
only.pub unsafe fn insertNewButtonImage_in( &self, new_button_image: &NSImage, button_cell: &NSButtonCell )
Available on crate features
NSActionCell
and NSButtonCell
and NSCell
and NSImage
only.pub unsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
pub unsafe fn attachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.pub unsafe fn detachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.pub unsafe fn setMode(&self, mode: NSColorPanelMode)
Available on crate feature
NSColorPanel
only.pub unsafe fn minContentSize(&self) -> NSSize
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature NSAccessibilityConstants
only.
pub fn class(&self) -> &'static AnyClass
NSAccessibilityConstants
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.NSAccessibilityConstants
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature NSAccessibilityConstants
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.NSAccessibilityConstants
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for NSColorPicker
impl AsMut<AnyObject> for NSColorPicker
source§impl AsMut<NSColorPicker> for NSColorPicker
impl AsMut<NSColorPicker> for NSColorPicker
source§impl AsMut<NSObject> for NSColorPicker
impl AsMut<NSObject> for NSColorPicker
source§impl AsRef<AnyObject> for NSColorPicker
impl AsRef<AnyObject> for NSColorPicker
source§impl AsRef<NSColorPicker> for NSColorPicker
impl AsRef<NSColorPicker> for NSColorPicker
source§impl AsRef<NSObject> for NSColorPicker
impl AsRef<NSObject> for NSColorPicker
source§impl Borrow<AnyObject> for NSColorPicker
impl Borrow<AnyObject> for NSColorPicker
source§impl Borrow<NSObject> for NSColorPicker
impl Borrow<NSObject> for NSColorPicker
source§impl BorrowMut<AnyObject> for NSColorPicker
impl BorrowMut<AnyObject> for NSColorPicker
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for NSColorPicker
impl BorrowMut<NSObject> for NSColorPicker
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for NSColorPicker
impl ClassType for NSColorPicker
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "NSColorPicker"
const NAME: &'static str = "NSColorPicker"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for NSColorPicker
impl Debug for NSColorPicker
source§impl Deref for NSColorPicker
impl Deref for NSColorPicker
source§impl DerefMut for NSColorPicker
impl DerefMut for NSColorPicker
source§impl Hash for NSColorPicker
impl Hash for NSColorPicker
source§impl NSColorPickingDefault for NSColorPicker
Available on crate feature NSColorPicking
only.
impl NSColorPickingDefault for NSColorPicker
Available on crate feature
NSColorPicking
only.source§unsafe fn initWithPickerMask_colorPanel(
this: Allocated<Self>,
mask: NSUInteger,
owning_color_panel: &NSColorPanel
) -> Option<Id<Self>>
unsafe fn initWithPickerMask_colorPanel( this: Allocated<Self>, mask: NSUInteger, owning_color_panel: &NSColorPanel ) -> Option<Id<Self>>
Available on crate features
NSColorPanel
and NSPanel
and NSResponder
and NSWindow
only.source§unsafe fn provideNewButtonImage(&self) -> Id<NSImage>
unsafe fn provideNewButtonImage(&self) -> Id<NSImage>
Available on crate feature
NSImage
only.source§unsafe fn insertNewButtonImage_in(
&self,
new_button_image: &NSImage,
button_cell: &NSButtonCell
)
unsafe fn insertNewButtonImage_in( &self, new_button_image: &NSImage, button_cell: &NSButtonCell )
Available on crate features
NSActionCell
and NSButtonCell
and NSCell
and NSImage
only.unsafe fn viewSizeChanged(&self, sender: Option<&AnyObject>)
unsafe fn alphaControlAddedOrRemoved(&self, sender: Option<&AnyObject>)
source§unsafe fn attachColorList(&self, color_list: &NSColorList)
unsafe fn attachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.source§unsafe fn detachColorList(&self, color_list: &NSColorList)
unsafe fn detachColorList(&self, color_list: &NSColorList)
Available on crate feature
NSColorList
only.source§unsafe fn setMode(&self, mode: NSColorPanelMode)
unsafe fn setMode(&self, mode: NSColorPanelMode)
Available on crate feature
NSColorPanel
only.unsafe fn minContentSize(&self) -> NSSize
source§impl NSObjectProtocol for NSColorPicker
impl NSObjectProtocol for NSColorPicker
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Id<NSObject>
fn debugDescription(&self) -> Id<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for NSColorPicker
impl PartialEq for NSColorPicker
source§fn eq(&self, other: &NSColorPicker) -> bool
fn eq(&self, other: &NSColorPicker) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for NSColorPicker
impl RefEncode for NSColorPicker
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for NSColorPicker
impl Message for NSColorPicker
impl StructuralPartialEq for NSColorPicker
Auto Trait Implementations§
impl !Freeze for NSColorPicker
impl !RefUnwindSafe for NSColorPicker
impl !Send for NSColorPicker
impl !Sync for NSColorPicker
impl !Unpin for NSColorPicker
impl !UnwindSafe for NSColorPicker
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more