[][src]Trait moxie_dom::prelude::event::Event

pub trait Event: AsRef<Event> + JsCast where
    <Self::Builder as EventBuilder>::Output == Self, 
{ type Builder: EventBuilder + Default; const NAME: &'static str; fn new() -> Self::Builder { ... }
fn dispatch(self, target: &EventTarget) { ... } }

An event that can be received as the first argument to a handler callback.

Associated Types

type Builder: EventBuilder + Default

The builder type returned by new().

Loading content...

Associated Constants

const NAME: &'static str

The name used to register for this event in addEventListener.

Loading content...

Provided methods

fn new() -> Self::Builder

Make a new event, returning a builder.

fn dispatch(self, target: &EventTarget)

Dispatch this event to the provided target.

Loading content...

Implementors

impl Event for Abort[src]

type Builder = AbortBuilder

impl Event for AbortProgress[src]

impl Event for AbortTransaction[src]

impl Event for AfterPrint[src]

type Builder = AfterPrintBuilder

impl Event for AnimationCancel[src]

impl Event for AnimationEnd[src]

impl Event for AnimationIteration[src]

impl Event for AnimationStart[src]

impl Event for AppInstalled[src]

impl Event for AudioEnd[src]

type Builder = AudioEndBuilder

impl Event for AudioEnded[src]

type Builder = AudioEndedBuilder

impl Event for AudioStart[src]

type Builder = AudioStartBuilder

impl Event for BeforePrint[src]

type Builder = BeforePrintBuilder

impl Event for Blur[src]

type Builder = BlurBuilder

impl Event for CanPlay[src]

type Builder = CanPlayBuilder

impl Event for CanPlayThrough[src]

impl Event for Cancel[src]

type Builder = CancelBuilder

impl Event for Change[src]

type Builder = ChangeBuilder

impl Event for ChargingChange[src]

impl Event for ChargingTime[src]

impl Event for ChildMessage[src]

impl Event for Click[src]

type Builder = ClickBuilder

impl Event for CloseWebsocket[src]

impl Event for CompositionEnd[src]

impl Event for CompositionStart[src]

impl Event for CompositionUpdate[src]

impl Event for ConnectionBlocked[src]

impl Event for ContextMenu[src]

type Builder = ContextMenuBuilder

impl Event for ContextMenuShow[src]

impl Event for CueChange[src]

type Builder = CueChangeBuilder

impl Event for DataLoaded[src]

type Builder = DataLoadedBuilder

impl Event for DeviceChange[src]

impl Event for DischargingTime[src]

impl Event for DomContentLoaded[src]

impl Event for DoubleClick[src]

type Builder = DoubleClickBuilder

impl Event for Drag[src]

type Builder = DragBuilder

impl Event for DragEnd[src]

type Builder = DragEndBuilder

impl Event for DragEnter[src]

type Builder = DragEnterBuilder

impl Event for DragExit[src]

type Builder = DragExitBuilder

impl Event for DragLeave[src]

type Builder = DragLeaveBuilder

impl Event for DragOver[src]

type Builder = DragOverBuilder

impl Event for DragStart[src]

type Builder = DragStartBuilder

impl Event for Dropped[src]

type Builder = DroppedBuilder

impl Event for DurationChange[src]

impl Event for Emptied[src]

type Builder = EmptiedBuilder

impl Event for ErrorEvent[src]

type Builder = ErrorEventBuilder

impl Event for EventSourceError[src]

impl Event for EventSourceMessage[src]

impl Event for EventSourceOpen[src]

impl Event for Focus[src]

type Builder = FocusBuilder

impl Event for FocusIn[src]

type Builder = FocusInBuilder

impl Event for FocusOut[src]

type Builder = FocusOutBuilder

impl Event for FormReset[src]

type Builder = FormResetBuilder

impl Event for FullscreenChange[src]

impl Event for FullscreenError[src]

impl Event for GamepadConnected[src]

impl Event for GamepadDisconnected[src]

impl Event for GotPointerCapture[src]

impl Event for HashChange[src]

type Builder = HashChangeBuilder

impl Event for Input[src]

type Builder = InputBuilder

impl Event for Invalid[src]

type Builder = InvalidBuilder

impl Event for KeyDown[src]

type Builder = KeyDownBuilder

impl Event for KeyPress[src]

type Builder = KeyPressBuilder

impl Event for KeyUp[src]

type Builder = KeyUpBuilder

impl Event for LanguageChange[src]

impl Event for LevelChange[src]

type Builder = LevelChangeBuilder

impl Event for LoadEnd[src]

type Builder = LoadEndBuilder

impl Event for LoadStart[src]

type Builder = LoadStartBuilder

impl Event for LostPointerCapture[src]

impl Event for MessageError[src]

impl Event for MetadataLoaded[src]

impl Event for MouseDown[src]

type Builder = MouseDownBuilder

impl Event for MouseEnter[src]

