24 #ifndef _DOM_Events_h_
25 #define _DOM_Events_h_
27 #include <dom/dom_node.h>
28 #include <dom/dom_misc.h>
40 class EventListenerImpl;
44 class KeyEventBaseImpl;
45 class MutationEventImpl;
78 virtual void handleEvent(
Event &evt);
95 EventListenerImpl *impl;
113 friend class NodeImpl;
114 friend class DocumentImpl;
158 Node currentTarget()
const;
164 unsigned short eventPhase()
const;
171 bool bubbles()
const;
179 bool cancelable()
const;
199 void stopPropagation();
213 void preventDefault();
240 void initEvent(
const DOMString &eventTypeArg,
bool canBubbleArg,
bool cancelableArg);
246 EventImpl *handle()
const;
280 UNSPECIFIED_EVENT_TYPE_ERR = 0
327 int charCode()
const;
369 void initUIEvent(
const DOMString &typeArg,
413 long screenX()
const;
420 long screenY()
const;
427 long clientX()
const;
434 long clientY()
const;
440 bool ctrlKey()
const;
447 bool shiftKey()
const;
463 bool metaKey()
const;
475 unsigned short button()
const;
484 Node relatedTarget()
const;
525 void initMouseEvent(
const DOMString &typeArg,
538 unsigned short buttonArg,
539 const Node &relatedTargetArg);
601 void initTextEvent(
const DOMString &typeArg,
607 unsigned long keyValArg,
608 unsigned long virtKeyValArg,
609 bool inputGeneratedArg,
639 void initModifier(
unsigned long modifierArg,
bool valueArg);
657 bool inputGenerated()
const;
666 unsigned long keyVal()
const;
695 unsigned long virtKeyVal()
const;
724 bool checkModifier(
unsigned long modifierArg);
774 Node relatedNode()
const;
804 unsigned short attrChange()
const;
831 void initMutationEvent(
const DOMString &typeArg,
834 const Node &relatedNodeArg,
838 unsigned short attrChangeArg);
Introduced in DOM Level 2.
Introduced in DOM Level 2.
Introduced in DOM Level 2:
Introduced in DOM Level 2.
The Document Object Model (DOM) is divided into two parts, the COREDOM core DOM, specifying some core...
PhaseType
An integer indicating which phase of event flow is being processed.
attrChangeType
An integer indicating in which way the Attr was changed.
The Document interface represents the entire HTML or XML document.
unsigned long long DOMTimeStamp
A DOMTimeStamp represents a number of milliseconds.
Introduced in DOM Level 2.
This class implements the basic string we use in the DOM.
Introduced in DOM Level 2.
DOM::TextEvent The detail attribute inherited from UIEvent is used to indicate the number of keypress...
The Node interface is the primary datatype for the entire Document Object Model.
Introduced in DOM Level 2.
EventExceptionCode
An integer indicating the type of error generated.