#[repr(C)]pub struct UIResponder { /* private fields */ }
UIResponder
only.Expand description
Implementations§
Source§impl UIResponder
impl UIResponder
pub unsafe fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub unsafe fn canBecomeFirstResponder(&self) -> bool
pub unsafe fn becomeFirstResponder(&self) -> bool
pub unsafe fn canResignFirstResponder(&self) -> bool
pub unsafe fn resignFirstResponder(&self) -> bool
pub unsafe fn isFirstResponder(&self) -> bool
pub unsafe fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent
and UITouch
only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch
only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent
only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent
only.pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> bool
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
pub unsafe fn buildMenuWithBuilder( &self, builder: &ProtocolObject<dyn UIMenuBuilder>, )
UIMenuBuilder
only.pub unsafe fn validateCommand(&self, command: &UICommand)
UICommand
and UIMenuElement
only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self, ) -> UIEditingInteractionConfiguration
Source§impl UIResponder
Methods declared on superclass NSObject
.
impl UIResponder
Methods declared on superclass NSObject
.
Source§impl UIResponder
UIResponderKeyCommands.
impl UIResponder
UIResponderKeyCommands.
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand
and UIKeyCommand
and UIMenuElement
only.Source§impl UIResponder
UIResponderInputViewAdditions.
impl UIResponder
UIResponderInputViewAdditions.
pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
UIView
only.pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
UIView
only.Sourcepub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput
only.
pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
UITextInput
only.This method is for clients that wish to put buttons on the Shortcuts Bar, shown on top of the keyboard. You may modify the returned inputAssistantItem to add to or replace the existing items on the bar. Modifications made to the returned UITextInputAssistantItem are reflected automatically. This method should not be overridden. Goes up the responder chain.
pub unsafe fn inputViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController
and UIViewController
only.pub unsafe fn inputAccessoryViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController
and UIViewController
only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput
only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn clearTextInputContextIdentifier( identifier: &NSString, mtm: MainThreadMarker, )
pub unsafe fn reloadInputViews(&self)
Source§impl UIResponder
ActivityContinuation.
impl UIResponder
ActivityContinuation.
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Sourcepub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity
.
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
impl UIResponder
UIPasteConfigurationSupporting.
Source§impl UIResponder
UICaptureTextFromCameraSupporting.
impl UIResponder
UICaptureTextFromCameraSupporting.
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
Source§impl UIResponder
UIActivityItemsConfiguration.
impl UIResponder
UIActivityItemsConfiguration.
pub unsafe fn activityItemsConfiguration( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.Sourcepub unsafe fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.
pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>, )
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.Setter for activityItemsConfiguration
.
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 UIIndirectScribbleInteraction
only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction
only.Dynamically find the class of this object.
§Panics
May panic if the object is invalid (which may be the case for objects
returned from unavailable init
/new
methods).
§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 UIIndirectScribbleInteraction
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.UIIndirectScribbleInteraction
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 fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
Available on crate feature UIIndirectScribbleInteraction
only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: DowncastTarget,
UIIndirectScribbleInteraction
only.Attempt to downcast the object to a class of type T
.
This is the reference-variant. Use Retained::downcast
if you want
to convert a retained object to another type.
§Mutable classes
Some classes have immutable and mutable variants, such as NSString
and NSMutableString
.
When some Objective-C API signature says it gives you an immutable class, it generally expects you to not mutate that, even though it may technically be mutable “under the hood”.
So using this method to convert a NSString
to a NSMutableString
,
while not unsound, is generally frowned upon unless you created the
string yourself, or the API explicitly documents the string to be
mutable.
See Apple’s documentation on mutability and on
isKindOfClass:
for more details.
§Generic classes
Objective-C generics are called “lightweight generics”, and that’s because they aren’t exposed in the runtime. This makes it impossible to safely downcast to generic collections, so this is disallowed by this method.
You can, however, safely downcast to generic collections where all the
type-parameters are AnyObject
.
§Panics
This works internally by calling isKindOfClass:
. That means that the
object must have the instance method of that name, and an exception
will be thrown (if CoreFoundation is linked) or the process will abort
if that is not the case. In the vast majority of cases, you don’t need
to worry about this, since both root objects NSObject
and
NSProxy
implement this method.
§Examples
Cast an NSString
back and forth from NSObject
.
use objc2::rc::Retained;
use objc2_foundation::{NSObject, NSString};
let obj: Retained<NSObject> = NSString::new().into_super();
let string = obj.downcast_ref::<NSString>().unwrap();
// Or with `downcast`, if we do not need the object afterwards
let string = obj.downcast::<NSString>().unwrap();
Try (and fail) to cast an NSObject
to an NSString
.
use objc2_foundation::{NSObject, NSString};
let obj = NSObject::new();
assert!(obj.downcast_ref::<NSString>().is_none());
Try to cast to an array of strings.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
// This is invalid and doesn't type check.
let arr = arr.downcast_ref::<NSArray<NSString>>();
This fails to compile, since it would require enumerating over the array to ensure that each element is of the desired type, which is a performance pitfall.
Downcast when processing each element instead.
use objc2_foundation::{NSArray, NSObject, NSString};
let arr = NSArray::from_retained_slice(&[NSObject::new()]);
for elem in arr {
if let Some(data) = elem.downcast_ref::<NSString>() {
// handle `data`
}
}
Trait Implementations§
Source§impl AsRef<AnyObject> for UIResponder
impl AsRef<AnyObject> for UIResponder
Source§impl AsRef<NSObject> for UIResponder
impl AsRef<NSObject> for UIResponder
Source§impl AsRef<UIResponder> for UIAccessibilityElement
Available on crate feature UIAccessibilityElement
only.
impl AsRef<UIResponder> for UIAccessibilityElement
UIAccessibilityElement
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIActionSheet
Available on crate features UIView
and UIActionSheet
only.
impl AsRef<UIResponder> for UIActionSheet
UIView
and UIActionSheet
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIActivityIndicatorView
Available on crate features UIView
and UIActivityIndicatorView
only.
impl AsRef<UIResponder> for UIActivityIndicatorView
UIView
and UIActivityIndicatorView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIActivityViewController
Available on crate features UIViewController
and UIActivityViewController
only.
impl AsRef<UIResponder> for UIActivityViewController
UIViewController
and UIActivityViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIAlertController
Available on crate features UIViewController
and UIAlertController
only.
impl AsRef<UIResponder> for UIAlertController
UIViewController
and UIAlertController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIAlertView
Available on crate features UIView
and UIAlertView
only.
impl AsRef<UIResponder> for UIAlertView
UIView
and UIAlertView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIApplication
Available on crate feature UIApplication
only.
impl AsRef<UIResponder> for UIApplication
UIApplication
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIButton
Available on crate features UIControl
and UIView
and UIButton
only.
impl AsRef<UIResponder> for UIButton
UIControl
and UIView
and UIButton
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICalendarView
Available on crate features UIView
and UICalendarView
only.
impl AsRef<UIResponder> for UICalendarView
UIView
and UICalendarView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICloudSharingController
Available on crate features UIViewController
and UICloudSharingController
only.
impl AsRef<UIResponder> for UICloudSharingController
UIViewController
and UICloudSharingController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICollectionReusableView
Available on crate features UIView
and UICollectionViewCell
only.
impl AsRef<UIResponder> for UICollectionReusableView
UIView
and UICollectionViewCell
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICollectionView
Available on crate features UIScrollView
and UIView
and UICollectionView
only.
impl AsRef<UIResponder> for UICollectionView
UIScrollView
and UIView
and UICollectionView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICollectionViewCell
Available on crate features UIView
and UICollectionViewCell
only.
impl AsRef<UIResponder> for UICollectionViewCell
UIView
and UICollectionViewCell
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICollectionViewController
Available on crate features UIViewController
and UICollectionViewController
only.
impl AsRef<UIResponder> for UICollectionViewController
UIViewController
and UICollectionViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UICollectionViewListCell
Available on crate features UICollectionViewCell
and UIView
and UICollectionViewListCell
only.
impl AsRef<UIResponder> for UICollectionViewListCell
UICollectionViewCell
and UIView
and UICollectionViewListCell
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIColorPickerViewController
Available on crate features UIViewController
and UIColorPickerViewController
only.
impl AsRef<UIResponder> for UIColorPickerViewController
UIViewController
and UIColorPickerViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIColorWell
Available on crate features UIControl
and UIView
and UIColorWell
only.
impl AsRef<UIResponder> for UIColorWell
UIControl
and UIView
and UIColorWell
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIControl
Available on crate features UIView
and UIControl
only.
impl AsRef<UIResponder> for UIControl
UIView
and UIControl
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDatePicker
Available on crate features UIControl
and UIView
and UIDatePicker
only.
impl AsRef<UIResponder> for UIDatePicker
UIControl
and UIView
and UIDatePicker
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDocumentBrowserViewController
Available on crate features UIViewController
and UIDocumentBrowserViewController
only.
impl AsRef<UIResponder> for UIDocumentBrowserViewController
UIViewController
and UIDocumentBrowserViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDocumentMenuViewController
Available on crate features UIViewController
and UIDocumentMenuViewController
only.
impl AsRef<UIResponder> for UIDocumentMenuViewController
UIViewController
and UIDocumentMenuViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDocumentPickerExtensionViewController
Available on crate features UIViewController
and UIDocumentPickerExtensionViewController
only.
impl AsRef<UIResponder> for UIDocumentPickerExtensionViewController
UIViewController
and UIDocumentPickerExtensionViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDocumentPickerViewController
Available on crate features UIViewController
and UIDocumentPickerViewController
only.
impl AsRef<UIResponder> for UIDocumentPickerViewController
UIViewController
and UIDocumentPickerViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIDocumentViewController
Available on crate features UIViewController
and UIDocumentViewController
only.
impl AsRef<UIResponder> for UIDocumentViewController
UIViewController
and UIDocumentViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIEventAttributionView
Available on crate features UIView
and UIEventAttributionView
only.
impl AsRef<UIResponder> for UIEventAttributionView
UIView
and UIEventAttributionView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIFontPickerViewController
Available on crate features UIViewController
and UIFontPickerViewController
only.
impl AsRef<UIResponder> for UIFontPickerViewController
UIViewController
and UIFontPickerViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIImagePickerController
Available on crate features UINavigationController
and UIViewController
and UIImagePickerController
only.
impl AsRef<UIResponder> for UIImagePickerController
UINavigationController
and UIViewController
and UIImagePickerController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIImageView
Available on crate features UIView
and UIImageView
only.
impl AsRef<UIResponder> for UIImageView
UIView
and UIImageView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIInputView
Available on crate features UIView
and UIInputView
only.
impl AsRef<UIResponder> for UIInputView
UIView
and UIInputView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIInputViewController
Available on crate features UIViewController
and UIInputViewController
only.
impl AsRef<UIResponder> for UIInputViewController
UIViewController
and UIInputViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UILabel
Available on crate features UIView
and UILabel
only.
impl AsRef<UIResponder> for UILabel
UIView
and UILabel
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIListContentView
Available on crate features UIView
and UIListContentConfiguration
only.
impl AsRef<UIResponder> for UIListContentView
UIView
and UIListContentConfiguration
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIPageControl
Available on crate features UIControl
and UIView
and UIPageControl
only.
impl AsRef<UIResponder> for UIPageControl
UIControl
and UIView
and UIPageControl
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIPageViewController
Available on crate features UIViewController
and UIPageViewController
only.
impl AsRef<UIResponder> for UIPageViewController
UIViewController
and UIPageViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIPasteControl
Available on crate features UIControl
and UIView
and UIPasteControl
only.
impl AsRef<UIResponder> for UIPasteControl
UIControl
and UIView
and UIPasteControl
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIPickerView
Available on crate features UIView
and UIPickerView
only.
impl AsRef<UIResponder> for UIPickerView
UIView
and UIPickerView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIPopoverBackgroundView
Available on crate features UIView
and UIPopoverBackgroundView
only.
impl AsRef<UIResponder> for UIPopoverBackgroundView
UIView
and UIPopoverBackgroundView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIProgressView
Available on crate features UIView
and UIProgressView
only.
impl AsRef<UIResponder> for UIProgressView
UIView
and UIProgressView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIReferenceLibraryViewController
Available on crate features UIViewController
and UIReferenceLibraryViewController
only.
impl AsRef<UIResponder> for UIReferenceLibraryViewController
UIViewController
and UIReferenceLibraryViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIRefreshControl
Available on crate features UIControl
and UIView
and UIRefreshControl
only.
impl AsRef<UIResponder> for UIRefreshControl
UIControl
and UIView
and UIRefreshControl
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIResponder
impl AsRef<UIResponder> for UIResponder
Source§impl AsRef<UIResponder> for UIScene
Available on crate feature UIScene
only.
impl AsRef<UIResponder> for UIScene
UIScene
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIScrollView
Available on crate features UIView
and UIScrollView
only.
impl AsRef<UIResponder> for UIScrollView
UIView
and UIScrollView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISearchBar
Available on crate features UIView
and UISearchBar
only.
impl AsRef<UIResponder> for UISearchBar
UIView
and UISearchBar
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISearchContainerViewController
Available on crate features UIViewController
and UISearchContainerViewController
only.
impl AsRef<UIResponder> for UISearchContainerViewController
UIViewController
and UISearchContainerViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISearchController
Available on crate features UIViewController
and UISearchController
only.
impl AsRef<UIResponder> for UISearchController
UIViewController
and UISearchController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISearchTextField
Available on crate features UIControl
and UITextField
and UIView
and UISearchTextField
only.
impl AsRef<UIResponder> for UISearchTextField
UIControl
and UITextField
and UIView
and UISearchTextField
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISegmentedControl
Available on crate features UIControl
and UIView
and UISegmentedControl
only.
impl AsRef<UIResponder> for UISegmentedControl
UIControl
and UIView
and UISegmentedControl
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISlider
Available on crate features UIControl
and UIView
and UISlider
only.
impl AsRef<UIResponder> for UISlider
UIControl
and UIView
and UISlider
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISplitViewController
Available on crate features UIViewController
and UISplitViewController
only.
impl AsRef<UIResponder> for UISplitViewController
UIViewController
and UISplitViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIStackView
Available on crate features UIView
and UIStackView
only.
impl AsRef<UIResponder> for UIStackView
UIView
and UIStackView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIStandardTextCursorView
Available on crate features UIView
and UIStandardTextCursorView
only.
impl AsRef<UIResponder> for UIStandardTextCursorView
UIView
and UIStandardTextCursorView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIStepper
Available on crate features UIControl
and UIView
and UIStepper
only.
impl AsRef<UIResponder> for UIStepper
UIControl
and UIView
and UIStepper
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UISwitch
Available on crate features UIControl
and UIView
and UISwitch
only.
impl AsRef<UIResponder> for UISwitch
UIControl
and UIView
and UISwitch
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITabBar
Available on crate features UIView
and UITabBar
only.
impl AsRef<UIResponder> for UITabBar
UIView
and UITabBar
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITabBarController
Available on crate features UIViewController
and UITabBarController
only.
impl AsRef<UIResponder> for UITabBarController
UIViewController
and UITabBarController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITableView
Available on crate features UIScrollView
and UIView
and UITableView
only.
impl AsRef<UIResponder> for UITableView
UIScrollView
and UIView
and UITableView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITableViewCell
Available on crate features UIView
and UITableViewCell
only.
impl AsRef<UIResponder> for UITableViewCell
UIView
and UITableViewCell
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITableViewController
Available on crate features UIViewController
and UITableViewController
only.
impl AsRef<UIResponder> for UITableViewController
UIViewController
and UITableViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITextField
Available on crate features UIControl
and UIView
and UITextField
only.
impl AsRef<UIResponder> for UITextField
UIControl
and UIView
and UITextField
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITextFormattingViewController
Available on crate features UIViewController
and UITextFormattingViewController
only.
impl AsRef<UIResponder> for UITextFormattingViewController
UIViewController
and UITextFormattingViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UITextView
Available on crate features UIScrollView
and UIView
and UITextView
only.
impl AsRef<UIResponder> for UITextView
UIScrollView
and UIView
and UITextView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIToolbar
Available on crate features UIView
and UIToolbar
only.
impl AsRef<UIResponder> for UIToolbar
UIView
and UIToolbar
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIVideoEditorController
Available on crate features UINavigationController
and UIViewController
and UIVideoEditorController
only.
impl AsRef<UIResponder> for UIVideoEditorController
UINavigationController
and UIViewController
and UIVideoEditorController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIView
Available on crate feature UIView
only.
impl AsRef<UIResponder> for UIView
UIView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIViewController
Available on crate feature UIViewController
only.
impl AsRef<UIResponder> for UIViewController
UIViewController
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIVisualEffectView
Available on crate features UIView
and UIVisualEffectView
only.
impl AsRef<UIResponder> for UIVisualEffectView
UIView
and UIVisualEffectView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIWebView
Available on crate features UIView
and UIWebView
only.
impl AsRef<UIResponder> for UIWebView
UIView
and UIWebView
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIWindow
Available on crate features UIView
and UIWindow
only.
impl AsRef<UIResponder> for UIWindow
UIView
and UIWindow
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIResponder> for UIWindowScene
Available on crate features UIScene
and UIWindowScene
only.
impl AsRef<UIResponder> for UIWindowScene
UIScene
and UIWindowScene
only.Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl Borrow<AnyObject> for UIResponder
impl Borrow<AnyObject> for UIResponder
Source§impl Borrow<NSObject> for UIResponder
impl Borrow<NSObject> for UIResponder
Source§impl Borrow<UIResponder> for UIAccessibilityElement
Available on crate feature UIAccessibilityElement
only.
impl Borrow<UIResponder> for UIAccessibilityElement
UIAccessibilityElement
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIActionSheet
Available on crate features UIView
and UIActionSheet
only.
impl Borrow<UIResponder> for UIActionSheet
UIView
and UIActionSheet
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIActivityIndicatorView
Available on crate features UIView
and UIActivityIndicatorView
only.
impl Borrow<UIResponder> for UIActivityIndicatorView
UIView
and UIActivityIndicatorView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIActivityViewController
Available on crate features UIViewController
and UIActivityViewController
only.
impl Borrow<UIResponder> for UIActivityViewController
UIViewController
and UIActivityViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIAlertController
Available on crate features UIViewController
and UIAlertController
only.
impl Borrow<UIResponder> for UIAlertController
UIViewController
and UIAlertController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIAlertView
Available on crate features UIView
and UIAlertView
only.
impl Borrow<UIResponder> for UIAlertView
UIView
and UIAlertView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIApplication
Available on crate feature UIApplication
only.
impl Borrow<UIResponder> for UIApplication
UIApplication
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIButton
Available on crate features UIControl
and UIView
and UIButton
only.
impl Borrow<UIResponder> for UIButton
UIControl
and UIView
and UIButton
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICalendarView
Available on crate features UIView
and UICalendarView
only.
impl Borrow<UIResponder> for UICalendarView
UIView
and UICalendarView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICloudSharingController
Available on crate features UIViewController
and UICloudSharingController
only.
impl Borrow<UIResponder> for UICloudSharingController
UIViewController
and UICloudSharingController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICollectionReusableView
Available on crate features UIView
and UICollectionViewCell
only.
impl Borrow<UIResponder> for UICollectionReusableView
UIView
and UICollectionViewCell
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICollectionView
Available on crate features UIScrollView
and UIView
and UICollectionView
only.
impl Borrow<UIResponder> for UICollectionView
UIScrollView
and UIView
and UICollectionView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICollectionViewCell
Available on crate features UIView
and UICollectionViewCell
only.
impl Borrow<UIResponder> for UICollectionViewCell
UIView
and UICollectionViewCell
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICollectionViewController
Available on crate features UIViewController
and UICollectionViewController
only.
impl Borrow<UIResponder> for UICollectionViewController
UIViewController
and UICollectionViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UICollectionViewListCell
Available on crate features UICollectionViewCell
and UIView
and UICollectionViewListCell
only.
impl Borrow<UIResponder> for UICollectionViewListCell
UICollectionViewCell
and UIView
and UICollectionViewListCell
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIColorPickerViewController
Available on crate features UIViewController
and UIColorPickerViewController
only.
impl Borrow<UIResponder> for UIColorPickerViewController
UIViewController
and UIColorPickerViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIColorWell
Available on crate features UIControl
and UIView
and UIColorWell
only.
impl Borrow<UIResponder> for UIColorWell
UIControl
and UIView
and UIColorWell
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIControl
Available on crate features UIView
and UIControl
only.
impl Borrow<UIResponder> for UIControl
UIView
and UIControl
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDatePicker
Available on crate features UIControl
and UIView
and UIDatePicker
only.
impl Borrow<UIResponder> for UIDatePicker
UIControl
and UIView
and UIDatePicker
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDocumentBrowserViewController
Available on crate features UIViewController
and UIDocumentBrowserViewController
only.
impl Borrow<UIResponder> for UIDocumentBrowserViewController
UIViewController
and UIDocumentBrowserViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDocumentMenuViewController
Available on crate features UIViewController
and UIDocumentMenuViewController
only.
impl Borrow<UIResponder> for UIDocumentMenuViewController
UIViewController
and UIDocumentMenuViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDocumentPickerExtensionViewController
Available on crate features UIViewController
and UIDocumentPickerExtensionViewController
only.
impl Borrow<UIResponder> for UIDocumentPickerExtensionViewController
UIViewController
and UIDocumentPickerExtensionViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDocumentPickerViewController
Available on crate features UIViewController
and UIDocumentPickerViewController
only.
impl Borrow<UIResponder> for UIDocumentPickerViewController
UIViewController
and UIDocumentPickerViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIDocumentViewController
Available on crate features UIViewController
and UIDocumentViewController
only.
impl Borrow<UIResponder> for UIDocumentViewController
UIViewController
and UIDocumentViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIEventAttributionView
Available on crate features UIView
and UIEventAttributionView
only.
impl Borrow<UIResponder> for UIEventAttributionView
UIView
and UIEventAttributionView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIFontPickerViewController
Available on crate features UIViewController
and UIFontPickerViewController
only.
impl Borrow<UIResponder> for UIFontPickerViewController
UIViewController
and UIFontPickerViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIImagePickerController
Available on crate features UINavigationController
and UIViewController
and UIImagePickerController
only.
impl Borrow<UIResponder> for UIImagePickerController
UINavigationController
and UIViewController
and UIImagePickerController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIImageView
Available on crate features UIView
and UIImageView
only.
impl Borrow<UIResponder> for UIImageView
UIView
and UIImageView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIInputView
Available on crate features UIView
and UIInputView
only.
impl Borrow<UIResponder> for UIInputView
UIView
and UIInputView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIInputViewController
Available on crate features UIViewController
and UIInputViewController
only.
impl Borrow<UIResponder> for UIInputViewController
UIViewController
and UIInputViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UILabel
Available on crate features UIView
and UILabel
only.
impl Borrow<UIResponder> for UILabel
UIView
and UILabel
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIListContentView
Available on crate features UIView
and UIListContentConfiguration
only.
impl Borrow<UIResponder> for UIListContentView
UIView
and UIListContentConfiguration
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIPageControl
Available on crate features UIControl
and UIView
and UIPageControl
only.
impl Borrow<UIResponder> for UIPageControl
UIControl
and UIView
and UIPageControl
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIPageViewController
Available on crate features UIViewController
and UIPageViewController
only.
impl Borrow<UIResponder> for UIPageViewController
UIViewController
and UIPageViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIPasteControl
Available on crate features UIControl
and UIView
and UIPasteControl
only.
impl Borrow<UIResponder> for UIPasteControl
UIControl
and UIView
and UIPasteControl
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIPickerView
Available on crate features UIView
and UIPickerView
only.
impl Borrow<UIResponder> for UIPickerView
UIView
and UIPickerView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIPopoverBackgroundView
Available on crate features UIView
and UIPopoverBackgroundView
only.
impl Borrow<UIResponder> for UIPopoverBackgroundView
UIView
and UIPopoverBackgroundView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIProgressView
Available on crate features UIView
and UIProgressView
only.
impl Borrow<UIResponder> for UIProgressView
UIView
and UIProgressView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIReferenceLibraryViewController
Available on crate features UIViewController
and UIReferenceLibraryViewController
only.
impl Borrow<UIResponder> for UIReferenceLibraryViewController
UIViewController
and UIReferenceLibraryViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIRefreshControl
Available on crate features UIControl
and UIView
and UIRefreshControl
only.
impl Borrow<UIResponder> for UIRefreshControl
UIControl
and UIView
and UIRefreshControl
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIScene
Available on crate feature UIScene
only.
impl Borrow<UIResponder> for UIScene
UIScene
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIScrollView
Available on crate features UIView
and UIScrollView
only.
impl Borrow<UIResponder> for UIScrollView
UIView
and UIScrollView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISearchBar
Available on crate features UIView
and UISearchBar
only.
impl Borrow<UIResponder> for UISearchBar
UIView
and UISearchBar
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISearchContainerViewController
Available on crate features UIViewController
and UISearchContainerViewController
only.
impl Borrow<UIResponder> for UISearchContainerViewController
UIViewController
and UISearchContainerViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISearchController
Available on crate features UIViewController
and UISearchController
only.
impl Borrow<UIResponder> for UISearchController
UIViewController
and UISearchController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISearchTextField
Available on crate features UIControl
and UITextField
and UIView
and UISearchTextField
only.
impl Borrow<UIResponder> for UISearchTextField
UIControl
and UITextField
and UIView
and UISearchTextField
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISegmentedControl
Available on crate features UIControl
and UIView
and UISegmentedControl
only.
impl Borrow<UIResponder> for UISegmentedControl
UIControl
and UIView
and UISegmentedControl
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISlider
Available on crate features UIControl
and UIView
and UISlider
only.
impl Borrow<UIResponder> for UISlider
UIControl
and UIView
and UISlider
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISplitViewController
Available on crate features UIViewController
and UISplitViewController
only.
impl Borrow<UIResponder> for UISplitViewController
UIViewController
and UISplitViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIStackView
Available on crate features UIView
and UIStackView
only.
impl Borrow<UIResponder> for UIStackView
UIView
and UIStackView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIStandardTextCursorView
Available on crate features UIView
and UIStandardTextCursorView
only.
impl Borrow<UIResponder> for UIStandardTextCursorView
UIView
and UIStandardTextCursorView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIStepper
Available on crate features UIControl
and UIView
and UIStepper
only.
impl Borrow<UIResponder> for UIStepper
UIControl
and UIView
and UIStepper
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UISwitch
Available on crate features UIControl
and UIView
and UISwitch
only.
impl Borrow<UIResponder> for UISwitch
UIControl
and UIView
and UISwitch
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITabBar
Available on crate features UIView
and UITabBar
only.
impl Borrow<UIResponder> for UITabBar
UIView
and UITabBar
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITabBarController
Available on crate features UIViewController
and UITabBarController
only.
impl Borrow<UIResponder> for UITabBarController
UIViewController
and UITabBarController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITableView
Available on crate features UIScrollView
and UIView
and UITableView
only.
impl Borrow<UIResponder> for UITableView
UIScrollView
and UIView
and UITableView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITableViewCell
Available on crate features UIView
and UITableViewCell
only.
impl Borrow<UIResponder> for UITableViewCell
UIView
and UITableViewCell
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITableViewController
Available on crate features UIViewController
and UITableViewController
only.
impl Borrow<UIResponder> for UITableViewController
UIViewController
and UITableViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITextField
Available on crate features UIControl
and UIView
and UITextField
only.
impl Borrow<UIResponder> for UITextField
UIControl
and UIView
and UITextField
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITextFormattingViewController
Available on crate features UIViewController
and UITextFormattingViewController
only.
impl Borrow<UIResponder> for UITextFormattingViewController
UIViewController
and UITextFormattingViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UITextView
Available on crate features UIScrollView
and UIView
and UITextView
only.
impl Borrow<UIResponder> for UITextView
UIScrollView
and UIView
and UITextView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIToolbar
Available on crate features UIView
and UIToolbar
only.
impl Borrow<UIResponder> for UIToolbar
UIView
and UIToolbar
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIVideoEditorController
Available on crate features UINavigationController
and UIViewController
and UIVideoEditorController
only.
impl Borrow<UIResponder> for UIVideoEditorController
UINavigationController
and UIViewController
and UIVideoEditorController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIView
Available on crate feature UIView
only.
impl Borrow<UIResponder> for UIView
UIView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIViewController
Available on crate feature UIViewController
only.
impl Borrow<UIResponder> for UIViewController
UIViewController
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIVisualEffectView
Available on crate features UIView
and UIVisualEffectView
only.
impl Borrow<UIResponder> for UIVisualEffectView
UIView
and UIVisualEffectView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIWebView
Available on crate features UIView
and UIWebView
only.
impl Borrow<UIResponder> for UIWebView
UIView
and UIWebView
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIWindow
Available on crate features UIView
and UIWindow
only.
impl Borrow<UIResponder> for UIWindow
UIView
and UIWindow
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIResponder> for UIWindowScene
Available on crate features UIScene
and UIWindowScene
only.
impl Borrow<UIResponder> for UIWindowScene
UIScene
and UIWindowScene
only.Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl ClassType for UIResponder
impl ClassType for UIResponder
Source§const NAME: &'static str = "UIResponder"
const NAME: &'static str = "UIResponder"
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UIResponder
impl Debug for UIResponder
Source§impl Deref for UIResponder
impl Deref for UIResponder
Source§impl Hash for UIResponder
impl Hash for UIResponder
Source§impl Message for UIResponder
impl Message for UIResponder
Source§impl NSObjectProtocol for UIResponder
impl NSObjectProtocol for UIResponder
Source§fn isEqual(&self, other: Option<&AnyObject>) -> bool
fn isEqual(&self, other: Option<&AnyObject>) -> bool
Source§fn hash(&self) -> usize
fn hash(&self) -> usize
Source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
isKindOfClass
directly, or cast your objects with AnyObject::downcast_ref
Source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
Source§impl PartialEq for UIResponder
impl PartialEq for UIResponder
Source§impl RefEncode for UIResponder
impl RefEncode for UIResponder
Source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIActivityItemsConfigurationProviding for UIResponder
Available on crate feature UIResponder_UIActivityItemsConfiguration
only.
impl UIActivityItemsConfigurationProviding for UIResponder
UIResponder_UIActivityItemsConfiguration
only.Source§unsafe fn activityItemsConfiguration(
&self,
mtm: MainThreadMarker,
) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
unsafe fn activityItemsConfiguration( &self, mtm: MainThreadMarker, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIActivityItemsConfigurationReading
only.Source§impl UIPasteConfigurationSupporting for UIResponder
impl UIPasteConfigurationSupporting for UIResponder
Source§unsafe fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>
unsafe fn pasteConfiguration(&self) -> Option<Retained<UIPasteConfiguration>>
UIPasteConfigurationSupporting
and UIPasteConfiguration
only.Source§unsafe fn setPasteConfiguration(
&self,
paste_configuration: Option<&UIPasteConfiguration>,
)
unsafe fn setPasteConfiguration( &self, paste_configuration: Option<&UIPasteConfiguration>, )
UIPasteConfigurationSupporting
and UIPasteConfiguration
only.pasteConfiguration
.Source§unsafe fn pasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>)
unsafe fn pasteItemProviders(&self, item_providers: &NSArray<NSItemProvider>)
UIPasteConfigurationSupporting
only.Source§unsafe fn canPasteItemProviders(
&self,
item_providers: &NSArray<NSItemProvider>,
) -> bool
unsafe fn canPasteItemProviders( &self, item_providers: &NSArray<NSItemProvider>, ) -> bool
UIPasteConfigurationSupporting
only.Source§impl UIResponderStandardEditActions for UIResponder
impl UIResponderStandardEditActions for UIResponder
unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
Source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler,
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler, )
block2
only.unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
unsafe fn showWritingTools(&self, sender: &AnyObject)
Source§impl UIUserActivityRestoring for UIResponder
impl UIUserActivityRestoring for UIResponder
Source§unsafe fn restoreUserActivityState(&self, user_activity: &NSUserActivity)
unsafe fn restoreUserActivityState(&self, user_activity: &NSUserActivity)
UIUserActivity
only.impl DowncastTarget for UIResponder
impl Eq for UIResponder
Auto Trait Implementations§
impl !Freeze for UIResponder
impl !RefUnwindSafe for UIResponder
impl !Send for UIResponder
impl !Sync for UIResponder
impl !Unpin for UIResponder
impl !UnwindSafe for UIResponder
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
Source§impl<'a, T> MainThreadOnly for T
impl<'a, T> MainThreadOnly for T
Source§fn mtm(&self) -> MainThreadMarker
fn mtm(&self) -> MainThreadMarker
MainThreadMarker
from the main-thread-only object. Read more