Trait script::dom::bindings::codegen::Bindings::CustomEventBinding::CustomEvent_Binding::CustomEventMethods
source · 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§
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>>
Object Safety§
This trait is not object safe.