Struct objc2_app_kit::NSMenuItem

source ·
#[repr(C)]
pub struct NSMenuItem { /* private fields */ }
Available on crate feature NSMenuItem only.

Implementations§

source§

impl NSMenuItem

source

pub unsafe fn usesUserKeyEquivalents(mtm: MainThreadMarker) -> bool

source

pub unsafe fn setUsesUserKeyEquivalents( uses_user_key_equivalents: bool, mtm: MainThreadMarker )

source

pub fn separatorItem(mtm: MainThreadMarker) -> Retained<NSMenuItem>

source

pub unsafe fn sectionHeaderWithTitle( title: &NSString, mtm: MainThreadMarker ) -> Retained<Self>

source

pub unsafe fn initWithTitle_action_keyEquivalent( this: Allocated<Self>, string: &NSString, selector: Option<Sel>, char_code: &NSString ) -> Retained<Self>

source

pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Retained<Self>

source

pub unsafe fn menu(&self) -> Option<Retained<NSMenu>>

Available on crate feature NSMenu only.
source

pub unsafe fn setMenu(&self, menu: Option<&NSMenu>)

Available on crate feature NSMenu only.
source

pub unsafe fn hasSubmenu(&self) -> bool

source

pub unsafe fn submenu(&self) -> Option<Retained<NSMenu>>

Available on crate feature NSMenu only.
source

pub fn setSubmenu(&self, submenu: Option<&NSMenu>)

Available on crate feature NSMenu only.
source

pub unsafe fn parentItem(&self) -> Option<Retained<NSMenuItem>>

source

pub unsafe fn title(&self) -> Retained<NSString>

source

pub unsafe fn setTitle(&self, title: &NSString)

source

pub unsafe fn attributedTitle(&self) -> Option<Retained<NSAttributedString>>

source

pub unsafe fn setAttributedTitle( &self, attributed_title: Option<&NSAttributedString> )

source

pub unsafe fn isSeparatorItem(&self) -> bool

source

pub unsafe fn isSectionHeader(&self) -> bool

source

pub unsafe fn keyEquivalent(&self) -> Retained<NSString>

source

pub unsafe fn setKeyEquivalent(&self, key_equivalent: &NSString)

source

pub unsafe fn keyEquivalentModifierMask(&self) -> NSEventModifierFlags

Available on crate feature NSEvent only.
source

pub fn setKeyEquivalentModifierMask( &self, key_equivalent_modifier_mask: NSEventModifierFlags )

Available on crate feature NSEvent only.
source

pub unsafe fn userKeyEquivalent(&self) -> Retained<NSString>

source

pub unsafe fn allowsKeyEquivalentWhenHidden(&self) -> bool

source

pub unsafe fn setAllowsKeyEquivalentWhenHidden( &self, allows_key_equivalent_when_hidden: bool )

source

pub unsafe fn allowsAutomaticKeyEquivalentLocalization(&self) -> bool

source

pub unsafe fn setAllowsAutomaticKeyEquivalentLocalization( &self, allows_automatic_key_equivalent_localization: bool )

source

pub unsafe fn allowsAutomaticKeyEquivalentMirroring(&self) -> bool

source

pub unsafe fn setAllowsAutomaticKeyEquivalentMirroring( &self, allows_automatic_key_equivalent_mirroring: bool )

source

pub unsafe fn image(&self) -> Option<Retained<NSImage>>

Available on crate feature NSImage only.
source

pub unsafe fn setImage(&self, image: Option<&NSImage>)

Available on crate feature NSImage only.
source

pub unsafe fn state(&self) -> NSControlStateValue

Available on crate feature NSCell only.
source

pub unsafe fn setState(&self, state: NSControlStateValue)

Available on crate feature NSCell only.
source

pub unsafe fn onStateImage(&self) -> Option<Retained<NSImage>>

Available on crate feature NSImage only.
source

pub unsafe fn setOnStateImage(&self, on_state_image: Option<&NSImage>)

Available on crate feature NSImage only.
source

pub unsafe fn offStateImage(&self) -> Option<Retained<NSImage>>

Available on crate feature NSImage only.
source

pub unsafe fn setOffStateImage(&self, off_state_image: Option<&NSImage>)

Available on crate feature NSImage only.
source

pub unsafe fn mixedStateImage(&self) -> Option<Retained<NSImage>>

Available on crate feature NSImage only.
source

pub unsafe fn setMixedStateImage(&self, mixed_state_image: Option<&NSImage>)

