GR_ERROR

Name

GR_ERROR -- Error event codes

Synopsis

typedef int GR_ERROR;
  

Description

A GR_ERROR enumeration type identifies the cause of an error event. When a window receives an error event, the associated GR_EVENT_ERROR structure contains a field of this type that specifies the error.

The following table shows all of the available values that may be assigned to a GR_ERROR variable.

Table 3-1. Error Codes

ValueDescription
GR_ERROR_BAD_WINDOW_IDA function call was made into the nano-X library with an invalid window ID specified.
GR_ERROR_BAD_GC_IDA function call was made into the nano-X library with an invalid graphics context ID specified.
GR_ERROR_BAD_CURSOR_SIZEA cursor with an invalid size was specified.
GR_ERROR_MALLOC_FAILEDA memory allocation within the server failed.
GR_ERROR_BAD_WINDOW_SIZEAn invalid window size was specified.
GR_ERROR_KEYBOARD_ERRORAn error occred while the server was reading from the keyboard.
GR_ERROR_MOUSE_ERRORAn error occred while the server was reading from the mouse.
GR_ERROR_INPUT_ONLY_WINDOWA graphics drawing function was illegaly invoked on an input only window.
GR_ERROR_ILLEGAL_ON_ROOT_WINDOWAn illegal attempt was made to perform an operation that can not be performed on the "root" window.
GR_ERROR_TOO_MUCH_CLIPPINGThe clipping region became too complex for nano-X to handle.
GR_ERROR_SCREEN_ERRORAn error occred while the server was writing to the screen driver.
GR_ERROR_UNMAPPED_FOCUS_WINDOWAn illegal attempt was made to set focus to an unmapped window.
GR_ERROR_BAD_DRAWING_MODEAn invalid drawing mode was specified to a graphics context.

See Also

GR_EVENT_ERROR, GrDefaultErrorHandler().