Trait objc2_game_controller::GCButtonElement

source ·
pub unsafe trait GCButtonElement: GCPhysicalInputElement {
    // Provided methods
    unsafe fn pressedInput(&self) -> Id<TodoProtocols>
       where Self: Sized + Message { ... }
    unsafe fn touchedInput(
        &self
    ) -> Option<Id<ProtocolObject<dyn GCTouchedStateInput>>>
       where Self: Sized + Message { ... }
}
Available on crate features GCButtonElement and GCPhysicalInputElement only.

Provided Methods§

source

unsafe fn pressedInput(&self) -> Id<TodoProtocols>
where Self: Sized + Message,

Available on crate features GCLinearInput and GCPressedStateInput only.
source

unsafe fn touchedInput( &self ) -> Option<Id<ProtocolObject<dyn GCTouchedStateInput>>>
where Self: Sized + Message,

Available on crate feature GCTouchedStateInput only.

Trait Implementations§

source§

impl ProtocolType for dyn GCButtonElement

source§

const NAME: &'static str = "GCButtonElement"

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 GCButtonElement

Implementations on Foreign Types§

source§

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

Implementors§