pub unsafe trait GCSwitchPositionInput: NSObjectProtocol {
// Provided methods
unsafe fn positionDidChangeHandler(
&self
) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger)>
where Self: Sized + Message { ... }
unsafe fn setPositionDidChangeHandler(
&self,
position_did_change_handler: Option<&Block<dyn Fn(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 { ... }
}
Available on crate feature
GCSwitchPositionInput
only.Provided Methods§
unsafe fn positionDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger)>
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn setPositionDidChangeHandler( &self, position_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCSwitchPositionInput>>, NSInteger)>> )
Available on crate features
GCPhysicalInputElement
and block2
only.unsafe fn position(&self) -> NSInteger
unsafe fn positionRange(&self) -> NSRange
unsafe fn isSequential(&self) -> bool
unsafe fn canWrap(&self) -> bool
unsafe fn lastPositionTimestamp(&self) -> NSTimeInterval
unsafe fn lastPositionLatency(&self) -> NSTimeInterval
unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
Available on crate feature
GCPhysicalInputSource
only.