Trait script::dom::bindings::codegen::Bindings::EventBinding::Event_Binding::EventMethods
source · pub trait EventMethods<D: DomTypes> {
Show 20 methods
// Required methods
fn Type(&self) -> DOMString;
fn GetTarget(&self) -> Option<Root<Dom<EventTarget>>>;
fn GetSrcElement(&self) -> Option<Root<Dom<EventTarget>>>;
fn GetCurrentTarget(&self) -> Option<Root<Dom<EventTarget>>>;
fn ComposedPath(&self) -> Vec<Root<Dom<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 IsTrusted(&self) -> bool;
fn TimeStamp(&self) -> Finite<f64>;
fn InitEvent(&self, type_: DOMString, bubbles: bool, cancelable: bool);
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &EventInit,
) -> Result<Root<Dom<Event>>, Error>;
}
Required Methods§
fn Type(&self) -> DOMString
fn GetTarget(&self) -> Option<Root<Dom<EventTarget>>>
fn GetSrcElement(&self) -> Option<Root<Dom<EventTarget>>>
fn GetCurrentTarget(&self) -> Option<Root<Dom<EventTarget>>>
fn ComposedPath(&self) -> Vec<Root<Dom<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 IsTrusted(&self) -> bool
fn TimeStamp(&self) -> Finite<f64>
fn InitEvent(&self, type_: DOMString, bubbles: bool, cancelable: bool)
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &EventInit, ) -> Result<Root<Dom<Event>>, Error>
Object Safety§
This trait is not object safe.