.TH "DOM::TextEvent" 3 "28 Jan 2004" "khtml Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
DOM::TextEvent \- DOM::TextEvent The detail attribute inherited from \fBUIEvent\fP is used to indicate the number of keypresses which have occurred during key repetition.  

.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 "\fBTextEvent\fP (const  \fBTextEvent\fP &other)"
.br
.ti -1c
.RI "\fBTextEvent\fP (const  \fBEvent\fP &other)"
.br
.ti -1c
.RI "\fBTextEvent\fP & \fBoperator=\fP (const  \fBTextEvent\fP &other)"
.br
.ti -1c
.RI "\fBTextEvent\fP & \fBoperator=\fP (const  \fBEvent\fP &other)"
.br
.ti -1c
.RI "void \fBinitTextEvent\fP (const  \fBDOMString\fP &typeArg, bool canBubbleArg, bool cancelableArg, const  \fBAbstractView\fP &viewArg, long detailArg, const  \fBDOMString\fP &outputStringArg, unsigned long keyValArg, unsigned long virtKeyValArg, bool inputGeneratedArg, bool numPadArg)"
.br
.RI "\fIinitTextEvent \fP"
.ti -1c
.RI "void \fBinitModifier\fP (unsigned long modifierArg, bool valueArg)"
.br
.RI "\fIinitModifier \fP"
.ti -1c
.RI "bool \fBinputGenerated\fP () const "
.br
.RI "\fIinputGenerated of type boolean \fP"
.ti -1c
.RI "unsigned long \fBkeyVal\fP () const "
.br
.RI "\fIkeyVal of type unsigned long \fP"
.ti -1c
.RI "bool \fBnumPad\fP () const "
.br
.RI "\fInumPad of type boolean \fP"
.ti -1c
.RI "\fBDOMString\fP \fBoutputString\fP () const "
.br
.RI "\fIoutputString of type \fBDOMString\fP \fP"
.ti -1c
.RI "unsigned long \fBvirtKeyVal\fP () const "
.br
.RI "\fIvirtKeyVal of type unsigned long \fP"
.ti -1c
.RI "bool \fBcheckModifier\fP (unsigned long modiferArg)"
.br
.RI "\fIcheckModifier \fP"
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "\fBTextEvent\fP (TextEventImpl *impl)"
.br
.in -1c
.SH "Detailed Description"
.PP 
DOM::TextEvent The detail attribute inherited from \fBUIEvent\fP is used to indicate the number of keypresses which have occurred during key repetition. 

