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§

source

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

Available on crate features GCPhysicalInputElement and block2 only.
source

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,

Available on crate features GCPhysicalInputElement and block2 only.
source

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

source

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

source

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

source

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

source

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

source

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

source

unsafe fn sources(&self) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message,

Available on crate feature GCPhysicalInputSource 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§