.TH "DOM::MouseEvent" kde3 "11 Jun 2005" "Version Version 3.4.1" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::MouseEvent \- Introduced in \fBDOM\fP Level 2.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <dom2_events.h>\fP
.PP
Inherits \fBDOM::UIEvent\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBMouseEvent\fP (const \fBMouseEvent\fP &other)"
.br
.ti -1c
.RI "\fBMouseEvent\fP (const \fBEvent\fP &other)"
.br
.ti -1c
.RI "\fBMouseEvent\fP & \fBoperator=\fP (const \fBMouseEvent\fP &other)"
.br
.ti -1c
.RI "\fBMouseEvent\fP & \fBoperator=\fP (const \fBEvent\fP &other)"
.br
.ti -1c
.RI "long \fBscreenX\fP () const "
.br
.ti -1c
.RI "long \fBscreenY\fP () const "
.br
.ti -1c
.RI "long \fBclientX\fP () const "
.br
.ti -1c
.RI "long \fBclientY\fP () const "
.br
.ti -1c
.RI "bool \fBctrlKey\fP () const "
.br
.ti -1c
.RI "bool \fBshiftKey\fP () const "
.br
.ti -1c
.RI "bool \fBaltKey\fP () const "
.br
.ti -1c
.RI "bool \fBmetaKey\fP () const "
.br
.ti -1c
.RI "unsigned short \fBbutton\fP () const "
.br
.ti -1c
.RI "\fBNode\fP \fBrelatedTarget\fP () const "
.br
.ti -1c
.RI "void \fBinitMouseEvent\fP (const \fBDOMString\fP &typeArg, bool canBubbleArg, bool cancelableArg, const \fBAbstractView\fP &viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, unsigned short buttonArg, const \fBNode\fP &relatedTargetArg)"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBMouseEvent\fP (MouseEventImpl *impl)"
.br
.in -1c
.SH "Detailed Description"
.PP 
Introduced in \fBDOM\fP Level 2. 

The \fBMouseEvent\fP interface provides specific contextual information associated with Mouse events.
.PP
The detail attribute inherited from \fBUIEvent\fP indicates the number of times a mouse button has been pressed and released over the same screen location during a user action. The attribute value is 1 when the user begins this action and increments by 1 for each full sequence of pressing and releasing. If the user moves the mouse between the mousedown and mouseup the value will be set to 0, indicating that no click is occurring.
.PP
In the case of nested elements mouse events are always targeted at the most deeply nested element. Ancestors of the targeted element may use bubbling to obtain notification of mouse events which occur within its descendent elements. 
.PP
Definition at line 404 of file dom2_events.h.
.SH "Member Function Documentation"
.PP 
.SS "long MouseEvent::screenX () const"
.PP
The horizontal coordinate at which the event occurred relative to the origin of the screen coordinate system. 
.PP
Definition at line 379 of file dom2_events.cpp.
.SS "long MouseEvent::screenY () const"
.PP
The vertical coordinate at which the event occurred relative to the origin of the screen coordinate system. 
.PP
Definition at line 387 of file dom2_events.cpp.
.SS "long MouseEvent::clientX () const"
.PP
The horizontal coordinate at which the event occurred relative to the \fBDOM\fP implementation's client area. 
.PP
Definition at line 395 of file dom2_events.cpp.
.SS "long MouseEvent::clientY () const"
.PP
The vertical coordinate at which the event occurred relative to the \fBDOM\fP implementation's client area. 
.PP
Definition at line 403 of file dom2_events.cpp.
.SS "bool MouseEvent::ctrlKey () const"
.PP
Used to indicate whether the 'ctrl' key was depressed during the firing of the event. 
.PP
Definition at line 411 of file dom2_events.cpp.
.SS "bool MouseEvent::shiftKey () const"
.PP
Used to indicate whether the 'shift' key was depressed during the firing of the event. 
.PP
Definition at line 419 of file dom2_events.cpp.
.SS "bool MouseEvent::altKey () const"
.PP
Used to indicate whether the 'alt' key was depressed during the firing of the event. 
.PP
On some platforms this key may map to an alternative key name. 
.PP
Definition at line 427 of file dom2_events.cpp.
.SS "bool MouseEvent::metaKey () const"
.PP
Used to indicate whether the 'meta' key was depressed during the firing of the event. 
.PP
On some platforms this key may map to an alternative key name. 
.PP
Definition at line 435 of file dom2_events.cpp.
.SS "unsigned short MouseEvent::button () const"
.PP
During mouse events caused by the depression or release of a mouse button, button is used to indicate which mouse button changed state. 
.PP
The values for button range from zero to indicate the left button of the mouse, one to indicate the middle button if present, and two to indicate the right button. For mice configured for left handed use in which the button actions are reversed the values are instead read from right to left. 
.PP
Definition at line 443 of file dom2_events.cpp.
.SS "\fBNode\fP MouseEvent::relatedTarget () const"
.PP
Used to identify a secondary EventTarget related to a UI event. 
.PP
Currently this attribute is used with the mouseover event to indicate the EventTarget which the pointing device exited and with the mouseout event to indicate the EventTarget which the pointing device entered. 
.PP
Definition at line 451 of file dom2_events.cpp.
.SS "void MouseEvent::initMouseEvent (const \fBDOMString\fP & typeArg, bool canBubbleArg, bool cancelableArg, const \fBAbstractView\fP & viewArg, long detailArg, long screenXArg, long screenYArg, long clientXArg, long clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, unsigned short buttonArg, const \fBNode\fP & relatedTargetArg)"
.PP
The initMouseEvent method is used to initialize the value of a \fBMouseEvent\fP created through the DocumentEvent interface. 
.PP
This method may only be called before the \fBMouseEvent\fP has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence. Parameters
.PP
\fBParameters:\fP
.RS 4
\fItypeArg\fP Specifies the event type.
.br
\fIcanBubbleArg\fP Specifies whether or not the event can bubble.
.br
\fIcancelableArg\fP Specifies whether or not the event's default action can be prevented.
.br
\fIviewArg\fP Specifies the Event's \fBAbstractView\fP.
.br
\fIdetailArg\fP Specifies the Event's mouse click count.
.br
\fIscreenXArg\fP Specifies the Event's screen x coordinate
.br
\fIscreenYArg\fP Specifies the Event's screen y coordinate
.br
\fIclientXArg\fP Specifies the Event's client x coordinate
.br
\fIclientYArg\fP Specifies the Event's client y coordinate
.br
\fIctrlKeyArg\fP Specifies whether or not control key was depressed during the \fBEvent\fP.
.br
\fIaltKeyArg\fP Specifies whether or not alt key was depressed during the \fBEvent\fP.
.br
\fIshiftKeyArg\fP Specifies whether or not shift key was depressed during the \fBEvent\fP.
.br
\fImetaKeyArg\fP Specifies whether or not meta key was depressed during the \fBEvent\fP.
.br
\fIbuttonArg\fP Specifies the Event's mouse button.
.br
\fIrelatedTargetArg\fP Specifies the Event's related EventTarget. 
.RE
.PP

.PP
Definition at line 459 of file dom2_events.cpp.

.SH "Author"
.PP 
Generated automatically by Doxygen for khtml Library from the source code.
