Event

This is a DOM event, like in javascript. Note that this library never fires events - it is only here for you to use if you want it.

Constructors

this
this(string eventName, Element target)
Undocumented in source.

Members

Aliases

target
alias target = srcElement
Undocumented in source.

Functions

dispatch
void dispatch()

this dispatches the element using the capture -> target -> bubble process

preventDefault
void preventDefault()

Prevents the default event handler (if there is one) from being called

send
void send()

this sends it only to the target. If you want propagation, use dispatch() instead.

stopPropagation
void stopPropagation()

Stops the event propagation immediately.

Variables

button
int button;
Undocumented in source.
clientX
int clientX;
Undocumented in source.
clientY
int clientY;
Undocumented in source.
defaultPrevented
bool defaultPrevented;
Undocumented in source.
eventName
string eventName;
Undocumented in source.
isBubbling
bool isBubbling;
Undocumented in source.
propagationStopped
bool propagationStopped;
Undocumented in source.
relatedTarget
Element relatedTarget;
Undocumented in source.
srcElement
Element srcElement;
Undocumented in source.

Meta