image functions
XgrCopyImage ( grid, imageGrid )
XgrDrawImage ( grid, imageGrid, startX, startY, endX, endY, dx, dy )
XgrDrawImageExtend ( grid, imageGrid, startX, startY, endX, endY, dx, dy )
XgrDrawImageExtendScaled ( grid, imageGrid, startX, startY, endX, endY, dx, dy )
XgrDrawImageScaled ( grid, imageGrid, startX, startY, endX, endY, dx, dy )
XgrGetImage ( grid, @image[] )
XgrGetImageArrayInfo (@image[], @bitsPerPixel, @width, @height )
XgrLoadImage ( fileName$, @image[] )
XgrRefreshGrid ( grid )
XgrSaveImage ( fileName$, @image[] )
XgrSetImage ( grid, @image[] )

focus functions
XgrGetMouseInfo ( @window, @grid, @xWin, @yWin, @state, @time )
XgrGetSelectedWindow ( @window )
XgrSetSelectedWindow ( window )

message functions
XgrAddMessage ( wingrid, message, v0, v1, v2, v3 )
XgrDeleteMessages ( count )
XgrGetCEO (@func )
XgrGetMessages (@count, @messages[] )
XgrGetMessageType ( message, @messageType )
XgrJamMessage ( wingrid, message, v0, v1, v2, v3 )
XgrMessageNameToNumber ( message$, @message )
XgrMessageNames (@count, messages$[] )
XgrMessageNumberToName ( message, @message$ )
XgrMessageToMessageType ( message, messageType )
XgrMessagesPending (@count )
XgrPeekMessage (@wingrid, @message, @v0, @v1, @v2, @v3 )
XgrProcessMessages ( maxCount )
XgrRedrawWindow ( window, action, xWin, yWin, width, height )
XgrRegisterMessage ( message$, @message )
XgrSendMessage ( wingrid, message, v0, v1, v2, v3, r0, r1 )
XgrSendMessageToWindow ( wingrid, message, v0, v1, v2, v3, r0, r1 )
XgrSendStringMessage ( wingrid, message$, v0, v1, v2, v3, r0, r1 )
XgrSendStringMessageToWindow ( wingrid, message$, v0, v1, v2, v3, r0, r1 )
XgrSetCEO ( func )

messages
MouseDown ( grid, MouseDown, x, y, state, time, 0, focusGrid )
MouseDrag ( grid, MouseDrag, x, y, state, time, 0, focusGrid )
MouseEnter ( grid, MouseEnter, x, y, state, time, 0, focusGrid )
MouseExit ( grid, MouseExit, x, y, state, time, 0, focusGrid )
MouseMove ( grid, MouseMove, x, y, state, time, 0, focusGrid )
MouseUp ( grid, MouseUp, x, y, state, time, 0, focusGrid )
RedrawGrid ( grid, RedrawGrid, x, y, state, time, 0, 0 )
TimeOut ( grid, TimeOut, 0, 0, 0, 0, 0, 0 )
WindowDeselected ( window, WindowDeselected, 0, 0, 0, 0, 0, 0 )
WindowDestroyed ( window, WindowDestroyed, 0, 0, 0, 0 )
WindowDisplayed ( window, WindowDisplayed, 0, 0, 0, 0, 0, 0 )
WindowHidden ( window, WindowHidden, 0, 0, 0, 0, 0, 0 )
WindowKeyDown ( window, WindowKeyDown, x, y, state, time, 0, 0 )
WindowKeyUp ( window, WindowKeyUp, x, y, state, time, 0, 0 )
WindowMaximized ( window, WindowMaximized, 0, 0, 0, 0, 0, 0 )
WindowMinimized ( window, WindowMinimized, 0, 0, 0, 0, 0, 0 )
WindowRedraw ( window, WindowRedraw, xWin, yWin, width, height, 0, 0 )
WindowResized ( window, WindowResized, x, y, width, height, 0, 0 )
WindowSelected ( window, WindowSelected, 0, 0, 0, 0, 0, 0 )