Trait objc2_game_controller::GCPressedStateInput

source ·
pub unsafe trait GCPressedStateInput: NSObjectProtocol {
    // Provided methods
    unsafe fn pressedDidChangeHandler(
        &self
    ) -> *mut Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>
       where Self: Sized + Message { ... }
    unsafe fn setPressedDidChangeHandler(
        &self,
        pressed_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>>
    )
       where Self: Sized + Message { ... }
    unsafe fn isPressed(&self) -> bool
       where Self: Sized + Message { ... }
    unsafe fn lastPressedStateTimestamp(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn lastPressedStateLatency(&self) -> NSTimeInterval
       where Self: Sized + Message { ... }
    unsafe fn sources(
        &self
    ) -> Id<NSSet<ProtocolObject<dyn GCPhysicalInputSource>>>
       where Self: Sized + Message { ... }
}
Available on crate feature GCPressedStateInput only.

Provided Methods§

source

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

Available on crate features GCPhysicalInputElement and block2 only.
source

unsafe fn setPressedDidChangeHandler( &self, pressed_did_change_handler: Option<&Block<dyn Fn(NonNull<ProtocolObject<dyn GCPhysicalInputElement>>, NonNull<ProtocolObject<dyn GCPressedStateInput>>, Bool)>> )
where Self: Sized + Message,

Available on crate features GCPhysicalInputElement and block2 only.
source

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

source

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

source

unsafe fn lastPressedStateLatency(&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 GCPressedStateInput

source§

const NAME: &'static str = "GCPressedStateInput"

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 GCPressedStateInput

Implementations on Foreign Types§

source§

impl<T> GCPressedStateInput for ProtocolObject<T>

Implementors§