pub trait UIEventMethods<D: DomTypes> {
    // Required methods
    fn GetView(&self) -> Option<DomRoot<D::Window>>;
    fn Detail(&self) -> i32;
    fn InitUIEvent(
        &self,
        typeArg: DOMString,
        bubblesArg: bool,
        cancelableArg: bool,
        viewArg: Option<&D::Window>,
        detailArg: i32,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &UIEventInit<D>,
    ) -> Fallible<DomRoot<D::UIEvent>>;
}

Required Methods§

Source

fn GetView(&self) -> Option<DomRoot<D::Window>>

Source

fn Detail(&self) -> i32

Source

fn InitUIEvent( &self, typeArg: DOMString, bubblesArg: bool, cancelableArg: bool, viewArg: Option<&D::Window>, detailArg: i32, )

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &UIEventInit<D>, ) -> Fallible<DomRoot<D::UIEvent>>

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.

Implementors§