Struct NSStatusItem Copy item path Source #[repr(C)]
pub struct NSStatusItem {
pub ptr: Id <Object >,
}
Expand description An individual element displayed in the system menu bar.
The raw pointer to the Objective-C object.
A status item length that is equal to the status bar’s thickness.
A status item length that dynamically adjusts to the width of its contents.
Creates a new status item.
The status bar that displays the status item.
The set of allowed behaviors for the status item.
The button displayed in the status bar.
The pull-down menu displayed when the user clicks the status item.
A Boolean value indicating if the menu bar currently displays the status item.
The amount of space in the status bar that should be allocated to the status item.
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 The status bar that displays the status item.
The set of allowed behaviors for the status item.
The button displayed in the status bar.
The pull-down menu displayed when the user clicks the status item.
A Boolean value indicating if the menu bar currently displays the status item.
The amount of space in the status bar that should be allocated to the status item.
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.