Trait icrate::GameController::GCSwitchPositionInput
source · pub unsafe trait GCSwitchPositionInput: NSObjectProtocol {
// Provided methods
unsafe fn positionDidChangeHandler(
&self
) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>
where Self: Sized + Message { ... }
unsafe fn setPositionDidChangeHandler(
&self,
position_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>>
)
where Self: Sized + Message { ... }
unsafe fn position(&self) -> NSInteger
where Self: Sized + Message { ... }
unsafe fn positionRange(&self) -> NSRange
where Self: Sized + Message { ... }
unsafe fn isSequential(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn canWrap(&self) -> bool
where Self: Sized + Message { ... }
unsafe fn lastPositionTimestamp(&self) -> NSTimeInterval
where Self: Sized + Message { ... }
unsafe fn lastPositionLatency(&self) -> NSTimeInterval
where Self: Sized + Message { ... }
unsafe fn sources(
&self
) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message { ... }
}
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
Available on crate feature
GameController
only.Provided Methods§
unsafe fn positionDidChangeHandler( &self ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn setPositionDidChangeHandler( &self, position_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>> )
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn position(&self) -> NSInteger
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn positionRange(&self) -> NSRange
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn isSequential(&self) -> bool
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn canWrap(&self) -> bool
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn lastPositionTimestamp(&self) -> NSTimeInterval
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn lastPositionLatency(&self) -> NSTimeInterval
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
👎Deprecated:
icrate::GameController
has been moved to objc2-game-controller
Available on crate feature
Foundation_NSSet
only.