Struct NSMenuItem Copy item path Source #[repr(C)]
pub struct NSMenuItem {
pub ptr: Id <Object >,
}
Expand description A command item in an app menu.
The raw pointer to the Objective-C object.
A Boolean value that indicates whether the menu item is enabled.
Sets whether the menu item is enabled.
A Boolean value that indicates whether the menu item is hidden.
Sets whether the menu item is hidden.
A Boolean value that indicates whether the menu item or any of its superitems is hidden.
Sets the menu item’s target.
The menu item’s action-method selector.
Sets the menu item’s action-method selector.
Sets the menu item’s title.
The submenu of the menu item.
Sets the submenu of the menu item.
A Boolean value that indicates whether the menu item has a submenu.
The menu item whose submenu contains the receiver.
Returns the class of self.
Returns a reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Returns a mutable reference to the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Sets the value of the ivar of self with the given name.
Panics if self has no ivar with the given name.
Unsafe because the caller must ensure that the ivar is actually
of type T
.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Returns the “default value” for a type.
Read more The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Formats the value using the given formatter.
Read more Returns the Objective-C type encoding for Self.
Returns
Self
representation of the object.
Read more A Boolean value that indicates whether the menu item is enabled.
Sets whether the menu item is enabled.
A Boolean value that indicates whether the menu item is hidden.
Sets whether the menu item is hidden.
A Boolean value that indicates whether the menu item or any of its superitems is hidden.
The menu item’s target.
Sets the menu item’s target.
The menu item’s action-method selector.
Sets the menu item’s action-method selector.
The menu item’s title.
Sets the menu item’s title.
The submenu of the menu item.
Sets the submenu of the menu item.
A Boolean value that indicates whether the menu item has a submenu.
The menu item whose submenu contains the receiver.
Returns the class object for the receiver’s class.
Returns the receiver.
Allocates a new instance of the receiving class, sends it an init message, and returns the initialized object.
Returns a new instance of the receiving class.
Initializes the class before it receives its first message.
Returns the class object for the receiver’s superclass.
Returns a Boolean value that indicates whether the receiver and a given object are equal.
Returns an integer that can be used as a table address in a hash table structure.
Returns a Boolean value that indicates whether the receiver is an instance of given class or an instance of any class that inherits from that class.
Returns a Boolean value that indicates whether the receiver is an instance of a given class.
Returns a Boolean value that indicates whether the receiver implements or inherits a method that can respond to a specified message.
Returns a Boolean value that indicates whether the receiver conforms to a given protocol.
A textual representation of the receiver.
A textual representation of the receiver to use with a debugger.
Sends a specified message to the receiver and returns the result of the message.
Sends a message to the receiver with an object as the argument.
Returns a Boolean value that indicates whether the receiver does not descend from NSObject.
Returns id
representation of the object.
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dest
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
🔬 This is a nightly-only experimental API. (arbitrary_self_types
)
The target type on which the method may be called.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.