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§

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§