type Builder = MouseEnterBuilder

impl Event for MouseLeave[src]

type Builder = MouseLeaveBuilder

impl Event for MouseMove[src]

type Builder = MouseMoveBuilder

impl Event for MouseOut[src]

type Builder = MouseOutBuilder

impl Event for MouseOver[src]

type Builder = MouseOverBuilder

impl Event for MouseUp[src]

type Builder = MouseUpBuilder

impl Event for Offline[src]

type Builder = OfflineBuilder

impl Event for Online[src]

type Builder = OnlineBuilder

impl Event for OrientationChange[src]

impl Event for PageHide[src]

type Builder = PageHideBuilder

impl Event for PageShow[src]

type Builder = PageShowBuilder

impl Event for Pause[src]

type Builder = PauseBuilder

impl Event for Play[src]

type Builder = PlayBuilder

impl Event for PlaybackEnded[src]

impl Event for PlaybackRateChange[src]

impl Event for Playing[src]

type Builder = PlayingBuilder

impl Event for PointerCancel[src]

impl Event for PointerDown[src]

type Builder = PointerDownBuilder

impl Event for PointerEnter[src]

impl Event for PointerLeave[src]

impl Event for PointerLockChange[src]

impl Event for PointerLockError[src]

impl Event for PointerMove[src]

type Builder = PointerMoveBuilder

impl Event for PointerOut[src]

type Builder = PointerOutBuilder

impl Event for PointerOver[src]

type Builder = PointerOverBuilder

impl Event for PointerUp[src]

type Builder = PointerUpBuilder

impl Event for Progress[src]

type Builder = ProgressBuilder

impl Event for ProgressError[src]

impl Event for ProgressLoad[src]

impl Event for ReadyStateChange[src]

impl Event for RequestError[src]

impl Event for ResourceError[src]

impl Event for ResourceLoad[src]

impl Event for Scroll[src]

type Builder = ScrollBuilder

impl Event for Seeked[src]

type Builder = SeekedBuilder

impl Event for Seeking[src]

type Builder = SeekingBuilder

impl Event for Select[src]

type Builder = SelectBuilder

impl Event for SelectionChange[src]

impl Event for SelectionStart[src]

impl Event for ServiceWorkerMessage[src]

impl Event for SlotChange[src]

type Builder = SlotChangeBuilder

impl Event for SoundEnd[src]

type Builder = SoundEndBuilder

impl Event for SoundStart[src]

type Builder = SoundStartBuilder

impl Event for SpeechEnd[src]

type Builder = SpeechEndBuilder

impl Event for SpeechRecognitionEnd[src]

impl Event for SpeechRecognitionError[src]

impl Event for SpeechRecognitionNoMatch[src]

impl Event for SpeechRecognitionResult[src]

impl Event for SpeechRecognitionStart[src]

impl Event for SpeechRecognized[src]

impl Event for Stalled[src]

type Builder = StalledBuilder

impl Event for Storage[src]

type Builder = StorageBuilder

impl Event for Submit[src]

type Builder = SubmitBuilder

impl Event for Success[src]

type Builder = SuccessBuilder

impl Event for Suspend[src]

type Builder = SuspendBuilder

impl Event for SvgAbort[src]

type Builder = SvgAbortBuilder

impl Event for SvgError[src]

type Builder = SvgErrorBuilder

impl Event for SvgLoad[src]

type Builder = SvgLoadBuilder

impl Event for SvgResize[src]

type Builder = SvgResizeBuilder

impl Event for SvgScroll[src]

type Builder = SvgScrollBuilder

impl Event for SvgUnload[src]

type Builder = SvgUnloadBuilder

impl Event for SvgZoom[src]

type Builder = SvgZoomBuilder

impl Event for TimeUpdate[src]

type Builder = TimeUpdateBuilder

impl Event for Timeout[src]

type Builder = TimeoutBuilder

impl Event for TimingBufferFull[src]

impl Event for TouchCancel[src]

type Builder = TouchCancelBuilder

impl Event for TouchEnd[src]

type Builder = TouchEndBuilder

impl Event for TouchMove[src]

type Builder = TouchMoveBuilder

impl Event for TouchStart[src]

type Builder = TouchStartBuilder

impl Event for TransactionComplete[src]

impl Event for TransactionVersionChange[src]

impl Event for Unload[src]

type Builder = UnloadBuilder

impl Event for UpgradeNeeded[src]

impl Event for ViewResize[src]

type Builder = ViewResizeBuilder

impl Event for VisibilityChange[src]

impl Event for VoicesChanged[src]

impl Event for VolumeChange[src]

impl Event for Waiting[src]

type Builder = WaitingBuilder

impl Event for WebsocketError[src]

impl Event for WebsocketMessage[src]

impl Event for WebsocketOpen[src]

impl Event for Wheel[src]

type Builder = WheelBuilder

impl Event for WorkerMessage[src]

Loading content...