GCAxisElement

Trait GCAxisElement 

Source
pub unsafe trait GCAxisElement: GCPhysicalInputElement {
    // Provided methods
    unsafe fn absoluteInput(
        &self,
    ) -> Option<Retained<ProtocolObject<dyn GCAxisInput>>>
       where Self: Sized + Message { ... }
    unsafe fn relativeInput(
        &self,
    ) -> Retained<ProtocolObject<dyn GCRelativeInput>>
       where Self: Sized + Message { ... }
}
Available on crate features GCAxisElement and GCPhysicalInputElement only.
Expand description

Provided Methods§

Source

unsafe fn absoluteInput( &self, ) -> Option<Retained<ProtocolObject<dyn GCAxisInput>>>
where Self: Sized + Message,

Available on crate feature GCAxisInput only.

The input reporting the value of the axis as the position between a lower and upper bound, if available.

Source

unsafe fn relativeInput(&self) -> Retained<ProtocolObject<dyn GCRelativeInput>>
where Self: Sized + Message,

Available on crate feature GCRelativeInput only.

The input reporting axis values as the change (delta) since the last event.

Certain kinds of axis elements are only able to report relative values. The tracking of a computer mouse, for example, has no fixed origin - only the change in position since the last event is reported. Some freely-rotating dials may also only report a value indicating which direction the dial was turned.

Trait Implementations§

Source§

impl ProtocolType for dyn GCAxisElement

Source§

const NAME: &'static str = "GCAxisElement"

The name of the Objective-C protocol that this type represents. Read more
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 GCAxisElement
where T: ?Sized + Message + GCAxisElement,

Implementations on Foreign Types§

Source§

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

Implementors§

Source§

impl GCAxisElement for GCSteeringWheelElement

Available on crate feature GCSteeringWheelElement only.