Struct objc2_ui_kit::UIAccessibilityElement
source · #[repr(C)]pub struct UIAccessibilityElement { /* private fields */ }
Available on crate features
UIAccessibilityElement
and UIResponder
only.Implementations§
source§impl UIAccessibilityElement
impl UIAccessibilityElement
pub unsafe fn initWithAccessibilityContainer( this: Allocated<Self>, container: &AnyObject ) -> Retained<Self>
pub unsafe fn accessibilityContainer(&self) -> Option<Retained<AnyObject>>
pub unsafe fn setAccessibilityContainer( &self, accessibility_container: Option<&AnyObject> )
pub unsafe fn isAccessibilityElement(&self) -> bool
pub unsafe fn setIsAccessibilityElement(&self, is_accessibility_element: bool)
pub unsafe fn accessibilityLabel(&self) -> Option<Retained<NSString>>
pub unsafe fn setAccessibilityLabel( &self, accessibility_label: Option<&NSString> )
pub unsafe fn accessibilityHint(&self) -> Option<Retained<NSString>>
pub unsafe fn setAccessibilityHint(&self, accessibility_hint: Option<&NSString>)
pub unsafe fn accessibilityValue(&self) -> Option<Retained<NSString>>
pub unsafe fn setAccessibilityValue( &self, accessibility_value: Option<&NSString> )
pub unsafe fn accessibilityFrame(&self) -> CGRect
pub unsafe fn setAccessibilityFrame(&self, accessibility_frame: CGRect)
pub unsafe fn accessibilityTraits(&self) -> UIAccessibilityTraits
Available on crate feature
UIAccessibilityConstants
only.pub unsafe fn setAccessibilityTraits( &self, accessibility_traits: UIAccessibilityTraits )
Available on crate feature
UIAccessibilityConstants
only.pub unsafe fn accessibilityFrameInContainerSpace(&self) -> CGRect
pub unsafe fn setAccessibilityFrameInContainerSpace( &self, accessibility_frame_in_container_space: CGRect )
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 UIAccessibilityElement
impl AsMut<AnyObject> for UIAccessibilityElement
source§impl AsMut<NSObject> for UIAccessibilityElement
impl AsMut<NSObject> for UIAccessibilityElement
source§impl AsMut<UIResponder> for UIAccessibilityElement
impl AsMut<UIResponder> for UIAccessibilityElement
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 AsRef<AnyObject> for UIAccessibilityElement
impl AsRef<AnyObject> for UIAccessibilityElement
source§impl AsRef<NSObject> for UIAccessibilityElement
impl AsRef<NSObject> for UIAccessibilityElement
source§impl AsRef<UIResponder> for UIAccessibilityElement
impl AsRef<UIResponder> for UIAccessibilityElement
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 Borrow<AnyObject> for UIAccessibilityElement
impl Borrow<AnyObject> for UIAccessibilityElement
source§impl Borrow<NSObject> for UIAccessibilityElement
impl Borrow<NSObject> for UIAccessibilityElement
source§impl Borrow<UIResponder> for UIAccessibilityElement
impl Borrow<UIResponder> for UIAccessibilityElement
source§fn borrow(&self) -> &UIResponder
fn borrow(&self) -> &UIResponder
Immutably borrows from an owned value. Read more
source§impl BorrowMut<AnyObject> for UIAccessibilityElement
impl BorrowMut<AnyObject> for UIAccessibilityElement
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 UIAccessibilityElement
impl BorrowMut<NSObject> for UIAccessibilityElement
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 UIAccessibilityElement
impl BorrowMut<UIResponder> for UIAccessibilityElement
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 ClassType for UIAccessibilityElement
impl ClassType for UIAccessibilityElement
§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 = "UIAccessibilityElement"
const NAME: &'static str = "UIAccessibilityElement"
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 UIAccessibilityElement
impl Debug for UIAccessibilityElement
source§impl Deref for UIAccessibilityElement
impl Deref for UIAccessibilityElement
source§impl DerefMut for UIAccessibilityElement
impl DerefMut for UIAccessibilityElement
source§impl Hash for UIAccessibilityElement
impl Hash for UIAccessibilityElement
source§impl NSObjectProtocol for UIAccessibilityElement
impl NSObjectProtocol for UIAccessibilityElement
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 UIAccessibilityElement
impl PartialEq for UIAccessibilityElement
source§fn eq(&self, other: &UIAccessibilityElement) -> bool
fn eq(&self, other: &UIAccessibilityElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for UIAccessibilityElement
impl RefEncode for UIAccessibilityElement
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 UIAccessibilityIdentification for UIAccessibilityElement
Available on crate feature UIAccessibilityIdentification
only.
impl UIAccessibilityIdentification for UIAccessibilityElement
Available on crate feature
UIAccessibilityIdentification
only.source§impl UIResponderStandardEditActions for UIAccessibilityElement
impl UIResponderStandardEditActions for UIAccessibilityElement
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 UIAccessibilityElement
impl Message for UIAccessibilityElement
impl StructuralPartialEq for UIAccessibilityElement
Auto Trait Implementations§
impl !Freeze for UIAccessibilityElement
impl !RefUnwindSafe for UIAccessibilityElement
impl !Send for UIAccessibilityElement
impl !Sync for UIAccessibilityElement
impl !Unpin for UIAccessibilityElement
impl !UnwindSafe for UIAccessibilityElement
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