GR_EVENT_TYPE

Name

GR_EVENT_TYPE -- Event types

Description

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.

FlagDescription
GR_EVENT_TYPE_BUTTON_DOWNThis 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_UPThis 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_CHLD_UPDATEThis 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_REQThis 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_ERRORThis 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_EXPOSUREThis 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_FDINPUTThis 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_FOCUS_INThis 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_OUTThis 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_KEY_DOWNThis 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_UPThis event is not used in Nano-X revision 0.89pre6.
GR_EVENT_TYPE_MOUSE_ENTERThis 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_EXITThis 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_MOTIONThis 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_POSITIONThis 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 GR_EVENT_TYPE_MOUSE_POSITION event is placed in the queue. It is sent along with a GR_EVENT_MOUSE structure.
GR_EVENT_TYPE_NONEThis event type is not used.
GR_EVENT_TYPE_TIMEOUTThis 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_UPDATEThis 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.