pub trait UIEventMethods<D>where
D: DomTypes,{
// Required methods
fn GetView(&self) -> Option<Root<Dom<<D as DomTypes>::Window>>>;
fn Detail(&self) -> i32;
fn InitUIEvent(
&self,
typeArg: DOMString,
bubblesArg: bool,
cancelableArg: bool,
viewArg: Option<&<D as DomTypes>::Window>,
detailArg: i32,
);
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &<D as DomTypes>::Window,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &UIEventInit<D>,
) -> Result<Root<Dom<<D as DomTypes>::UIEvent>>, Error>;
}
Required Methods§
fn GetView(&self) -> Option<Root<Dom<<D as DomTypes>::Window>>>
fn Detail(&self) -> i32
fn InitUIEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&<D as DomTypes>::Window>, detailArg: i32, )
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &UIEventInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::UIEvent>>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.