pub trait CustomEventMethods {
    // Required methods
    fn Detail(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn InitCustomEvent(
        &self,
        cx: SafeJSContext,
        type_: DOMString,
        bubbles: bool,
        cancelable: bool,
        detail: HandleValue<'_>,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: RootedTraceableBox<CustomEventInit>,
    ) -> Root<Dom<CustomEvent>>;
}

Required Methods§

source

fn Detail(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

source

fn InitCustomEvent( &self, cx: SafeJSContext, type_: DOMString, bubbles: bool, cancelable: bool, detail: HandleValue<'_>, )

source

fn IsTrusted(&self) -> bool

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: RootedTraceableBox<CustomEventInit>, ) -> Root<Dom<CustomEvent>>

Object Safety§

This trait is not object safe.

Implementors§