Trait objc2_game_controller::GCLinearInput

source ·
pub unsafe trait GCLinearInput: NSObjectProtocol {
    // Provided methods
    unsafe fn valueDidChangeHandler(
        &self
    ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCLinearInput>>, c_float)>
       where Self: Sized + Message { ... }
    unsafe fn setValueDidChangeHandler(
        &self,
        value_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCLinearInput>>, c_float)>>
    )
       where Self: Sized + Message { ... }
    unsafe fn value(&self) -> c_float
       where Self: Sized + Message { ... }
    unsafe fn isAnalog(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn canWrap(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn lastValueTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastValueLatency(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn sources(
        &self
    ) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
       where Self: Sized + Message { ... }
}
Available on crate feature GCLinearInput only.

Provided Methods§

source

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

Available on crate features GCPhysicalInputElement and block2 only.
source

unsafe fn setValueDidChangeHandler( &self, value_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCLinearInput>>, c_float)>> )
where Self: Sized + Message,

Available on crate features GCPhysicalInputElement and block2 only.
source

unsafe fn value(&self) -> c_float
where Self: Sized + Message,

source

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

source

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

source

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

source

unsafe fn lastValueLatency(&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 GCLinearInput

source§

const NAME: &'static str = "GCLinearInput"

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 GCLinearInput
where T: ?Sized + Message + GCLinearInput,

Implementations on Foreign Types§

source§

impl<T> GCLinearInput for ProtocolObject<T>
where T: ?Sized + GCLinearInput,

Implementors§