Trait objc2_game_controller::GCAxisInput

source ·
pub unsafe trait GCAxisInput: NSObjectProtocol {
    // Provided methods
    unsafe fn valueDidChangeHandler(
        &self
    ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, 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 GCAxisInput>>, 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
    ) -> Retained<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
       where Self: Sized + Message { ... }
}
Available on crate feature GCAxisInput only.

Provided Methods§

source

unsafe fn valueDidChangeHandler( &self ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCAxisInput>>, 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 GCAxisInput>>, 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 ) -> Retained<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
where Self: Sized + Message,

Available on crate feature GCPhysicalInputSource only.

Trait Implementations§

source§

impl ProtocolType for dyn GCAxisInput

source§

const NAME: &'static str = "GCAxisInput"

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

Implementations on Foreign Types§

source§

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

Implementors§