Struct objc2_game_controller::GCExtendedGamepadSnapshot

source ยท
#[repr(C)]
pub struct GCExtendedGamepadSnapshot { /* private fields */ }
๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController controllerWithExtendedGamepad] instead
Available on crate features GCExtendedGamepad and GCExtendedGamepadSnapshot and GCPhysicalInputProfile only.

Implementationsยง

sourceยง

impl GCExtendedGamepadSnapshot

source

pub unsafe fn snapshotData(&self) -> Retained<NSData>

๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController controllerWithExtendedGamepad] instead
source

pub unsafe fn setSnapshotData(&self, snapshot_data: &NSData)

๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController controllerWithExtendedGamepad] instead
source

pub unsafe fn initWithSnapshotData( this: Allocated<Self>, data: &NSData ) -> Retained<Self>

๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController controllerWithExtendedGamepad] instead
source

pub unsafe fn initWithController_snapshotData( this: Allocated<Self>, controller: &GCController, data: &NSData ) -> Retained<Self>

๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController controllerWithExtendedGamepad] instead
Available on crate feature GCController only.
sourceยง

impl GCExtendedGamepadSnapshot

Methods declared on superclass NSObject

source

pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>

source

pub unsafe fn new() -> Retained<Self>

Methods from Deref<Target = GCExtendedGamepad>ยง

source

pub unsafe fn controller(&self) -> Option<Retained<GCController>>

Available on crate feature GCController only.
source

pub unsafe fn valueChangedHandler(&self) -> GCExtendedGamepadValueChangedHandler

Available on crate features GCControllerElement and block2 only.
source

pub unsafe fn setValueChangedHandler( &self, value_changed_handler: GCExtendedGamepadValueChangedHandler )

Available on crate features GCControllerElement and block2 only.
source

pub unsafe fn saveSnapshot(&self) -> Retained<GCExtendedGamepadSnapshot>

๐Ÿ‘ŽDeprecated: GCExtendedGamepadSnapshot has been deprecated, use [GCController capture] instead
source

pub unsafe fn dpad(&self) -> Retained<GCControllerDirectionPad>

Available on crate features GCControllerDirectionPad and GCControllerElement only.
source

