pub struct UIWindowScene { /* private fields */ }UIResponder and UIScene and UIWindowScene only.Expand description
Implementations§
Source§impl UIWindowScene
UIFocusSystem.
impl UIWindowScene
UIFocusSystem.
Sourcepub fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>
Available on crate features UIFocusSystem_UIKitAdditions and UIFocusSystem only.
pub fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>
UIFocusSystem_UIKitAdditions and UIFocusSystem only.Returns the focus system that is responsible for this scene or nil if this scene does not support focus.
Source§impl UIWindowScene
UIScreenshotService.
impl UIWindowScene
UIScreenshotService.
Sourcepub fn screenshotService(&self) -> Option<Retained<UIScreenshotService>>
Available on crate feature UIScreenshotService only.
pub fn screenshotService(&self) -> Option<Retained<UIScreenshotService>>
UIScreenshotService only.The screenshot object associated with the scene
This is non-null if the screenshot service is available for this window scene
Source§impl UIWindowScene
StatusBarManager.
impl UIWindowScene
StatusBarManager.
pub fn statusBarManager(&self) -> Option<Retained<UIStatusBarManager>>
UIStatusBarManager only.Source§impl UIWindowScene
impl UIWindowScene
pub fn screen(&self) -> Retained<UIScreen>
UIScreen only.pub fn interfaceOrientation(&self) -> UIInterfaceOrientation
UIOrientation only.pub fn coordinateSpace(&self) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
UIView only.pub fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection only.pub fn requestGeometryUpdateWithPreferences_errorHandler( &self, geometry_preferences: &UIWindowSceneGeometryPreferences, error_handler: Option<&DynBlock<dyn Fn(NonNull<NSError>)>>, )
UIWindowSceneGeometryPreferences and block2 only.pub fn effectiveGeometry(&self) -> Retained<UIWindowSceneGeometry>
UIWindowSceneGeometry only.Sourcepub fn sizeRestrictions(&self) -> Option<Retained<UISceneSizeRestrictions>>
Available on crate feature UISceneSizeRestrictions only.
pub fn sizeRestrictions(&self) -> Option<Retained<UISceneSizeRestrictions>>
UISceneSizeRestrictions only.Preferences the system should evaluate when resizing the scene. If non nil, returns a mutable instance that the client may customize.
- Note: This property will be
nilon platforms that don’t support scene resizing.
pub fn windows(&self) -> Retained<NSArray<UIWindow>>
UIView and UIWindow only.pub fn keyWindow(&self) -> Option<Retained<UIWindow>>
UIView and UIWindow only.Sourcepub fn activityItemsConfigurationSource(
&self,
) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationProviding>>>
Available on crate feature UIActivityItemsConfigurationReading only.
pub fn activityItemsConfigurationSource( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationProviding>>>
UIActivityItemsConfigurationReading only.An optional object used as a source of scene-level activity items configuration
If this property returns
nil,the
activityItemsConfigurationproperty of the most-presented view controller
of the scene’s key window will be used for scene-level sharing and activities.
Sourcepub fn setActivityItemsConfigurationSource(
&self,
activity_items_configuration_source: Option<&ProtocolObject<dyn UIActivityItemsConfigurationProviding>>,
)
Available on crate feature UIActivityItemsConfigurationReading only.
pub fn setActivityItemsConfigurationSource( &self, activity_items_configuration_source: Option<&ProtocolObject<dyn UIActivityItemsConfigurationProviding>>, )
UIActivityItemsConfigurationReading only.Setter for activityItemsConfigurationSource.
This is a weak property.
Sourcepub fn windowingBehaviors(&self) -> Option<Retained<UISceneWindowingBehaviors>>
Available on crate feature UISceneWindowingBehaviors only.
pub fn windowingBehaviors(&self) -> Option<Retained<UISceneWindowingBehaviors>>
UISceneWindowingBehaviors only.Additional window behaviors which may be platform specific. This property will be nil on unsupported platforms, otherwise will provide a mutable object for window behavior customization.
pub fn isFullScreen(&self) -> bool
Source§impl UIWindowScene
Methods declared on superclass UIScene.
impl UIWindowScene
Methods declared on superclass UIScene.
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
pub fn initWithSession_connectionOptions( this: Allocated<Self>, session: &UISceneSession, connection_options: &UISceneConnectionOptions, ) -> Retained<Self>
UISceneOptions and UISceneSession only.Source§impl UIWindowScene
impl UIWindowScene
pub fn traitOverrides(&self) -> Retained<ProtocolObject<dyn UITraitOverrides>>
UITraitCollection only.Methods from Deref<Target = UIScene>§
pub fn pointerLockState(&self) -> Option<Retained<UIPointerLockState>>
UIPointerLockState only.pub fn session(&self) -> Retained<UISceneSession>
UISceneSession only.pub fn delegate(&self) -> Option<Retained<ProtocolObject<dyn UISceneDelegate>>>
Sourcepub fn setDelegate(
&self,
delegate: Option<&ProtocolObject<dyn UISceneDelegate>>,
)
pub fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UISceneDelegate>>, )
Setter for delegate.
pub fn activationState(&self) -> UISceneActivationState
UISceneDefinitions only.pub fn openURL_options_completionHandler( &self, url: &NSURL, options: Option<&UISceneOpenExternalURLOptions>, completion: Option<&DynBlock<dyn Fn(Bool)>>, )
UISceneOptions and block2 only.pub fn title(&self) -> Retained<NSString>
pub fn subtitle(&self) -> Retained<NSString>
Sourcepub fn setSubtitle(&self, subtitle: &NSString)
pub fn setSubtitle(&self, subtitle: &NSString)
pub fn activationConditions(&self) -> Retained<UISceneActivationConditions>
UISceneActivationConditions only.Sourcepub fn setActivationConditions(
&self,
activation_conditions: &UISceneActivationConditions,
)
Available on crate feature UISceneActivationConditions only.
pub fn setActivationConditions( &self, activation_conditions: &UISceneActivationConditions, )
UISceneActivationConditions only.Setter for activationConditions.
pub fn destructionConditions( &self, ) -> Retained<NSSet<UISceneDestructionCondition>>
UISceneDestructionCondition only.Sourcepub fn setDestructionConditions(
&self,
destruction_conditions: &NSSet<UISceneDestructionCondition>,
)
Available on crate feature UISceneDestructionCondition only.
pub fn setDestructionConditions( &self, destruction_conditions: &NSSet<UISceneDestructionCondition>, )
UISceneDestructionCondition only.Setter for destructionConditions.
This is copied when set.
pub fn extendStateRestoration(&self)
UISceneEnhancedStateRestoration only.pub fn completeStateRestoration(&self)
UISceneEnhancedStateRestoration only.pub fn systemProtectionManager( &self, ) -> Option<Retained<UISceneSystemProtectionManager>>
UISceneSystemProtectionManager only.Methods from Deref<Target = UIResponder>§
pub fn nextResponder(&self) -> Option<Retained<UIResponder>>
pub fn canBecomeFirstResponder(&self) -> bool
pub fn becomeFirstResponder(&self) -> bool
pub fn canResignFirstResponder(&self) -> bool
pub fn resignFirstResponder(&self) -> bool
pub fn isFirstResponder(&self) -> bool
pub fn touchesBegan_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent>, )
UIEvent and UITouch only.pub fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
UITouch only.pub fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent>, )
UIEvent and UIPress and UIPressesEvent only.pub fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent>, )
UIEvent only.pub fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
UIEvent only.Sourcepub unsafe fn canPerformAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> bool
pub unsafe fn canPerformAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> bool
§Safety
actionmust be a valid selector.sendershould be of the correct type.
Sourcepub unsafe fn targetForAction_withSender(
&self,
action: Sel,
sender: Option<&AnyObject>,
) -> Option<Retained<AnyObject>>
pub unsafe fn targetForAction_withSender( &self, action: Sel, sender: Option<&AnyObject>, ) -> Option<Retained<AnyObject>>
§Safety
actionmust be a valid selector.sendershould be of the correct type.
pub fn buildMenuWithBuilder(&self, builder: &ProtocolObject<dyn UIMenuBuilder>)
UIMenuBuilder only.pub fn validateCommand(&self, command: &UICommand)
UICommand and UIMenuElement only.Sourcepub fn providerForDeferredMenuElement(
&self,
deferred_element: &UIDeferredMenuElement,
) -> Option<Retained<UIDeferredMenuElementProvider>>
Available on crate features UIDeferredMenuElement and UIMenuElement only.
pub fn providerForDeferredMenuElement( &self, deferred_element: &UIDeferredMenuElement, ) -> Option<Retained<UIDeferredMenuElementProvider>>
UIDeferredMenuElement and UIMenuElement only.Asks the responder for an element provider to fulfill the given focus-based deferred element.
Check the identifier of the deferred element to identify which deferred element this is.
By default, this returns nil. Return a non-nil provider to make this responder responsible for providing
elements for this fulfillment of the deferred element.
pub fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub fn editingInteractionConfiguration( &self, ) -> UIEditingInteractionConfiguration
pub fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
UICommand and UIKeyCommand and UIMenuElement only.pub fn inputView(&self) -> Option<Retained<UIView>>
UIView only.pub fn inputAccessoryView(&self) -> Option<Retained<UIView>>
UIView only.Sourcepub fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature UITextInput only.
pub 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 fn inputViewController(&self) -> Option<Retained<UIInputViewController>>
UIInputViewController and UIViewController only.pub fn inputAccessoryViewController( &self, ) -> Option<Retained<UIInputViewController>>
UIInputViewController and UIViewController only.pub fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
UITextInput only.pub fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub fn reloadInputViews(&self)
pub fn userActivity(&self) -> Option<Retained<NSUserActivity>>
Sourcepub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
Setter for userActivity.
pub fn updateUserActivityState(&self, activity: &NSUserActivity)
pub fn restoreUserActivityState(&self, activity: &NSUserActivity)
Sourcepub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
§Safety
sender should be of the correct type.
pub fn activityItemsConfiguration( &self, ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.Sourcepub fn setActivityItemsConfiguration(
&self,
activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>>,
)
Available on crate features UIResponder_UIActivityItemsConfiguration and UIActivityItemsConfigurationReading only.
pub 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 UIWindowScene
impl AsRef<AnyObject> for UIWindowScene
Source§impl AsRef<NSObject> for UIWindowScene
impl AsRef<NSObject> for UIWindowScene
Source§impl AsRef<UIResponder> for UIWindowScene
impl AsRef<UIResponder> for UIWindowScene
Source§fn as_ref(&self) -> &UIResponder
fn as_ref(&self) -> &UIResponder
Source§impl AsRef<UIScene> for UIWindowScene
impl AsRef<UIScene> for UIWindowScene
Source§impl AsRef<UIWindowScene> for UIWindowScene
impl AsRef<UIWindowScene> for UIWindowScene
Source§impl Borrow<AnyObject> for UIWindowScene
impl Borrow<AnyObject> for UIWindowScene
Source§impl Borrow<NSObject> for UIWindowScene
impl Borrow<NSObject> for UIWindowScene
Source§impl Borrow<UIResponder> for UIWindowScene
impl Borrow<UIResponder> for UIWindowScene
Source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Source§impl Borrow<UIScene> for UIWindowScene
impl Borrow<UIScene> for UIWindowScene
Source§impl ClassType for UIWindowScene
impl ClassType for UIWindowScene
Source§const NAME: &'static str = "UIWindowScene"
const NAME: &'static str = "UIWindowScene"
Source§type ThreadKind = dyn MainThreadOnly
type ThreadKind = dyn MainThreadOnly
Source§impl Debug for UIWindowScene
impl Debug for UIWindowScene
Source§impl Deref for UIWindowScene
impl Deref for UIWindowScene
Source§impl Hash for UIWindowScene
impl Hash for UIWindowScene
Source§impl Message for UIWindowScene
impl Message for UIWindowScene
Source§impl NSObjectProtocol for UIWindowScene
impl NSObjectProtocol for UIWindowScene
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_refSource§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 UIWindowScene
impl PartialEq for UIWindowScene
Source§impl RefEncode for UIWindowScene
impl RefEncode for UIWindowScene
Source§const ENCODING_REF: Encoding = <UIScene as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIScene as ::objc2::RefEncode>::ENCODING_REF
Source§impl UIResponderStandardEditActions for UIWindowScene
impl UIResponderStandardEditActions for UIWindowScene
Source§unsafe fn cut(&self, sender: Option<&AnyObject>)
unsafe fn cut(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn copy(&self, sender: Option<&AnyObject>)
unsafe fn copy(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn paste(&self, sender: Option<&AnyObject>)
unsafe fn paste(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndMatchStyle(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndGo(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
unsafe fn pasteAndSearch(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
unsafe fn newFromPasteboard(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn select(&self, sender: Option<&AnyObject>)
unsafe fn select(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn selectAll(&self, sender: Option<&AnyObject>)
unsafe fn selectAll(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn delete(&self, sender: Option<&AnyObject>)
unsafe fn delete(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionLeftToRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
unsafe fn makeTextWritingDirectionRightToLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
unsafe fn toggleBoldface(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
unsafe fn toggleItalics(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
unsafe fn toggleUnderline(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
unsafe fn increaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
unsafe fn decreaseSize(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
unsafe fn alignLeft(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
unsafe fn alignCenter(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
unsafe fn alignJustified(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn alignRight(&self, sender: Option<&AnyObject>)
unsafe fn alignRight(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn find(&self, sender: Option<&AnyObject>)
unsafe fn find(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
unsafe fn findAndReplace(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findNext(&self, sender: Option<&AnyObject>)
unsafe fn findNext(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
unsafe fn findPrevious(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
unsafe fn useSelectionForFind(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn updateTextAttributesWithConversionHandler(
&self,
conversion_handler: UITextAttributesConversionHandler,
)
unsafe fn updateTextAttributesWithConversionHandler( &self, conversion_handler: UITextAttributesConversionHandler, )
UIResponder and block2 only.Source§unsafe fn print(&self, sender: Option<&AnyObject>)
unsafe fn print(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn rename(&self, sender: Option<&AnyObject>)
unsafe fn rename(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn duplicate(&self, sender: Option<&AnyObject>)
unsafe fn duplicate(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn move(&self, sender: Option<&AnyObject>)
unsafe fn move(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn export(&self, sender: Option<&AnyObject>)
unsafe fn export(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
unsafe fn toggleSidebar(&self, sender: Option<&AnyObject>)
UIResponder only.Source§unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
unsafe fn toggleInspector(&self, sender: Option<&AnyObject>)
UIResponder only.Source§impl UITraitChangeObservable for UIWindowScene
impl UITraitChangeObservable for UIWindowScene
Source§fn unregisterForTraitChanges(
&self,
registration: &ProtocolObject<dyn UITraitChangeRegistration>,
)
fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration>, )
UITraitCollection only.Source§impl UITraitEnvironment for UIWindowScene
impl UITraitEnvironment for UIWindowScene
Source§fn traitCollection(&self) -> Retained<UITraitCollection>
fn traitCollection(&self) -> Retained<UITraitCollection>
UITraitCollection only.Source§fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>,
)
fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection>, )
UITraitCollection only.impl DowncastTarget for UIWindowScene
impl Eq for UIWindowScene
Auto Trait Implementations§
impl !Freeze for UIWindowScene
impl !RefUnwindSafe for UIWindowScene
impl !Send for UIWindowScene
impl !Sync for UIWindowScene
impl !Unpin for UIWindowScene
impl !UnwindSafe for UIWindowScene
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