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
Value | Description |
---|---|
GR_ERROR_BAD_WINDOW_ID | A function call was made into the nano-X library with an invalid window ID specified. |
GR_ERROR_BAD_GC_ID | A function call was made into the nano-X library with an invalid graphics context ID specified. |
GR_ERROR_BAD_CURSOR_SIZE | A cursor with an invalid size was specified. |
GR_ERROR_MALLOC_FAILED | A memory allocation within the server failed. |
GR_ERROR_BAD_WINDOW_SIZE | An invalid window size was specified. |
GR_ERROR_KEYBOARD_ERROR | An error occred while the server was reading from the keyboard. |
GR_ERROR_MOUSE_ERROR | An error occred while the server was reading from the mouse. |
GR_ERROR_INPUT_ONLY_WINDOW | A graphics drawing function was illegaly invoked on an input only window. |
GR_ERROR_ILLEGAL_ON_ROOT_WINDOW | An illegal attempt was made to perform an operation that can not be performed on the "root" window. |
GR_ERROR_TOO_MUCH_CLIPPING | The clipping region became too complex for nano-X to handle. |
GR_ERROR_SCREEN_ERROR | An error occred while the server was writing to the screen driver. |
GR_ERROR_UNMAPPED_FOCUS_WINDOW | An illegal attempt was made to set focus to an unmapped window. |
GR_ERROR_BAD_DRAWING_MODE | An invalid drawing mode was specified to a graphics context. |