Chapter 2. Nano-X Function Reference

Table of Contents
GrArc() — Draw an arc
GrArcAngle() — Draw an arc
GrArea() — Draw a pixel array
GrBell() — Ring bell on server
GrBitmap() — Draw a monochrome bitmap
GrCheckNextEvent() — Get an event from the queue
GrClearWindow() — Clear a window
GrClose() — Close the connection to the nano-X server
GrCloseWindow() — Close the specified window
GrCopyArea() — Copy from one drawable to another
GrCopyGC() — Copy a graphics context into a new graphics context
GrCreateFont() — Create a font
GrDefaultErrorHandler() — The default error handler
GrDestroyFont() — Destroy a font
GrDestroyGC() — Destroy a graphics context
GrDestroyRegion() — Destroy a region
GrDestroyWindow() — Destroy a window
GrDrawImageBits() — Draw an image
GrDrawImageFromFile() — Draw an image from a file
GrDrawImageToFit() — Draw an image with scaling
GrDrawLines() — Draw a set of lines
GrEllipse() — Draw an ellipse or circle
GrEmptyRegion() — Test for empty region
GrEqualRegion() — Test two regions for equality
GrFillEllipse() — Draw a filled ellipse or circle
GrFillPoly() — Draw a filled polygon
GrFillRect() — Draw a filled rectangle
GrFindColor() — Find closest color match
GrFlush() — Flushes the client/server message buffer
GrFreeImage() — Destroy an image buffer
GrGetFocus() — Get the current focus window
GrGetFontInfo() — Get information about a font
GrGetGCInfo() — Retrieve graphics context settings
GrGetGCTextSize() — Calculate size of a text drawing
GrGetImageInfo() — Retrieve information about an image
GrGetNextEvent() — Get an event from the queue
GrGetNextEventTimeout() — Get an event from the queue
GrGetRegionBox() — Get a region's bounding rectangle
GrGetScreenInfo() — Return screen properties
GrGetSysColor() — Get color by palette index
GrGetSystemPalette() — Get the colors of the system palette
GrGetWindowInfo() — Retrieve window information
GrGetWMProperties() — Retrieve a window's properties
GrInjectKeyboardEvent() — Simulate a keyboard event
GrInjectPointerEvent() — Simulate a pointer event
GrIntersectRegion() — Form a region from the intersection of two regions
GrKillWindow() — Kill the specified window
GrLine() — Draw a line
GrLoadImageFromFile() — Load an image from a file into memory
GrLowerWindow() — Lower a window
GrMainLoop() — Generic application event dispatch loop
GrMapWindow() — Map a window and it's children
GrMoveCursor() — Move the mouse cursor
GrMoveWindow() — Move a window
GrNewGC() — Create a new graphics context
GrNewInputWindow() — Create a new input window
GrNewPixmap() — Create a new pixmap
GrNewPixmapFromData() — Create a new pixmap and initialize it
GrNewPolygonRegion() — Create a polygon region
GrNewRegion() — Create a new region
GrNewWindow() — Create a new window
GrNewWindowEx() — Create a new window
GrOffsetRegion() — Offset a region
GrOpen() — Open a connection to the nano-X server
GrPeekEvent() — Peek an event from the queue
GrPoint() — Draw a point
GrPointInRegion() — Test for point in region
GrPoints() — Draw a set of points
GrPoly() — Draw a polygon
GrPrepareSelect() — Prepare an fdset for a select
GrRaiseWindow() — Raise a window
GrReadArea() — Read pixel data from a drawable
GrRect() — Draw a rectangle
GrRectInRegion() — Test for rectangle in region
GrRegisterInput() — Register a file descriptor to generate events
GrReparentWindow() — Change a window's parent
GrReqShmCmds() — Setup a shared memory interface
GrResizeWindow() — Resize a window
GR_RGB() — Create a color by RGB components
GrSelectEvents() — Select event types to receive
GrServiceSelect() — Dispatch nano-X events
GrSetBackgroundPixmap() — Set the windows background image
GrSetBorderColor() — Set a window's border color
GrSetCursor() — Specify a mouse cursor image
GrSetErrorHandler() — Setup an error handler
GrSetFocus() — Set the window focus
GrSetFontAttr() — Change font attributes
GrSetFontRotation() — Set the angle of a font
GrSetFontSize() — Set the size of a font
GrSetGCBackground() — Change the background color of a graphics context
GrSetGCFont() — Select a font to draw with
GrSetGCForeground() — Change the foreground color of a graphics context
GrSetGCMode() — Set the drawing mode of a graphics context
GrSetGCRegion() — Set the clipping region for a graphics context
GrSetGCUseBackground() — Enables/disables background usage
GrSetScreenSaverTimeout() — Set screen saver timeout
GrSetSystemPalette() — Set the colors of the system palette
GrSetWMProperties() — Set a window's properties
GrSetWindowBackgroundColor() — Set a window's background color
GrSetWindowBorderColor() — Set a window's border color
GrSetWindowBorderSize() — Set a window's border width
GrSetWindowTitle() — Set a window's title
GrSubtractRegion() — Form a region from the difference of two regions
GrText() — Draw text
GrUnionRectWithRegion() — Form union of rectangle and region
GrUnionRegion() — Form a region from the union of two other regions
GrUnmapWindow() — Unmap a window and it's children
GrXorRegion() — Form a region form the XOR two regions