pub unsafe fn buttonA(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonB(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonX(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonY(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonMenu(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonOptions(&self) -> Option<Retained<GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn buttonHome(&self) -> Option<Retained<GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn leftThumbstick(&self) -> Retained<GCControllerDirectionPad>

Available on crate features GCControllerDirectionPad and GCControllerElement only.
source

pub unsafe fn rightThumbstick(&self) -> Retained<GCControllerDirectionPad>

Available on crate features GCControllerDirectionPad and GCControllerElement only.
source

pub unsafe fn leftShoulder(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn rightShoulder(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn leftTrigger(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn rightTrigger(&self) -> Retained<GCControllerButtonInput>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn leftThumbstickButton( &self ) -> Option<Retained<GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn rightThumbstickButton( &self ) -> Option<Retained<GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn setStateFromExtendedGamepad( &self, extended_gamepad: &GCExtendedGamepad )

Methods from Deref<Target = GCPhysicalInputProfile>ยง

source

pub unsafe fn device(&self) -> Option<Retained<ProtocolObject<dyn GCDevice>>>

Available on crate feature GCDevice only.
source

pub unsafe fn lastEventTimestamp(&self) -> NSTimeInterval

source

pub unsafe fn hasRemappedElements(&self) -> bool

source

pub unsafe fn valueDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<GCPhysicalInputProfile>, NonNull<GCControllerElement>)>

Available on crate features GCControllerElement and block2 only.
source

pub unsafe fn setValueDidChangeHandler( &self, value_did_change_handler: Option<&Block<dyn Fn(NonNull<GCPhysicalInputProfile>, NonNull<GCControllerElement>)>> )

Available on crate features GCControllerElement and block2 only.
source

pub unsafe fn elements( &self ) -> Retained<NSDictionary<NSString, GCControllerElement>>

Available on crate feature GCControllerElement only.
source

pub unsafe fn buttons( &self ) -> Retained<NSDictionary<NSString, GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn axes( &self ) -> Retained<NSDictionary<NSString, GCControllerAxisInput>>

Available on crate features GCControllerAxisInput and GCControllerElement only.
source

pub unsafe fn dpads( &self ) -> Retained<NSDictionary<NSString, GCControllerDirectionPad>>

Available on crate features GCControllerDirectionPad and GCControllerElement only.
source

pub unsafe fn touchpads( &self ) -> Retained<NSDictionary<NSString, GCControllerTouchpad>>

Available on crate features GCControllerElement and GCControllerTouchpad only.
source

pub unsafe fn allElements(&self) -> Retained<NSSet<GCControllerElement>>

Available on crate feature GCControllerElement only.
source

pub unsafe fn allButtons(&self) -> Retained<NSSet<GCControllerButtonInput>>

Available on crate features GCControllerButtonInput and GCControllerElement only.
source

pub unsafe fn allAxes(&self) -> Retained<NSSet<GCControllerAxisInput>>

Available on crate features GCControllerAxisInput and GCControllerElement only.
source

pub unsafe fn allDpads(&self) -> Retained<NSSet<GCControllerDirectionPad>>

Available on crate features GCControllerDirectionPad and GCControllerElement only.
source

pub unsafe fn allTouchpads(&self) -> Retained<NSSet<GCControllerTouchpad>>

Available on crate features GCControllerElement and GCControllerTouchpad only.
source

pub unsafe fn objectForKeyedSubscript( &self, key: &NSString ) -> Option<Retained<GCControllerElement>>

Available on crate feature GCControllerElement only.
source

pub unsafe fn capture(&self) -> Retained<Self>

source

pub unsafe fn setStateFromPhysicalInput( &self, physical_input: &GCPhysicalInputProfile )

source

pub unsafe fn mappedElementAliasForPhysicalInputName( &self, input_name: &NSString ) -> Retained<NSString>

source

pub unsafe fn mappedPhysicalInputNamesForElementAlias( &self, element_alias: &NSString ) -> Retained<NSSet<NSString>>

Methods from Deref<Target = NSObject>ยง

source

pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !

Handle messages the object doesnโ€™t recognize.

See Appleโ€™s documentation for details.

Methods from Deref<Target = AnyObject>ยง

source

pub fn class(&self) -> &'static AnyClass

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());
source

pub unsafe fn get_ivar<T>(&self, name: &str) -> &T
where T: Encode,

๐Ÿ‘ŽDeprecated: this is difficult to use correctly, use Ivar::load instead.

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.

source

pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut T
where T: Encode,

๐Ÿ‘ŽDeprecated: this is difficult to use correctly, use Ivar::load_mut instead.

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 GCExtendedGamepadSnapshot

sourceยง

fn as_mut(&mut self) -> &mut AnyObject

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<GCExtendedGamepad> for GCExtendedGamepadSnapshot

sourceยง

fn as_mut(&mut self) -> &mut GCExtendedGamepad

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<GCExtendedGamepadSnapshot> for GCExtendedGamepadSnapshot

sourceยง

fn as_mut(&mut self) -> &mut Self

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<GCPhysicalInputProfile> for GCExtendedGamepadSnapshot

sourceยง

fn as_mut(&mut self) -> &mut GCPhysicalInputProfile

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsMut<NSObject> for GCExtendedGamepadSnapshot

sourceยง

fn as_mut(&mut self) -> &mut NSObject

Converts this type into a mutable reference of the (usually inferred) input type.
sourceยง

impl AsRef<AnyObject> for GCExtendedGamepadSnapshot

sourceยง

fn as_ref(&self) -> &AnyObject

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<GCExtendedGamepad> for GCExtendedGamepadSnapshot

sourceยง

fn as_ref(&self) -> &GCExtendedGamepad

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<GCExtendedGamepadSnapshot> for GCExtendedGamepadSnapshot

sourceยง

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<GCPhysicalInputProfile> for GCExtendedGamepadSnapshot

sourceยง

fn as_ref(&self) -> &GCPhysicalInputProfile

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl AsRef<NSObject> for GCExtendedGamepadSnapshot

sourceยง

fn as_ref(&self) -> &NSObject

Converts this type into a shared reference of the (usually inferred) input type.
sourceยง

impl Borrow<AnyObject> for GCExtendedGamepadSnapshot

sourceยง

fn borrow(&self) -> &AnyObject

Immutably borrows from an owned value. Read more
sourceยง

impl Borrow<GCExtendedGamepad> for GCExtendedGamepadSnapshot

sourceยง

fn borrow(&self) -> &GCExtendedGamepad

Immutably borrows from an owned value. Read more
sourceยง

impl Borrow<GCPhysicalInputProfile> for GCExtendedGamepadSnapshot

sourceยง

fn borrow(&self) -> &GCPhysicalInputProfile

Immutably borrows from an owned value. Read more
sourceยง

impl Borrow<NSObject> for GCExtendedGamepadSnapshot

sourceยง

fn borrow(&self) -> &NSObject

Immutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<AnyObject> for GCExtendedGamepadSnapshot

sourceยง

fn borrow_mut(&mut self) -> &mut AnyObject

Mutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<GCExtendedGamepad> for GCExtendedGamepadSnapshot

sourceยง

fn borrow_mut(&mut self) -> &mut GCExtendedGamepad

Mutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<GCPhysicalInputProfile> for GCExtendedGamepadSnapshot

sourceยง

fn borrow_mut(&mut self) -> &mut GCPhysicalInputProfile

Mutably borrows from an owned value. Read more
sourceยง

impl BorrowMut<NSObject> for GCExtendedGamepadSnapshot

sourceยง

fn borrow_mut(&mut self) -> &mut NSObject

Mutably borrows from an owned value. Read more
sourceยง

impl ClassType for GCExtendedGamepadSnapshot

ยง

type Super = GCExtendedGamepad

The superclass of this class. Read more
ยง

type Mutability = InteriorMutable

Whether the type is mutable or immutable. Read more
sourceยง

const NAME: &'static str = "GCExtendedGamepadSnapshot"

The name of the Objective-C class that this type represents. Read more
sourceยง

fn class() -> &'static AnyClass

Get a reference to the Objective-C class that this type represents. Read more
sourceยง

fn as_super(&self) -> &Self::Super

Get an immutable reference to the superclass.
sourceยง

fn as_super_mut(&mut self) -> &mut Self::Super

Get a mutable reference to the superclass.
sourceยง

fn retain(&self) -> Retained<Self>
where Self: IsRetainable + Sized,

Increment the reference count of the receiver. Read more
sourceยง

fn alloc() -> Allocated<Self>

Allocate a new instance of the class. Read more
sourceยง

impl Debug for GCExtendedGamepadSnapshot

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl Deref for GCExtendedGamepadSnapshot

ยง

type Target = GCExtendedGamepad

The resulting type after dereferencing.
sourceยง

fn deref(&self) -> &Self::Target

Dereferences the value.
sourceยง

impl DerefMut for GCExtendedGamepadSnapshot

sourceยง

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
sourceยง

impl Hash for GCExtendedGamepadSnapshot

sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 ยท sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
sourceยง

impl NSObjectProtocol for GCExtendedGamepadSnapshot

sourceยง

fn isEqual(&self, other: &AnyObject) -> bool
where Self: Sized + Message,

Check whether the object is equal to an arbitrary other object. Read more
sourceยง

fn hash(&self) -> usize
where Self: Sized + Message,

An integer that can be used as a table address in a hash table structure. Read more
sourceยง

fn isKindOfClass(&self, cls: &AnyClass) -> bool
where Self: Sized + Message,

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
where T: ClassType, Self: Sized + Message,

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
where Self: Sized + Message,

Check if the object is an instance of a specific class, without checking subclasses. Read more
sourceยง

fn respondsToSelector(&self, aSelector: Sel) -> bool
where Self: Sized + Message,

Check whether the object implements or inherits a method with the given selector. Read more
sourceยง

fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
where Self: Sized + Message,

Check whether the object conforms to a given protocol. Read more
sourceยง

fn description(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object. Read more
sourceยง

fn debugDescription(&self) -> Retained<NSObject>
where Self: Sized + Message,

A textual representation of the object to use when debugging. Read more
sourceยง

fn isProxy(&self) -> bool
where Self: Sized + Message,

Check whether the receiver is a subclass of the NSProxy root class instead of the usual NSObject. Read more
sourceยง

fn retainCount(&self) -> usize
where Self: Sized + Message,

The reference count of the object. Read more
sourceยง

impl PartialEq for GCExtendedGamepadSnapshot

sourceยง

fn eq(&self, other: &GCExtendedGamepadSnapshot) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
sourceยง

impl RefEncode for GCExtendedGamepadSnapshot

sourceยง

const ENCODING_REF: Encoding = <GCExtendedGamepad as ::objc2::RefEncode>::ENCODING_REF

The Objective-C type-encoding for a reference of this type. Read more
sourceยง

impl Eq for GCExtendedGamepadSnapshot

sourceยง

impl Message for GCExtendedGamepadSnapshot

sourceยง

impl StructuralPartialEq for GCExtendedGamepadSnapshot

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> CounterpartOrSelf for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityCounterpartOrSelf<T>,

ยง

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

The mutable counterpart of the type, or Self if the type has no mutable counterpart. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
sourceยง

impl<T> AutoreleaseSafe for T
where T: ?Sized,

sourceยง

impl<T> IsAllocableAnyThread for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsAllocableAnyThread,

sourceยง

impl<T> IsIdCloneable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsIdCloneable,

sourceยง

impl<T> IsRetainable for T
where T: ClassType + ?Sized, <T as ClassType>::Mutability: MutabilityIsRetainable,