Struct NSTextField Copy item path Source #[repr(C)]
pub struct NSTextField {
pub ptr: Id <Object >,
}
Expand description Text the user can select or edit to send an action message to a target when the user presses the Return key.
The raw pointer to the Objective-C object.
Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text.
Initializes a single-line editable text field for user input using the system default font and standard visual appearance.
Initializes a text field for use as a multiline static label with selectable text that uses the system default font.
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 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 default action-message selector associated with the control.
Sets the default action-message selector associated with the control.
Read more Initializes a text field for use as a static label that uses the system default font, doesn’t wrap, and doesn’t have selectable text.
Initializes a single-line editable text field for user input using the system default font and standard visual appearance.
Initializes a text field for use as a multiline static label with selectable text that uses the system default font.
Initializes and returns a newly allocated NSView object with a specified frame rectangle.
Initializes a view using from data in the specified coder object.
Restores the view to an initial state so that it can be reused.
The view that is the parent of the current view.
The array of views embedded in the current view.
The view’s window object, if it is installed in a window.
The view’s closest opaque ancestor, which might be the view itself.
Returns a Boolean value that indicates whether the view is a subview of the specified view.
Returns the closest ancestor shared by the view and another specified view.
The menu item containing the view or any of its superviews in the view hierarchy.
Adds a view to the view’s subviews so it’s displayed above its siblings.
The view’s bounds rectangle, which expresses its location and size in its own coordinate system.
Sets the view’s bounds rectangle, which expresses its location and size in its own coordinate system.
Read more Returns a Boolean value indicating whether the view depends on the constraint-based layout system.
A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system.
Sets a Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system.
Read more A layout anchor representing the bottom edge of the view’s frame.
A layout anchor representing the horizontal center of the view’s frame.
A layout anchor representing the vertical center of the view’s frame.
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.