If this information is not available this value should be 0. 
.PP
Definition at line 535 of file dom2_events.h.
.SH "Member Function Documentation"
.PP 
.SS "void TextEvent::initTextEvent (const \fBDOMString\fP & typeArg, bool canBubbleArg, bool cancelableArg, const \fBAbstractView\fP & viewArg, long detailArg, const \fBDOMString\fP & outputStringArg, unsigned long keyValArg, unsigned long virtKeyValArg, bool inputGeneratedArg, bool numPadArg)"
.PP
initTextEvent The initTextEvent method is used to initialize the value of a \fBMouseEvent\fP created through the DocumentEvent interface. This method may only be called before the \fBTextEvent\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. This method has no effect if called after the event has been dispatched.
.PP
Parameters:
.PP
typeArg of type \fBDOMString\fP Specifies the event type. canBubbleArg of type boolean Specifies whether or not the event can bubble. cancelableArg of type boolean Specifies whether or not the event's default action can be prevent. viewArg of type views::AbstractView Specifies the TextEvent's \fBAbstractView\fP. detailArg of type unsigned short Specifies the number of repeated keypresses, if available. outputStringArg of type \fBDOMString\fP Specifies the TextEvent's outputString attribute keyValArg of type unsigned long Specifies the TextEvent's keyValattribute virtKeyValArg of type unsigned long Specifies the TextEvent's virtKeyValattribute inputGeneratedArg of type boolean Specifies the TextEvent's inputGeneratedattribute numPadArg of type boolean Specifies the TextEvent's numPadattribute
.PP
No Return Value. No Exceptions. Definition at line 459 of file dom2_events.cpp.
.SS "void TextEvent::initModifier (unsigned long modifierArg, bool valueArg)"
.PP
initModifier The initModifier method is used to initialize the values of any modifiers associated with a \fBTextEvent\fP created through the DocumentEvent interface. This method may only be called before the \fBTextEvent\fP has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times with the same modifier property the final invocation takes precedence. Unless explicitly give a value of true, all modifiers have a value of false. This method has no effect if called after the event has been dispatched. The list of keys below represents the allowable modifier paramaters for this method: DOM_VK_LEFT_ALT DOM_VK_RIGHT_ALT DOM_VK_LEFT_CONTROL DOM_VK_RIGHT_CONTROL DOM_VK_LEFT_SHIFT DOM_VK_RIGHT_SHIFT DOM_VK_META
.PP
Parameters:
.PP
modifier of type unsigned long The modifier which the user wishes to initialize value of type boolean The new value of the modifier.
.PP
No Return Value No Exceptions Definition at line 500 of file dom2_events.cpp.
.SS "bool TextEvent::inputGenerated () const"
.PP
inputGenerated of type boolean The inputGenerated attribute indicates whether the key event will normally cause visible output. If the key event does not generate any visible output, such as the use of a function key or the combination of certain modifier keys used in conjunction with another key, then the value will be false. If visible output is normally generated by the key event then the value will be true. The value of inputGenerated does not guarantee the creation of a character. If a key event causing visible output is cancelable it may be prevented from causing output. This attribute is intended primarily to differentiate between keys events which may or may not produce visible output depending on the system state. Definition at line 516 of file dom2_events.cpp.
.SS "unsigned long TextEvent::keyVal () const"
.PP
keyVal of type unsigned long The value of keyVal holds the value of the Unicode character associated with the depressed key. If the key has no Unicode representation or no Unicode character is available the value is 0. Definition at line 476 of file dom2_events.cpp.
.SS "bool TextEvent::numPad () const"
.PP
numPad of type boolean The numPad attribute indicates whether or not the key event was generated on the number pad section of the keyboard. If the number pad was used to generate the key event the value is true, otherwise the value is false. Definition at line 524 of file dom2_events.cpp.
.SS "\fBDOMString\fP TextEvent::outputString () const"
.PP
outputString of type \fBDOMString\fP outputString holds the value of the output generated by the key event. This may be a single Unicode character or it may be a string. It may also be null in the case where no output was generated by the key event. Definition at line 484 of file dom2_events.cpp.
.SS "unsigned long TextEvent::virtKeyVal () const"
.PP
virtKeyVal of type unsigned long When the key associated with a key event is not representable via a Unicode character virtKeyVale holds the virtual key code associated with the depressed key. If the key has a Unicode representation or no virtual code is available the value is DOM_VK_UNDEFINED. Definition at line 492 of file dom2_events.cpp.
.SS "bool TextEvent::checkModifier (unsigned long modiferArg)"
.PP
checkModifier Note: the below description does not match the actual behaviour. it's extended in a way that you can query multiple modifiers at once by logically OR`ing them. also, we use the \fBQt\fP modifier enum instead of the \fBDOM\fP one.
.PP
The CheckModifier method is used to check the status of a single modifier key associated with a \fBTextEvent\fP. The identifier of the modifier in question is passed into the CheckModifier function. If the modifier is triggered it will return true. If not, it will return false. The list of keys below represents the allowable modifier paramaters for this method: DOM_VK_LEFT_ALT DOM_VK_RIGHT_ALT DOM_VK_LEFT_CONTROL DOM_VK_RIGHT_CONTROL DOM_VK_LEFT_SHIFT DOM_VK_RIGHT_SHIFT DOM_VK_META
.PP
Parameters:
.PP
modifer of type unsigned long The modifier which the user wishes to query.
.PP
Return Value: boolean The status of the modifier represented as a boolean.
.PP
No Exceptions Definition at line 508 of file dom2_events.cpp.

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