script::dom::bindings::codegen::Bindings::EventBinding::Event_Binding

Trait EventMethods

Source
pub trait EventMethods<D>
where D: DomTypes,
{
Show 21 methods // Required methods fn Type(&self) -> DOMString; fn GetTarget(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>; fn GetSrcElement(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>; fn GetCurrentTarget( &self, ) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>; fn ComposedPath(&self) -> Vec<Root<Dom<<D as DomTypes>::EventTarget>>>; fn EventPhase(&self) -> u16; fn StopPropagation(&self); fn CancelBubble(&self) -> bool; fn SetCancelBubble(&self, value: bool); fn StopImmediatePropagation(&self); fn Bubbles(&self) -> bool; fn Cancelable(&self) -> bool; fn ReturnValue(&self) -> bool; fn SetReturnValue(&self, value: bool); fn PreventDefault(&self); fn DefaultPrevented(&self) -> bool; fn Composed(&self) -> bool; fn IsTrusted(&self) -> bool; fn TimeStamp(&self) -> Finite<f64>; fn InitEvent(&self, type_: DOMString, bubbles: bool, cancelable: bool); fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &EventInit, ) -> Result<Root<Dom<<D as DomTypes>::Event>>, Error>;
}

Required Methods§

Source

fn Type(&self) -> DOMString

Source

fn GetTarget(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>

Source

fn GetSrcElement(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>

Source

fn GetCurrentTarget(&self) -> Option<Root<Dom<<D as DomTypes>::EventTarget>>>

Source

fn ComposedPath(&self) -> Vec<Root<Dom<<D as DomTypes>::EventTarget>>>

Source

fn EventPhase(&self) -> u16

Source

fn StopPropagation(&self)

Source

fn CancelBubble(&self) -> bool

Source

fn SetCancelBubble(&self, value: bool)

Source

fn StopImmediatePropagation(&self)

Source

fn Bubbles(&self) -> bool

Source

fn Cancelable(&self) -> bool

Source

fn ReturnValue(&self) -> bool

Source

fn SetReturnValue(&self, value: bool)

Source

fn PreventDefault(&self)

Source

fn DefaultPrevented(&self) -> bool

Source

fn Composed(&self) -> bool

Source

fn IsTrusted(&self) -> bool

Source

fn TimeStamp(&self) -> Finite<f64>

Source

fn InitEvent(&self, type_: DOMString, bubbles: bool, cancelable: bool)

Source

fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &EventInit, ) -> Result<Root<Dom<<D as DomTypes>::Event>>, 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.

Implementors§