[][src]Struct web_sys::GamepadButtonEvent

#[repr(transparent)]pub struct GamepadButtonEvent { /* fields omitted */ }

The GamepadButtonEvent class.

MDN Documentation

This API requires the following crate features to be activated: GamepadButtonEvent

Implementations

impl GamepadButtonEvent[src]

pub fn button(&self) -> u32[src]

Getter for the button field of this object.

MDN Documentation

This API requires the following crate features to be activated: GamepadButtonEvent

impl GamepadButtonEvent[src]

pub fn new(type_: &str) -> Result<GamepadButtonEvent, JsValue>[src]

The new GamepadButtonEvent(..) constructor, creating a new instance of GamepadButtonEvent.

MDN Documentation

This API requires the following crate features to be activated: GamepadButtonEvent

impl GamepadButtonEvent[src]

pub fn new_with_event_init_dict(
    type_: &str,
    event_init_dict: &GamepadButtonEventInit
) -> Result<GamepadButtonEvent, JsValue>
[src]

The new GamepadButtonEvent(..) constructor, creating a new instance of GamepadButtonEvent.

MDN Documentation

This API requires the following crate features to be activated: GamepadButtonEvent, GamepadButtonEventInit

Methods from Deref<Target = GamepadEvent>

pub fn gamepad(&self) -> Option<Gamepad>[src]

Getter for the gamepad field of this object.

MDN Documentation

This API requires the following crate features to be activated: Gamepad, GamepadEvent

Trait Implementations

impl AsRef<Event> for GamepadButtonEvent[src]

impl AsRef<GamepadButtonEvent> for GamepadButtonEvent[src]

impl AsRef<GamepadEvent> for GamepadButtonEvent[src]

impl AsRef<JsValue> for GamepadButtonEvent[src]

impl AsRef<Object> for GamepadButtonEvent[src]

impl Clone for GamepadButtonEvent[src]

impl Debug for GamepadButtonEvent[src]

impl Deref for GamepadButtonEvent[src]

type Target = GamepadEvent

The resulting type after dereferencing.

impl Eq for GamepadButtonEvent[src]

impl From<GamepadButtonEvent> for JsValue[src]

impl From<GamepadButtonEvent> for GamepadEvent[src]

impl From<GamepadButtonEvent> for Event[src]

impl From<GamepadButtonEvent> for Object[src]

impl From<JsValue> for GamepadButtonEvent[src]

impl FromWasmAbi for GamepadButtonEvent[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for GamepadButtonEvent[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a GamepadButtonEvent[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for GamepadButtonEvent[src]

impl OptionFromWasmAbi for GamepadButtonEvent[src]

impl OptionIntoWasmAbi for GamepadButtonEvent[src]

impl<'a> OptionIntoWasmAbi for &'a GamepadButtonEvent[src]

impl PartialEq<GamepadButtonEvent> for GamepadButtonEvent[src]

impl RefFromWasmAbi for GamepadButtonEvent[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<GamepadButtonEvent>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for GamepadButtonEvent[src]

impl StructuralPartialEq for GamepadButtonEvent[src]

impl WasmDescribe for GamepadButtonEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.