Available on crate feature NSImage only.
source

pub unsafe fn isEnabled(&self) -> bool

source

pub unsafe fn setEnabled(&self, enabled: bool)

source

pub unsafe fn isAlternate(&self) -> bool

source

pub unsafe fn setAlternate(&self, alternate: bool)

source

pub unsafe fn indentationLevel(&self) -> NSInteger

source

pub unsafe fn setIndentationLevel(&self, indentation_level: NSInteger)

source

pub unsafe fn target(&self) -> Option<Retained<AnyObject>>

source

pub unsafe fn setTarget(&self, target: Option<&AnyObject>)

source

pub unsafe fn action(&self) -> Option<Sel>

source

pub unsafe fn setAction(&self, action: Option<Sel>)

source

pub unsafe fn tag(&self) -> NSInteger

source

pub unsafe fn setTag(&self, tag: NSInteger)

source

pub unsafe fn representedObject(&self) -> Option<Retained<AnyObject>>

source

pub unsafe fn setRepresentedObject( &self, represented_object: Option<&AnyObject> )

source

pub unsafe fn view(&self) -> Option<Retained<NSView>>

Available on crate features NSResponder and NSView only.
source

pub unsafe fn setView(&self, view: Option<&NSView>)

Available on crate features NSResponder and NSView only.
source

pub unsafe fn isHighlighted(&self) -> bool

source

pub unsafe fn isHidden(&self) -> bool

source

pub unsafe fn setHidden(&self, hidden: bool)

source

pub unsafe fn isHiddenOrHasHiddenAncestor(&self) -> bool

source

pub unsafe fn toolTip(&self) -> Option<Retained<NSString>>

source

pub unsafe fn setToolTip(&self, tool_tip: Option<&NSString>)

source

pub unsafe fn badge(&self) -> Option<Retained<NSMenuItemBadge>>

Available on crate feature NSMenuItemBadge only.
source

pub unsafe fn setBadge(&self, badge: Option<&NSMenuItemBadge>)

Available on crate feature NSMenuItemBadge only.
source§

impl NSMenuItem

Methods declared on superclass NSObject

source

pub fn init(this: Allocated<Self>) -> Retained<Self>

source

pub fn new(mtm: MainThreadMarker) -> Retained<Self>

source§

impl NSMenuItem

NSDeprecated

source

pub unsafe fn setMnemonicLocation(&self, location: NSUInteger)

👎Deprecated
source

pub unsafe fn mnemonicLocation(&self) -> NSUInteger

👎Deprecated
source

pub unsafe fn mnemonic(&self) -> Option<Retained<NSString>>

👎Deprecated
source

pub unsafe fn setTitleWithMnemonic(&self, string_with_ampersand: &NSString)

👎Deprecated

Methods from Deref<Target = NSObject>§

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesn’t recognize.

See Apple’s documentation for details.

Methods from Deref<Target = AnyObject>§

source

pub fn class(&self) -> &'static AnyClass

Available on crate feature 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());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load instead.
Available on crate feature 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.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

👎Deprecated: this is difficult to use correctly, use Ivar::load_mut instead.
Available on crate feature 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 NSMenuItem

source§

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSMenuItem> for NSMenuItem

source§

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsMut<NSObject> for NSMenuItem

source§

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<AnyObject> for NSMenuItem

source§

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSMenuItem> for NSMenuItem

source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<NSObject> for NSMenuItem

source§

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<AnyObject> for NSMenuItem

source§

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
source§

impl Borrow<NSObject> for NSMenuItem

source§

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
source§

impl BorrowMut<AnyObject> for NSMenuItem

source§

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
source§

impl BorrowMut<NSObject> for NSMenuItem

source§

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
source§

impl ClassType for NSMenuItem

§

type Super = NSObject

The superclass of this class. Read more
§

type Mutability = MainThreadOnly

Whether the type is mutable or immutable. Read more
source§

const NAME: &'static str = "NSMenuItem"

The name of the Objective-C class that this type represents. Read more
source§

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
source§

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
source§

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
source§

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
source§

impl Debug for NSMenuItem

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for NSMenuItem

§

type Target = NSObject

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for NSMenuItem

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl Hash for NSMenuItem

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl NSAccessibility for NSMenuItem

Available on crate feature NSAccessibilityProtocols only.
source§

