The IEventData class encapsulates the data of an event. IEventData is interchangeable with the following classes, which are actually aliases (that is, typedefs) for IEventData:
The interpretation of the IEventData objects in an IEvent are system-dependent. See IEvent for a description of how the fields are interpreted in each environment. For applications you want to be portable, you should use accessor functions provided by derived classes of IEvent to access event data.
Although the Open Class Library sometimes internally uses the IEventResult value returned by the application, this value is not returned to the X-Motif window system. X-Motif does not support returning any value. Particularly, it does not support the ability to prevent further processing of the event by the windowing system.
Construct and destruct objects of this class.
![]() |
public:
IEventData(int value)
Create an IEventData object from an integer. The event data is set to the specified integer. This constructor accepts an uncasted value of 0.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IEventData(void* value)
Create an IEventData object from a pointer to a void. The event data is set to the specified void pointer.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IEventData(unsigned short lowValue, unsigned short hiValue)
Create an IEventData object from two unsigned short integer values. The event data is set to an unsigned long integer whose two words are the two specified unsigned short integers.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IEventData( unsigned short lowValue, char lowByte, char hiByte )
Create an IEventData object using the specified unsigned short value and two characters. The event data is set to an unsigned long integer whose two words are the unsigned short integer in the low word and the two characters in the high word.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IEventData(unsigned long value)
Create an IEventData object from an unsigned long integer value. The event data is set to the specified unsigned long integer.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
IEventData()
Create an IEventData object with the event data set to 0.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These members query and set the event data contained by objects of this class.
![]() |
public:
char char1() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char char2() const
Returns the character in the high byte of the event data's low word. This is the same as lowHighByte.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char char3() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char char4() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char highHighByte() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char highLowByte() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned short highNumber() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char lowHighByte() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
char lowLowByte() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned short lowNumber() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned short number1() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned short number2() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These members convert an IEventData object to a four-byte value. You can either explicitly convert the object by calling a member function or casting, or allow the compiler to implicitly convert the object using an operator.
![]() |
public:
long asLong() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
unsigned long asUnsignedLong() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
operator char *() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
operator unsigned long() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |