Trait 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ยง

Source

unsafe fn positionDidChangeHandler( &self, ) -> *mut Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

unsafe fn setPositionDidChangeHandler( &self, position_did_change_handler: Option<&Block<(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger), ()>>, )
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

unsafe fn position(&self) -> NSInteger
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

unsafe fn positionRange(&self) -> NSRange
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

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

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

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

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

unsafe fn lastPositionTimestamp(&self) -> NSTimeInterval
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

unsafe fn lastPositionLatency(&self) -> NSTimeInterval
where Self: Sized + Message,

๐Ÿ‘ŽDeprecated: icrate::GameController has been moved to objc2-game-controller
Source

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 Foundation_NSSet only.

Trait Implementationsยง

Sourceยง

impl ProtocolType for dyn GCSwitchPositionInput

Sourceยง

const NAME: &'static str = "GCSwitchPositionInput"

The name of the Objective-C protocol that this type represents.
Sourceยง

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Sourceยง

impl<T> ImplementedBy<T> for dyn GCSwitchPositionInput

Implementations on Foreign Typesยง

Sourceยง

impl<T> GCSwitchPositionInput for ProtocolObject<T>

Implementorsยง