unsafe fn isAccessibilityElement(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityElement(&self, accessibility_element: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityFrame(&self) -> NSRect
where Self: Sized + Message,

source§

unsafe fn setAccessibilityFrame(&self, accessibility_frame: NSRect)
where Self: Sized + Message,

source§

unsafe fn isAccessibilityFocused(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityFocused(&self, accessibility_focused: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityActivationPoint(&self) -> NSPoint
where Self: Sized + Message,

source§

unsafe fn setAccessibilityActivationPoint( &self, accessibility_activation_point: NSPoint )
where Self: Sized + Message,

source§

unsafe fn accessibilityTopLevelUIElement(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityURL(&self) -> Option<Retained<NSURL>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityURL(&self, accessibility_url: Option<&NSURL>)
where Self: Sized + Message,

source§

unsafe fn accessibilityValue(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

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

source§

unsafe fn setAccessibilityValueDescription( &self, accessibility_value_description: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityVisibleChildren(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityVisibleChildren( &self, accessibility_visible_children: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySubrole( &self ) -> Option<Retained<NSAccessibilitySubrole>>
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilitySubrole( &self, accessibility_subrole: Option<&NSAccessibilitySubrole> )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

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

source§

unsafe fn setAccessibilityTitle(&self, accessibility_title: Option<&NSString>)
where Self: Sized + Message,

source§

unsafe fn accessibilityTitleUIElement(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityNextContents(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityNextContents( &self, accessibility_next_contents: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityOrientation(&self) -> NSAccessibilityOrientation
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityOrientation( &self, accessibility_orientation: NSAccessibilityOrientation )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn accessibilityOverflowButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityParent(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

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

source§

unsafe fn setAccessibilityPlaceholderValue( &self, accessibility_placeholder_value: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityPreviousContents(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityPreviousContents( &self, accessibility_previous_contents: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityRole(&self) -> Option<Retained<NSAccessibilityRole>>
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityRole( &self, accessibility_role: Option<&NSAccessibilityRole> )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

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

source§

unsafe fn setAccessibilityRoleDescription( &self, accessibility_role_description: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySearchButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilitySearchMenu(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilitySelected(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelected(&self, accessibility_selected: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedChildren(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedChildren( &self, accessibility_selected_children: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityServesAsTitleForUIElements( &self ) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityServesAsTitleForUIElements( &self, accessibility_serves_as_title_for_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityShownMenu(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMinValue(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMaxValue(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityLinkedUIElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityLinkedUIElements( &self, accessibility_linked_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityWindow(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

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

source§

unsafe fn setAccessibilityIdentifier( &self, accessibility_identifier: Option<&NSString> )
where Self: Sized + Message,

source§

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

source§

unsafe fn setAccessibilityHelp(&self, accessibility_help: Option<&NSString>)
where Self: Sized + Message,

source§

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

source§

unsafe fn setAccessibilityFilename( &self, accessibility_filename: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn isAccessibilityExpanded(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityExpanded(&self, accessibility_expanded: bool)
where Self: Sized + Message,

source§

unsafe fn isAccessibilityEdited(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityEdited(&self, accessibility_edited: bool)
where Self: Sized + Message,

source§

unsafe fn isAccessibilityEnabled(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityEnabled(&self, accessibility_enabled: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityChildren(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityChildren( &self, accessibility_children: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityChildrenInNavigationOrder( &self ) -> Option<Retained<NSArray<ProtocolObject<dyn NSAccessibilityElementProtocol>>>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityChildrenInNavigationOrder( &self, accessibility_children_in_navigation_order: Option<&NSArray<ProtocolObject<dyn NSAccessibilityElementProtocol>>> )
where Self: Sized + Message,

source§

unsafe fn accessibilityClearButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityCancelButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityProtectedContent(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityProtectedContent( &self, accessibility_protected_content: bool )
where Self: Sized + Message,

source§

unsafe fn accessibilityContents(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityContents( &self, accessibility_contents: Option<&NSArray> )
where Self: Sized + Message,

source§

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

source§

unsafe fn setAccessibilityLabel(&self, accessibility_label: Option<&NSString>)
where Self: Sized + Message,

source§

unsafe fn isAccessibilityAlternateUIVisible(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityAlternateUIVisible( &self, accessibility_alternate_ui_visible: bool )
where Self: Sized + Message,

source§

unsafe fn accessibilitySharedFocusElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySharedFocusElements( &self, accessibility_shared_focus_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn isAccessibilityRequired(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityRequired(&self, accessibility_required: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityCustomRotors( &self ) -> Retained<NSArray<NSAccessibilityCustomRotor>>
where Self: Sized + Message,

Available on crate feature NSAccessibilityCustomRotor only.
source§

unsafe fn setAccessibilityCustomRotors( &self, accessibility_custom_rotors: &NSArray<NSAccessibilityCustomRotor> )
where Self: Sized + Message,

Available on crate feature NSAccessibilityCustomRotor only.
source§

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

source§

unsafe fn setAccessibilityUserInputLabels( &self, accessibility_user_input_labels: Option<&NSArray<NSString>> )
where Self: Sized + Message,

source§

unsafe fn accessibilityAttributedUserInputLabels( &self ) -> Option<Retained<NSArray<NSAttributedString>>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityAttributedUserInputLabels( &self, accessibility_attributed_user_input_labels: Option<&NSArray<NSAttributedString>> )
where Self: Sized + Message,

source§

unsafe fn accessibilityApplicationFocusedUIElement( &self ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMainWindow(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityHidden(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityHidden(&self, accessibility_hidden: bool)
where Self: Sized + Message,

source§

unsafe fn isAccessibilityFrontmost(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityFrontmost(&self, accessibility_frontmost: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityFocusedWindow(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityWindows(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityWindows( &self, accessibility_windows: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityExtrasMenuBar(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMenuBar(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityColumnTitles(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityColumnTitles( &self, accessibility_column_titles: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn isAccessibilityOrderedByRow(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityOrderedByRow( &self, accessibility_ordered_by_row: bool )
where Self: Sized + Message,

source§

unsafe fn accessibilityHorizontalUnits(&self) -> NSAccessibilityUnits
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityHorizontalUnits( &self, accessibility_horizontal_units: NSAccessibilityUnits )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn accessibilityVerticalUnits(&self) -> NSAccessibilityUnits
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityVerticalUnits( &self, accessibility_vertical_units: NSAccessibilityUnits )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

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

source§

unsafe fn setAccessibilityHorizontalUnitDescription( &self, accessibility_horizontal_unit_description: Option<&NSString> )
where Self: Sized + Message,

source§

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

source§

unsafe fn setAccessibilityVerticalUnitDescription( &self, accessibility_vertical_unit_description: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityLayoutPointForScreenPoint( &self, point: NSPoint ) -> NSPoint
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityScreenPointForLayoutPoint( &self, point: NSPoint ) -> NSPoint
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityHandles(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityHandles( &self, accessibility_handles: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityWarningValue(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityCriticalValue(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityDisclosed(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityDisclosed(&self, accessibility_disclosed: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityDisclosedByRow(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityDisclosedRows(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityDisclosureLevel(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityDisclosureLevel( &self, accessibility_disclosure_level: NSInteger )
where Self: Sized + Message,

source§

unsafe fn accessibilityMarkerUIElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityMarkerUIElements( &self, accessibility_marker_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityMarkerValues(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMarkerGroupUIElement( &self ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityUnits(&self) -> NSAccessibilityUnits
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityUnits( &self, accessibility_units: NSAccessibilityUnits )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

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

source§

unsafe fn setAccessibilityUnitDescription( &self, accessibility_unit_description: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityRulerMarkerType(&self) -> NSAccessibilityRulerMarkerType
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilityRulerMarkerType( &self, accessibility_ruler_marker_type: NSAccessibilityRulerMarkerType )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

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

source§

unsafe fn setAccessibilityMarkerTypeDescription( &self, accessibility_marker_type_description: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityHorizontalScrollBar(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityVerticalScrollBar(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityAllowedValues( &self ) -> Option<Retained<NSArray<NSNumber>>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityAllowedValues( &self, accessibility_allowed_values: Option<&NSArray<NSNumber>> )
where Self: Sized + Message,

source§

unsafe fn accessibilityLabelUIElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityLabelUIElements( &self, accessibility_label_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityLabelValue(&self) -> c_float
where Self: Sized + Message,

source§

unsafe fn setAccessibilityLabelValue(&self, accessibility_label_value: c_float)
where Self: Sized + Message,

source§

unsafe fn accessibilitySplitters(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySplitters( &self, accessibility_splitters: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityDecrementButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityIncrementButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityTabs(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityTabs(&self, accessibility_tabs: Option<&NSArray>)
where Self: Sized + Message,

source§

unsafe fn accessibilityHeader(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityColumnCount(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityColumnCount( &self, accessibility_column_count: NSInteger )
where Self: Sized + Message,

source§

unsafe fn accessibilityRowCount(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityRowCount(&self, accessibility_row_count: NSInteger)
where Self: Sized + Message,

source§

unsafe fn accessibilityIndex(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityIndex(&self, accessibility_index: NSInteger)
where Self: Sized + Message,

source§

unsafe fn accessibilityColumns(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityColumns( &self, accessibility_columns: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityRows(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityRows(&self, accessibility_rows: Option<&NSArray>)
where Self: Sized + Message,

source§

unsafe fn accessibilityVisibleRows(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityVisibleRows( &self, accessibility_visible_rows: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedRows(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedRows( &self, accessibility_selected_rows: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityVisibleColumns(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityVisibleColumns( &self, accessibility_visible_columns: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedColumns(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedColumns( &self, accessibility_selected_columns: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySortDirection(&self) -> NSAccessibilitySortDirection
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn setAccessibilitySortDirection( &self, accessibility_sort_direction: NSAccessibilitySortDirection )
where Self: Sized + Message,

Available on crate feature NSAccessibilityConstants only.
source§

unsafe fn accessibilityRowHeaderUIElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityRowHeaderUIElements( &self, accessibility_row_header_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedCells(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedCells( &self, accessibility_selected_cells: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityVisibleCells(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityVisibleCells( &self, accessibility_visible_cells: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityColumnHeaderUIElements( &self ) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilityColumnHeaderUIElements( &self, accessibility_column_header_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityCellForColumn_row( &self, column: NSInteger, row: NSInteger ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

unsafe fn accessibilityRowIndexRange(&self) -> NSRange
where Self: Sized + Message,

source§

unsafe fn setAccessibilityRowIndexRange( &self, accessibility_row_index_range: NSRange )
where Self: Sized + Message,

source§

unsafe fn accessibilityColumnIndexRange(&self) -> NSRange
where Self: Sized + Message,

source§

unsafe fn setAccessibilityColumnIndexRange( &self, accessibility_column_index_range: NSRange )
where Self: Sized + Message,

source§

unsafe fn accessibilityInsertionPointLineNumber(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityInsertionPointLineNumber( &self, accessibility_insertion_point_line_number: NSInteger )
where Self: Sized + Message,

source§

unsafe fn accessibilitySharedCharacterRange(&self) -> NSRange
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySharedCharacterRange( &self, accessibility_shared_character_range: NSRange )
where Self: Sized + Message,

source§

unsafe fn accessibilitySharedTextUIElements(&self) -> Option<Retained<NSArray>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySharedTextUIElements( &self, accessibility_shared_text_ui_elements: Option<&NSArray> )
where Self: Sized + Message,

source§

unsafe fn accessibilityVisibleCharacterRange(&self) -> NSRange
where Self: Sized + Message,

source§

unsafe fn setAccessibilityVisibleCharacterRange( &self, accessibility_visible_character_range: NSRange )
where Self: Sized + Message,

source§

unsafe fn accessibilityNumberOfCharacters(&self) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn setAccessibilityNumberOfCharacters( &self, accessibility_number_of_characters: NSInteger )
where Self: Sized + Message,

source§

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

source§

unsafe fn setAccessibilitySelectedText( &self, accessibility_selected_text: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedTextRange(&self) -> NSRange
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedTextRange( &self, accessibility_selected_text_range: NSRange )
where Self: Sized + Message,

source§

unsafe fn accessibilitySelectedTextRanges( &self ) -> Option<Retained<NSArray<NSValue>>>
where Self: Sized + Message,

source§

unsafe fn setAccessibilitySelectedTextRanges( &self, accessibility_selected_text_ranges: Option<&NSArray<NSValue>> )
where Self: Sized + Message,

source§

unsafe fn accessibilityAttributedStringForRange( &self, range: NSRange ) -> Option<Retained<NSAttributedString>>
where Self: Sized + Message,

source§

unsafe fn accessibilityRangeForLine(&self, line: NSInteger) -> NSRange
where Self: Sized + Message,

source§

unsafe fn accessibilityStringForRange( &self, range: NSRange ) -> Option<Retained<NSString>>
where Self: Sized + Message,

source§

unsafe fn accessibilityRangeForPosition(&self, point: NSPoint) -> NSRange
where Self: Sized + Message,

source§

unsafe fn accessibilityRangeForIndex(&self, index: NSInteger) -> NSRange
where Self: Sized + Message,

source§

unsafe fn accessibilityFrameForRange(&self, range: NSRange) -> NSRect
where Self: Sized + Message,

source§

unsafe fn accessibilityRTFForRange( &self, range: NSRange ) -> Option<Retained<NSData>>
where Self: Sized + Message,

source§

unsafe fn accessibilityStyleRangeForIndex(&self, index: NSInteger) -> NSRange
where Self: Sized + Message,

source§

unsafe fn accessibilityLineForIndex(&self, index: NSInteger) -> NSInteger
where Self: Sized + Message,

source§

unsafe fn accessibilityToolbarButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityModal(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityModal(&self, accessibility_modal: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityProxy(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityMain(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityMain(&self, accessibility_main: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityFullScreenButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityGrowArea(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

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

source§

unsafe fn setAccessibilityDocument( &self, accessibility_document: Option<&NSString> )
where Self: Sized + Message,

source§

unsafe fn accessibilityDefaultButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityCloseButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityZoomButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn accessibilityMinimizeButton(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

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

source§

unsafe fn isAccessibilityMinimized(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn setAccessibilityMinimized(&self, accessibility_minimized: bool)
where Self: Sized + Message,

source§

unsafe fn accessibilityCustomActions( &self ) -> Option<Retained<NSArray<NSAccessibilityCustomAction>>>
where Self: Sized + Message,

Available on crate feature NSAccessibilityCustomAction only.
source§

unsafe fn setAccessibilityCustomActions( &self, accessibility_custom_actions: Option<&NSArray<NSAccessibilityCustomAction>> )
where Self: Sized + Message,

Available on crate feature NSAccessibilityCustomAction only.
source§

unsafe fn accessibilityPerformCancel(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformConfirm(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformDecrement(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformDelete(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformIncrement(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformPick(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformPress(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformRaise(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformShowAlternateUI(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformShowDefaultUI(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn accessibilityPerformShowMenu(&self) -> bool
where Self: Sized + Message,

source§

unsafe fn isAccessibilitySelectorAllowed(&self, selector: Sel) -> bool
where Self: Sized + Message,

source§

impl NSAccessibilityElementProtocol for NSMenuItem

Available on crate feature NSAccessibilityProtocols only.
source§

unsafe fn accessibilityFrame(&self) -> NSRect
where Self: Sized + Message,

source§

unsafe fn accessibilityParent(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

source§

unsafe fn isAccessibilityFocused(&self) -> bool
where Self: Sized + Message,

source§

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

source§

impl NSCoding for NSMenuItem

source§

unsafe fn encodeWithCoder(&self, coder: &NSCoder)
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
where Self: Sized + Message,

Available on crate feature NSCoder only.
source§

impl NSCopying for NSMenuItem

source§

fn copy(&self) -> Retained<Self::Immutable>

Returns a new instance that’s a copy of the receiver. Read more
source§

unsafe fn copyWithZone(&self, zone: *mut NSZone) -> Retained<Self::Immutable>

Available on crate feature NSZone only.
Returns a new instance that’s a copy of the receiver. Read more
source§

impl NSObjectProtocol for NSMenuItem

source§

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
source§

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
source§

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

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
where T: ClassType, Self: Sized + Message,

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
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
source§

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
source§

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
source§

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

A textual representation of the object. Read more
source§

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

A textual representation of the object to use when debugging. Read more
source§

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
source§

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
source§

impl NSUserInterfaceItemIdentification for NSMenuItem

Available on crate feature NSUserInterfaceItemIdentification only.
source§

impl NSValidatedUserInterfaceItem for NSMenuItem

Available on crate feature NSUserInterfaceValidation only.
source§

unsafe fn action(&self) -> Option<Sel>
where Self: Sized + Message,

source§

unsafe fn tag(&self) -> NSInteger
where Self: Sized + Message,

source§

impl PartialEq for NSMenuItem

source§

fn eq(&self, other: &NSMenuItem) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefEncode for NSMenuItem

source§

const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
source§

impl Eq for NSMenuItem

source§

impl Message for NSMenuItem

source§

impl StructuralPartialEq for NSMenuItem

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

§

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

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,

source§

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

source§

impl<T> IsMainThreadOnly for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsMainThreadOnly,

source§

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,