Struct objc2_ui_kit::UIScene
source · #[repr(C)]pub struct UIScene { /* private fields */ }Available on crate features
UIResponder and UIScene only.Implementations§
source§impl UIScene
impl UIScene
PointerLockState
pub unsafe fn pointerLockState(&self) -> Option<Retained<UIPointerLockState>>
Available on crate feature
UIPointerLockState only.source§impl UIScene
impl 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.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.source§impl UIScene
impl UIScene
UISceneEnhancedStateRestoration
pub unsafe fn extendStateRestoration(&self)
Available on crate feature
UISceneEnhancedStateRestoration only.pub unsafe fn completeStateRestoration(&self)
Available on crate feature
UISceneEnhancedStateRestoration only.impl UIScene
This impl block contains no items.
AVAudioSession
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<UIResponder> for UIScene
impl AsMut<UIResponder> for UIScene
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
Available on crate feature UIWindowScene only.
impl AsMut<UIScene> for UIWindowScene
Available on crate feature
UIWindowScene only.source§impl AsRef<UIResponder> for UIScene
impl AsRef<UIResponder> for UIScene
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
Available on crate feature UIWindowScene only.
impl AsRef<UIScene> for UIWindowScene
Available on crate feature
UIWindowScene only.source§impl Borrow<UIResponder> for UIScene
impl Borrow<UIResponder> for UIScene
source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Immutably borrows from an owned value. Read more
source§impl Borrow<UIScene> for UIWindowScene
Available on crate feature UIWindowScene only.
impl Borrow<UIScene> for UIWindowScene
Available on crate feature
UIWindowScene only.source§impl BorrowMut<AnyObject> for UIScene
impl BorrowMut<AnyObject> for UIScene
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 UIScene
impl BorrowMut<NSObject> for UIScene
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 UIScene
impl BorrowMut<UIResponder> for UIScene
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
Available on crate feature UIWindowScene only.
impl BorrowMut<UIScene> for UIWindowScene
Available on crate feature
UIWindowScene only.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 UIScene
impl ClassType for UIScene
§type Super = UIResponder
type Super = UIResponder
The superclass of this class. Read more
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UIScene"
const NAME: &'static str = "UIScene"
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 NSObjectProtocol for UIScene
impl NSObjectProtocol for UIScene
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 UIScene
impl PartialEq for UIScene
source§impl RefEncode for UIScene
impl RefEncode for UIScene
source§const ENCODING_REF: Encoding = <UIResponder as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <UIResponder as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
source§impl UIResponderStandardEditActions for UIScene
impl UIResponderStandardEditActions for UIScene
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>)
impl Eq for UIScene
impl Message for UIScene
impl StructuralPartialEq for UIScene
Auto Trait Implementations§
impl !Freeze for UIScene
impl !RefUnwindSafe for UIScene
impl !Send for UIScene
impl !Sync for UIScene
impl !Unpin for UIScene
impl !UnwindSafe for UIScene
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