Struct script::dom::gamepadevent::GamepadEvent
source · Fields
event: Event
gamepad: Dom<Gamepad>
Implementations
sourceimpl GamepadEvent
impl GamepadEvent
fn __assert_parent_type(&self)
sourceimpl GamepadEvent
impl GamepadEvent
fn new_inherited(gamepad: &Gamepad) -> GamepadEvent
pub fn new(
global: &GlobalScope,
type_: Atom,
bubbles: bool,
cancelable: bool,
gamepad: &Gamepad
) -> Root<Dom<GamepadEvent>>
pub fn new_with_type(
global: &GlobalScope,
event_type: GamepadEventType,
gamepad: &Gamepad
) -> Root<Dom<GamepadEvent>>
pub fn Constructor(
window: &Window,
type_: DOMString,
init: &GamepadEventInit
) -> Result<Root<Dom<GamepadEvent>>, Error>
Trait Implementations
sourceimpl Castable for GamepadEvent
impl Castable for GamepadEvent
sourcefn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
fn is<T>(&self) -> boolwhere
T: DerivedFrom<Self>,
Check whether a DOM object implements one of its deriving interfaces.
sourcefn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
fn upcast<T>(&self) -> &Twhere
T: Castable,
Self: DerivedFrom<T>,
Cast a DOM object upwards to one of the interfaces it derives from.
sourcefn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
fn downcast<T>(&self) -> Option<&T>where
T: DerivedFrom<Self>,
Cast a DOM object downwards to one of the interfaces it might implement.
sourceimpl DomObject for GamepadEvent
impl DomObject for GamepadEvent
sourceimpl DomObjectWrap for GamepadEvent
impl DomObjectWrap for GamepadEvent
sourceconst WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GamepadEventBinding::GamepadEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gamepadevent::GamepadEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gamepadevent::GamepadEvent>>}
const WRAP: unsafe fn(_: SafeJSContext, _: &GlobalScope, _: Box<Self>) -> Root<Dom<Self>> = {dom::bindings::codegen::Bindings::GamepadEventBinding::GamepadEventBinding::Wrap as for<'a> unsafe fn(script_runtime::JSContext, &'a dom::globalscope::GlobalScope, std::boxed::Box<dom::gamepadevent::GamepadEvent>) -> dom::bindings::root::Root<dom::bindings::root::Dom<dom::gamepadevent::GamepadEvent>>}
Function pointer to the general wrap function type
sourceimpl GamepadEventMethods for GamepadEvent
impl GamepadEventMethods for GamepadEvent
sourceimpl HasParent for GamepadEvent
impl HasParent for GamepadEvent
sourceimpl IDLInterface for GamepadEvent
impl IDLInterface for GamepadEvent
sourceimpl JSTraceable for GamepadEvent
impl JSTraceable for GamepadEvent
sourceimpl MallocSizeOf for GamepadEvent
impl MallocSizeOf for GamepadEvent
sourcefn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself. Read more
sourceimpl MutDomObject for GamepadEvent
impl MutDomObject for GamepadEvent
sourceunsafe fn init_reflector(&self, obj: *mut JSObject)
unsafe fn init_reflector(&self, obj: *mut JSObject)
Initializes the Reflector
sourceimpl PartialEq<GamepadEvent> for GamepadEvent
impl PartialEq<GamepadEvent> for GamepadEvent
sourcefn eq(&self, other: &GamepadEvent) -> bool
fn eq(&self, other: &GamepadEvent) -> bool
sourceimpl ToJSValConvertible for GamepadEvent
impl ToJSValConvertible for GamepadEvent
sourceunsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>)
Convert
self
to a JSVal
. JSAPI failure causes a panic.impl DerivedFrom<Event> for GamepadEvent
Auto Trait Implementations
impl !RefUnwindSafe for GamepadEvent
impl !Send for GamepadEvent
impl !Sync for GamepadEvent
impl Unpin for GamepadEvent
impl !UnwindSafe for GamepadEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
sourcefn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
sourceimpl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
sourcefn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert