Nano-X uses several integral data types that have special type definitions to help make the library easier to understand. The following table describes these nano-X data types.
Type | Description |
---|---|
GR_BITMAP | Bitmap Unit - This type is used to specify bitmap images. |
GR_BOOL | Boolean - this type represents a boolean value within nano-X. It can be one of GR_TRUE or GR_FALSE. |
GR_CHAR | Text Character - This type is used for ASCII text, filenames and keystrokes. |
GR_CHAR_WIDTH | Character Width - This type describes the width of a character in pixels. |
GR_COLOR | Color Value - This 32 bit device independent color value is used to define a color within nano-X. |
GR_COORD | Coordinate Value - This type is typically used to specify the X or Y location of a graphic object relative to its parent window or relative to the screen. |
GR_COUNT | Number Of Items - The count type is typically used to specify the number of elements in an array. The polygon functions use this type to specify the number of points in the array of vertices. Some of the functions with string parameters use this type to specify the number of characters in non-zero terminated strings. |
GR_DRAW_ID | Drawable ID - This type uniquely identifies a nano-X drawable object. |
GR_FONT_ID | Font ID - This type uniquely identifies a nano-X font. |
GR_FUNC_NAME | Function Name String - This type holds a 25 byte ASCII string. It is used as a member of the GR_EVENT_ERROR structure. |
GR_GC_ID | Graphics Context ID - This type uniquely identifies a nano-X graphics context. |
GR_ID | ID - This generic type uniquely identifies a nano-X object. |
GR_IMAGE_ID | Image ID - This type uniquely identifies a nano-X image. |
GR_PIXELVAL | Hardware Pixel Value - This hardware dependent color value is typically used for device dependent image storage. The size of this value is dependent on the configuration settings for Nano-X when the library was built. |
GR_REGION_ID | Region ID - This type uniquely identifies a nano-X region. |
GR_SIZE | Graphic Size - This type is typically used to specify the width or height of a graphic object, such as a rectangle. |
GR_TIMEOUT | Time Out Value - A delay in milli-seconds. This value is used by the function GrGetNextEventTimeout() to specify a maximum amount of tie to block while waiting for the next nano-X event from the event queue. |
GR_UNICODE | Unicode Character - This types holds a 32 bit unicode character. |
GR_WINDOW_ID | Window ID - This type uniquely identifies a nano-X window. |