Trait script::dom::bindings::codegen::Bindings::GamepadEventBinding::GamepadEvent_Binding::GamepadEventMethods
source · pub trait GamepadEventMethods<D: DomTypes> {
// Required methods
fn Gamepad(&self) -> Root<Dom<Gamepad>>;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &GamepadEventInit,
) -> Result<Root<Dom<GamepadEvent>>, Error>;
}
Required Methods§
fn Gamepad(&self) -> Root<Dom<Gamepad>>
fn IsTrusted(&self) -> bool
fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &GamepadEventInit, ) -> Result<Root<Dom<GamepadEvent>>, Error>
Object Safety§
This trait is not object safe.