Trait GCSwitchElement

Source
pub unsafe trait GCSwitchElement: GCPhysicalInputElement {
    // Provided method
    unsafe fn positionInput(
        &self,
    ) -> Retained<ProtocolObject<dyn GCSwitchPositionInput>>
       where Self: Sized + Message { ... }
}
Available on crate features GCPhysicalInputElement and GCSwitchElement only.
Expand description

An object conforming to GCSwitchElementrepresents a latching switch. A switch may be in one of several positions, and remains in its last position after the user stops interacting with it.

See also Apple’s documentation

Provided Methods§

Source

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

Available on crate feature GCSwitchPositionInput only.

Get the input containing the absolute position of the switch.

Trait Implementations§

Source§

impl ProtocolType for dyn GCSwitchElement

Source§

const NAME: &'static str = "GCSwitchElement"

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 GCSwitchElement

Implementations on Foreign Types§

Source§

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

Implementors§