Struct objc2_ui_kit::UIWindowScene
source · #[repr(C)]pub struct UIWindowScene { /* private fields */ }
Available on crate features
UIResponder
and UIScene
and UIWindowScene
only.Implementations§
source§impl UIWindowScene
impl UIWindowScene
UIFocusSystem
pub unsafe fn focusSystem(&self) -> Option<Retained<UIFocusSystem>>
Available on crate feature
UIFocusSystem
only.source§impl UIWindowScene
impl UIWindowScene
UIScreenshotService
pub unsafe fn screenshotService(&self) -> Option<Retained<UIScreenshotService>>
Available on crate feature
UIScreenshotService
only.source§impl UIWindowScene
impl UIWindowScene
StatusBarManager
pub unsafe fn statusBarManager(&self) -> Option<Retained<UIStatusBarManager>>
Available on crate feature
UIStatusBarManager
only.source§impl UIWindowScene
impl UIWindowScene
pub unsafe fn screen(&self) -> Retained<UIScreen>
Available on crate feature
UIScreen
only.pub unsafe fn interfaceOrientation(&self) -> UIInterfaceOrientation
Available on crate feature
UIOrientation
only.pub unsafe fn coordinateSpace( &self ) -> Retained<ProtocolObject<dyn UICoordinateSpace>>
Available on crate feature
UIView
only.pub unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
Available on crate feature
UITraitCollection
only.pub unsafe fn requestGeometryUpdateWithPreferences_errorHandler( &self, geometry_preferences: &UIWindowSceneGeometryPreferences, error_handler: Option<&Block<dyn Fn(NonNull<NSError>)>> )
Available on crate features
UIWindowSceneGeometryPreferences
and block2
only.pub unsafe fn effectiveGeometry(&self) -> Retained<UIWindowSceneGeometry>
Available on crate feature
UIWindowSceneGeometry
only.pub unsafe fn sizeRestrictions( &self ) -> Option<Retained<UISceneSizeRestrictions>>
pub unsafe fn windows(&self) -> Retained<NSArray<UIWindow>>
Available on crate features
UIView
and UIWindow
only.pub unsafe fn keyWindow(&self) -> Option<Retained<UIWindow>>
Available on crate features
UIView
and UIWindow
only.pub unsafe fn activityItemsConfigurationSource( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationProviding>>>
Available on crate feature
UIActivityItemsConfigurationReading
only.pub unsafe fn setActivityItemsConfigurationSource( &self, activity_items_configuration_source: Option<&ProtocolObject<dyn UIActivityItemsConfigurationProviding>> )
Available on crate feature
UIActivityItemsConfigurationReading
only.pub unsafe fn windowingBehaviors( &self ) -> Option<Retained<UISceneWindowingBehaviors>>
Available on crate feature
UISceneWindowingBehaviors
only.pub unsafe fn isFullScreen(&self) -> bool
source§impl UIWindowScene
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 unsafe fn initWithSession_connectionOptions( this: Allocated<Self>, session: &UISceneSession, connection_options: &UISceneConnectionOptions ) -> Retained<Self>
Available on crate features
UISceneOptions
and UISceneSession
only.source§impl UIWindowScene
impl UIWindowScene
pub unsafe fn traitOverrides( &self ) -> Retained<ProtocolObject<dyn UITraitOverrides>>
Available on crate feature
UITraitCollection
only.Methods from Deref<Target = UIScene>§
pub unsafe fn pointerLockState(&self) -> Option<Retained<UIPointerLockState>>
Available on crate feature
UIPointerLockState
only.pub unsafe fn session(&self) -> Retained<UISceneSession>
Available on crate feature
UISceneSession
only.pub unsafe fn delegate( &self ) -> Option<Retained<ProtocolObject<dyn UISceneDelegate>>>
pub unsafe fn setDelegate( &self, delegate: Option<&ProtocolObject<dyn UISceneDelegate>> )
pub unsafe fn activationState(&self) -> UISceneActivationState
Available on crate feature
UISceneDefinitions
only.pub unsafe fn openURL_options_completionHandler( &self, url: &NSURL, options: Option<&UISceneOpenExternalURLOptions>, completion: Option<&Block<dyn Fn(Bool)>> )
Available on crate features
UISceneOptions
and block2
only.pub unsafe fn title(&self) -> Retained<NSString>
pub unsafe fn setTitle(&self, title: Option<&NSString>)
pub unsafe fn subtitle(&self) -> Retained<NSString>
pub unsafe fn setSubtitle(&self, subtitle: &NSString)
pub unsafe fn activationConditions( &self ) -> Retained<UISceneActivationConditions>
Available on crate feature
UISceneActivationConditions
only.pub unsafe fn setActivationConditions( &self, activation_conditions: &UISceneActivationConditions )
Available on crate feature
UISceneActivationConditions
only.pub unsafe fn extendStateRestoration(&self)
Available on crate feature
UISceneEnhancedStateRestoration
only.pub unsafe fn completeStateRestoration(&self)
Available on crate feature
UISceneEnhancedStateRestoration
only.Methods from Deref<Target = 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> )
Available on crate features
UIEvent
and UITouch
only.pub unsafe fn touchesMoved_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent
and UITouch
only.pub unsafe fn touchesEnded_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent
and UITouch
only.pub unsafe fn touchesCancelled_withEvent( &self, touches: &NSSet<UITouch>, event: Option<&UIEvent> )
Available on crate features
UIEvent
and UITouch
only.pub unsafe fn touchesEstimatedPropertiesUpdated(&self, touches: &NSSet<UITouch>)
Available on crate feature
UITouch
only.pub unsafe fn pressesBegan_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesChanged_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesEnded_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn pressesCancelled_withEvent( &self, presses: &NSSet<UIPress>, event: Option<&UIPressesEvent> )
Available on crate features
UIEvent
and UIPress
and UIPressesEvent
only.pub unsafe fn motionBegan_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent
only.pub unsafe fn motionEnded_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent
only.pub unsafe fn motionCancelled_withEvent( &self, motion: UIEventSubtype, event: Option<&UIEvent> )
Available on crate feature
UIEvent
only.pub unsafe fn remoteControlReceivedWithEvent(&self, event: Option<&UIEvent>)
Available on crate feature
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> )
Available on crate feature
UIMenuBuilder
only.pub unsafe fn validateCommand(&self, command: &UICommand)
Available on crate features
UICommand
and UIMenuElement
only.pub unsafe fn undoManager(&self) -> Option<Retained<NSUndoManager>>
pub unsafe fn editingInteractionConfiguration( &self ) -> UIEditingInteractionConfiguration
pub unsafe fn keyCommands(&self) -> Option<Retained<NSArray<UIKeyCommand>>>
Available on crate features
UICommand
and UIKeyCommand
and UIMenuElement
only.pub unsafe fn inputView(&self) -> Option<Retained<UIView>>
Available on crate feature
UIView
only.pub unsafe fn inputAccessoryView(&self) -> Option<Retained<UIView>>
Available on crate feature
UIView
only.pub unsafe fn inputAssistantItem(&self) -> Retained<UITextInputAssistantItem>
Available on crate feature
UITextInput
only.pub unsafe fn inputViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController
and UIViewController
only.pub unsafe fn inputAccessoryViewController( &self ) -> Option<Retained<UIInputViewController>>
Available on crate features
UIInputViewController
and UIViewController
only.pub unsafe fn textInputMode(&self) -> Option<Retained<UITextInputMode>>
Available on crate feature
UITextInput
only.pub unsafe fn textInputContextIdentifier(&self) -> Option<Retained<NSString>>
pub unsafe fn reloadInputViews(&self)
pub unsafe fn userActivity(&self) -> Option<Retained<NSUserActivity>>
pub unsafe fn setUserActivity(&self, user_activity: Option<&NSUserActivity>)
pub unsafe fn updateUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn restoreUserActivityState(&self, activity: &NSUserActivity)
pub unsafe fn captureTextFromCamera(&self, sender: Option<&AnyObject>)
pub unsafe fn activityItemsConfiguration( &self ) -> Option<Retained<ProtocolObject<dyn UIActivityItemsConfigurationReading>>>
Available on crate features
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.pub unsafe fn setActivityItemsConfiguration( &self, activity_items_configuration: Option<&ProtocolObject<dyn UIActivityItemsConfigurationReading>> )
Available on crate features
UIResponder_UIActivityItemsConfiguration
and UIActivityItemsConfigurationReading
only.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.
§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 unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.UIIndirectScribbleInteraction
only.Use Ivar::load_mut
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.
Trait Implementations§
source§impl AsMut<AnyObject> for UIWindowScene
impl AsMut<AnyObject> for UIWindowScene
source§impl AsMut<NSObject> for UIWindowScene
impl AsMut<NSObject> for UIWindowScene
source§impl AsMut<UIResponder> for UIWindowScene
impl AsMut<UIResponder> for UIWindowScene
source§fn as_mut(&mut self) -> &mut UIResponder
fn as_mut(&mut self) -> &mut UIResponder
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsMut<UIScene> for UIWindowScene
impl AsMut<UIScene> for UIWindowScene
source§impl AsMut<UIWindowScene> for UIWindowScene
impl AsMut<UIWindowScene> for UIWindowScene
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
Converts this type into a shared reference of the (usually inferred) input type.
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
Immutably borrows from an owned value. Read more
source§impl Borrow<UIScene> for UIWindowScene
impl Borrow<UIScene> for UIWindowScene
source§impl BorrowMut<AnyObject> for UIWindowScene
impl BorrowMut<AnyObject> for UIWindowScene
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for UIWindowScene
impl BorrowMut<NSObject> for UIWindowScene
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIResponder> for UIWindowScene
impl BorrowMut<UIResponder> for UIWindowScene
source§fn borrow_mut(&mut self) -> &mut UIResponder
fn borrow_mut(&mut self) -> &mut UIResponder
Mutably borrows from an owned value. Read more
source§impl BorrowMut<UIScene> for UIWindowScene
impl BorrowMut<UIScene> for UIWindowScene
source§fn borrow_mut(&mut self) -> &mut UIScene
fn borrow_mut(&mut self) -> &mut UIScene
Mutably borrows from an owned value. Read more
source§impl ClassType for UIWindowScene
impl ClassType for UIWindowScene
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UIWindowScene"
const NAME: &'static str = "UIWindowScene"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for UIWindowScene
impl Debug for UIWindowScene
source§impl Deref for UIWindowScene
impl Deref for UIWindowScene
source§impl DerefMut for UIWindowScene
impl DerefMut for UIWindowScene
source§impl Hash for UIWindowScene
impl Hash for UIWindowScene
source§impl NSObjectProtocol for UIWindowScene
impl NSObjectProtocol for UIWindowScene
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for UIWindowScene
impl PartialEq for UIWindowScene
source§fn eq(&self, other: &UIWindowScene) -> bool
fn eq(&self, other: &UIWindowScene) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
The Objective-C type-encoding for a reference of this type. Read more
source§impl UIResponderStandardEditActions for UIWindowScene
impl UIResponderStandardEditActions for UIWindowScene
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 )
Available on crate feature
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>)
source§impl UITraitChangeObservable for UIWindowScene
Available on crate feature UITraitCollection
only.
impl UITraitChangeObservable for UIWindowScene
Available on crate feature
UITraitCollection
only.unsafe fn unregisterForTraitChanges( &self, registration: &ProtocolObject<dyn UITraitChangeRegistration> )
source§impl UITraitEnvironment for UIWindowScene
Available on crate feature UITraitCollection
only.
impl UITraitEnvironment for UIWindowScene
Available on crate feature
UITraitCollection
only.fn traitCollection(&self) -> Retained<UITraitCollection>
source§unsafe fn traitCollectionDidChange(
&self,
previous_trait_collection: Option<&UITraitCollection>
)
unsafe fn traitCollectionDidChange( &self, previous_trait_collection: Option<&UITraitCollection> )
👎Deprecated: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
impl Eq for UIWindowScene
impl Message for UIWindowScene
impl StructuralPartialEq 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
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more