A GR_EVENT_TYPE enumeration type identifies the type of event that a window is receiving. When a window receives an event, the associated GR_EVENT structure contains a field that specifies the event type.
The following table shows all of the available enumeration values that can be assigned to a GR_EVENT_TYPE variable.
Table 3-1. Event Type Enumerations
Value | Description | |
---|---|---|
GR_EVENT_TYPE_ERROR | This event is sent to the nano-X client when run time errors occur on the nano-X server. It is sent along with a GR_EVENT_ERROR structure. | |
GR_EVENT_TYPE_NONE | This event type is not used. | |
GR_EVENT_TYPE_EXPOSURE | This event is sent to the nano-X client when a portion of a window becomes visible and needs to be redrawn. It is sent along with a GR_EVENT_EXPOSURE structure. | |
GR_EVENT_TYPE_BUTTON_DOWN | This event is sent to the nano-X client when any one or more of the mouse butttons is pressed. It is sent along with a GR_EVENT_BUTTON structure. | |
GR_EVENT_TYPE_BUTTON_UP | This event is sent to the nano-X client when any one or more of the mouse butttons is released. It is sent along with a GR_EVENT_BUTTON structure. | |
GR_EVENT_TYPE_MOUSE_ENTER | This event is sent to the nano-X client when the mouse moves onto the window specified within the event. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_MOUSE_EXIT | This event is sent to the nano-X client when the mouse moves off of the window specified within the event. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_MOUSE_MOTION | This event is sent to the nano-X client when the mouse moves. One of these events is queued for each movement o fthe mouse. Therefore a large number of these events may build up in the event queue. Since none of thes events are thrown away these events will reflect a accurate tracking of the mouse movements. It is sent along with a GR_EVENT_MOUSE structure. | |
GR_EVENT_TYPE_MOUSE_POSITION | This event is sent to the nano-X client when the mouse moves. These events do NOT build up in the event queue. On each mouse movement the event queue is purged of any events of this type before another event of this type is placed in the queue. This queueing behavior makes this event ideal for realtime response, such as rubber banding or dragging. It is sent along with a GR_EVENT_MOUSE structure. | |
GR_EVENT_TYPE_KEY_DOWN | This event is sent to the nano-X client when a key on the keyboard is pressed. It is sent along with a GR_EVENT_KEYSTROKE structure. | |
GR_EVENT_TYPE_KEY_UP | This event is not used in Microwindows revision 0.89pre6. | |
GR_EVENT_TYPE_FOCUS_IN | This event is sent to the nano-X client when the focus moves to the window specified within the event. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_FOCUS_OUT | This event is sent to the nano-X client when the focus moves away from the window specified within the event. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_FDINPUT | This event is sent to the nano-X client when data is available for reading on a file descriptor previously registered with the GrRegisterInput() function. It is sent along with a GR_EVENT_FDINPUT structure. | |
GR_EVENT_TYPE_UPDATE | This event is sent to the nano-X client when an update occurs to the window specified within the event. Window updates occur when the window is moved, resized, mapped, unmapped, activated or destroyed. It is sent along with a GR_EVENT_UPDATE structure. | |
GR_EVENT_TYPE_CHLD_UPDATE | This event is sent to the nano-X client when an update occurs to a child of the window specified within the event. Window updates occur when the window is moved, resized, mapped, unmapped, activated or destroyed. It is sent along with a GR_EVENT_UPDATE structure. | |
GR_EVENT_TYPE_CLOSE_REQ | This event is sent to the nano-X client just before the window specified within the event is closed. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_TIMEOUT | This event is sent to the nano-X client whenever the servers select loop times out. The event is sent regardless of whether it has been enabled by the client. It is sent along with a GR_EVENT_GENERAL structure. | |
GR_EVENT_TYPE_SCREENSAVER | This event is sent to the nano-X client whenever the servers screensaver timer times out. It is sent along with a GR_EVENT_SCREENSAVER structure. | |
GR_EVENT_TYPE_CLIENT_DATA_REQ | ||
GR_EVENT_TYPE_CLIENT_DATA | ||
GR_EVENT_TYPE_SELECTION_CHANGED |