GCPhysicalInputElement

Trait GCPhysicalInputElement 

Source
pub unsafe trait GCPhysicalInputElement: NSObjectProtocol {
    // Provided methods
    unsafe fn aliases(&self) -> Retained<NSSet<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn localizedName(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
    unsafe fn sfSymbolsName(&self) -> Option<Retained<NSString>>
       where Self: Sized + Message { ... }
}
Available on crate feature GCPhysicalInputElement only.
Expand description

The GCPhysicalInputElementprotocol is a base protocol for specific types of elements that represent controls on a device.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn aliases(&self) -> Retained<NSSet<NSString>>
where Self: Sized + Message,

The set of aliases that can be used to access this element with keyed subscript notation.

Source

unsafe fn localizedName(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

The element’s localized display name.

This is the string that your app should display in any on-screen messages instructing the user to interact with the control. For example:

“Press (buttonA.localizedName) to jump!”

Do not cache this value - it can change when the user remaps controls.

Source

unsafe fn sfSymbolsName(&self) -> Option<Retained<NSString>>
where Self: Sized + Message,

The SF Symbols name for the element.

Trait Implementations§

Source§

impl ProtocolType for dyn GCPhysicalInputElement

Source§

const NAME: &'static str = "GCPhysicalInputElement"

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 GCPhysicalInputElement

Implementations on Foreign Types§

Source§

impl<T> GCPhysicalInputElement for ProtocolObject<T>

Implementors§

Source§

impl GCPhysicalInputElement for GCGearShifterElement

Available on crate feature GCGearShifterElement only.
Source§

impl GCPhysicalInputElement for GCSteeringWheelElement

Available on crate feature GCSteeringWheelElement only.