home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 331 / gemfut14 / gemutil.doc < prev    next >
Encoding:
Text File  |  1990-07-20  |  27.6 KB  |  554 lines

  1. **************************************************************************
  2. *
  3. * GEMUTIL.DOC - Descriptions of the utility functions in GEMFAST.
  4. *
  5. *  05/26/90 - v1.4
  6. *             The rsc_gstrings()/rsc_sstrings() routines now support ICONs.
  7. *
  8. *             The frm_dsdial() function has been added.
  9. *
  10. *  08/28/89 - v1.3
  11. *             Massive changes have been made to the utilty routines, and
  12. *             to this document.  Your best bet is to read the entire doc
  13. *             over again.
  14. *
  15. *             Most of the changes involve renaming routines to move toward
  16. *             a consistant naming standard (which is to pave the way for
  17. *             things planned for v2.0).  I've done my best to cover the
  18. *             name changes with #define statements in GEMFAST.H, so your
  19. *             existing code should work, but you should make every effort
  20. *             to convert existing and new code to the new names.  Sorry,
  21. *             I guess I wasn't thinking far enough ahead when I did the
  22. *             first release.
  23. *             
  24. *             For all the renamed routines, I've put the old name in
  25. *             the title bar of the new function's name.
  26. **************************************************************************
  27.  
  28. This document describes the functions in the AESUTxxx modules of the
  29. GEMFAST bindings.  These are not GEM function calls, and thus are not
  30. documented in standard GEM programming guides.
  31.  
  32. Within this document, the most changes will be indicated by a vertical bar 
  33. and the change level (|vX.X).
  34.  
  35. Definitions:
  36.  
  37. NO_OBJECT - A constant defined in GEMFAST.H; it has a value of -1.  This
  38.             value is used by most object-related utilties to indicate that
  39.             no object was found with the criteria specified in the search
  40.             (eg, for objc_find(), obj_rbfind(), etc).
  41.  
  42. GRECT     - A graphics-type rectangle of the form x,y,w,h.  A GRECT
  43.             describes a screen area by defining the x/y of the upper left
  44.             corner, and the width and height of the area.
  45.  
  46. VRECT     - A vdi-type rectangle of the form x1,y1,x2,y2.  A VRECT
  47.             describes a screen area by defining the upper left and lower
  48.             right corners of the area in x/y coordinates.
  49.  
  50. xRECT     - Used to indicate that either of the above types is accepted.
  51.  
  52. ;*************************************************************************
  53. ; Rectangle utilties.
  54. ;*************************************************************************
  55.  
  56. ;-------------------------------------------------------------------------
  57. ; rc_copy
  58. ;-------------------------------------------------------------------------
  59.  
  60. void rc_copy (xRECT *source, xRECT *dest)
  61.  
  62.         This function copies a rectangle.  It will copy either a GRECT or
  63.         VRECT type rectangle.  More generally, it will copy 2 longwords
  64.         from source to dest, they don't have to be rectangles at all.
  65.          >> NOTE BACKWARDS ORDER OF SOURCE & DEST.  Sorry, not my decision.
  66.  
  67. ;-------------------------------------------------------------------------
  68. ; rc_equal
  69. ;-------------------------------------------------------------------------
  70.  
  71. bool rc_equal(xRECT *rect1, xRECT *rect2)
  72.         
  73.         This function tests 2 rectangles for equality and returns TRUE/FALSE
  74.         (1/0) accordingly.  Works on GRECT or VRECT type rectangles, but
  75.         both rectangles must be of the same type.  More generally, this
  76.         function compare 2 sets of 2 contiguous longwords.
  77.  
  78. ;-------------------------------------------------------------------------
  79. ; rc_intersect
  80. ;-------------------------------------------------------------------------
  81.      
  82. bool rc_intersect(GRECT *rect1, GRECT *rect2)
  83.  
  84.         This function computes the intersection of 2 rectangles.  It works
  85.         only for GRECT type rectangles.  The intersection is the parts of 
  86.         two rectangles which overlap each other; this function is typically
  87.         used in processing the AES window-update rectangle list.  The result
  88.         is placed into 'rect2', overlaying the original data (again, not my
  89.         decision).  TRUE/FALSE is returned, depending on whether the 
  90.         rectangles had a common intersected area or not; the values in 
  91.         'rect2' are modified regardless of whether there was an intersection or not.
  92.         If the rectangle representing the intersecting area has a width or
  93.         height of zero, this routine will return TRUE.
  94.  
  95. ;-------------------------------------------------------------------------
  96. ; rc_union
  97. ;-------------------------------------------------------------------------
  98.  
  99. void rc_union(GRECT *rect1, GRECT *rect2)
  100.  
  101.         This function computes the union of two rectangles.  The union is 
  102.         the single rectangle that encompases all the area defined by the 
  103.         individual rectangles.  It works only for GRECT type rectangles.  
  104.         The result is placed into 'rect2'.
  105.  
  106. ;-------------------------------------------------------------------------
  107. ; rc_vtog
  108. ;-------------------------------------------------------------------------
  109.      
  110. void rc_vtog(VRECT *rect1, GRECT *rect2)
  111.  
  112.         This function converts a VRECT rectangle to a GRECT rectangle.
  113.         Do not specify the same rectangle for input and output.
  114.  
  115. ;-------------------------------------------------------------------------
  116. ; rc_gtov
  117. ;-------------------------------------------------------------------------
  118.         
  119. void rc_gtov(GRECT *rect1, VRECT *rect2)
  120.  
  121.         This function converts a GRECT rectangle to a VRECT rectangle.
  122.         Do not specify the same rectangle for input and output.
  123.  
  124. ;-------------------------------------------------------------------------
  125. ; rc_vadjust            (formerly objclv_adjust)
  126. ; rc_gadjust            (formerly objclg_adjust)
  127. ;-------------------------------------------------------------------------
  128.         
  129. void rc_vadjust(VRECT *rect, int h_adjust, int v_adjust);
  130. void rc_gadjust(GRECT *rect, int h_adjust, int v_adjust);
  131.  
  132.         These functions expand or contract a rectangle by a given amount
  133.         in each axis. A positive value exands the area, a negative
  134.         value contracts it.  You must use rc_gadjust for GRECTs and
  135.         rc_vadjust for VRECTs.  
  136.         
  137. |v1.3   Negative results are prevented by the adjust routines; zero will be 
  138. |       placed into any rectangle structure element which would have been 
  139. |       negative after the adjustment.
  140.         
  141. ;*************************************************************************
  142. ; Object utilities.
  143. ;*************************************************************************
  144.  
  145. ;-------------------------------------------------------------------------
  146. ; obj_flchange          (formerly objfl_change)
  147. ;-------------------------------------------------------------------------
  148.  
  149. void obj_flchange(OBJECT *tree, int object, int flagsmask, int updateflag);
  150.  
  151.         This function sets or resets bits in an object's ob_flags field.
  152.         Depending on the setting of 'updateflag' the object is updated 
  153.         on the screen or not. (Update is done via objc_draw internally).
  154.         If the high bit of 'flagsmask' is set, the flags bits are reset,
  155.         otherwise they are set.  This allows the following syntax:
  156.            objfl_change(mytree, myobj,  HIDETREE, TRUE);
  157.            objfl_change(mytree, myobj, ~HIDETREE, FALSE);
  158.         The first case will set 'myobj' to hidden and will erase it from
  159.         the screen.  The second case will set 'myobj' to visible, but does
  160.         not update the screen.
  161.         
  162.         Note that you CAN use this function to hide and unhide trees
  163.         visibly on the screen.  When the objc_draw is called internally
  164.         by this function, the draw starts at the root of the tree, but is
  165.         clipped by the x/y/w/h of the object who's state is being changed.
  166.         This means that a flag change to HIDETREE with update will draw
  167.         the parents of the hidden object, effectively erasing it on the
  168.         screen.  The same holds true for setting an object to ~HIDETREE;
  169.         the object will be redrawn and become visible.
  170.  
  171. |v1.4   Be aware that the xywh sizes of the changed object are used in the 
  172. |       internal objc_draw() when redraw is requested.  For window-oriented
  173. |       programs, where some of the object tree might be outside a window's
  174. |       work area, it is best for the calling program to request no redraw,
  175. |       and then to handle the redraw itself, specifying the window's work
  176. |       area as a clipping rectangle.  (This is not new for v1.4, it just
  177. |       hasn't been documented as such before.)
  178.         
  179. ;-------------------------------------------------------------------------
  180. ; obj_stchange          (formerly objst_change)
  181. ;-------------------------------------------------------------------------
  182.  
  183. void obj_stchange(OBJECT *tree, int object, int statemask, int updateflag);
  184.  
  185.         This function sets or resets bits in an object's ob_state field.
  186.         Depending on the setting of 'updateflag' the object is updated 
  187.         on the screen or not. (Update is done via objc_draw internally).
  188.         If the high bit of 'statemask' is set, the state bits are reset,
  189.         otherwise they are set.  This allows the following syntax:
  190.            objst_change(mytree, myobj,  SELECTED, TRUE);
  191.            objst_change(mytree, myobj, ~SELECTED, FALSE);
  192.         The first case will set 'myobj' to SELECTED and show it that way
  193.         on the screen.  The second case will set 'myobj' to non-selected,
  194.         and will not update the screen.
  195.  
  196. |v1.4   Be aware that the xywh sizes of the root object are used in the 
  197. |       internal objc_draw() when redraw is requested.  For window-oriented
  198. |       programs, where some of the object tree might be outside a window's
  199. |       work area, it is best for the calling program to request no redraw,
  200. |       and then to handle the redraw itself, specifying the window's work
  201. |       area as a clipping rectangle.  (This is not new for v1.4, it just
  202. |       hasn't been documented as such before.)
  203.         
  204. ;-------------------------------------------------------------------------
  205. ; obj_xywh              (formerly objc_xywh)
  206. ;-------------------------------------------------------------------------
  207.  
  208. void obj_xywh(OBJECT *tree, int object, GRECT *rect);
  209.  
  210.         Returns an object's x/y/w/h values into a GRECT rectangle.  Note
  211.         that the x/y values are NOT automatically adjusted to screen 
  212.         coordinates, they are copied directly from the object tree 
  213.         structure.  (Thus, if the object index is 0 (R_TREE) the rectangle 
  214.         will reflect screen coordinates, for any child object it will not.)
  215.  
  216. ;-------------------------------------------------------------------------
  217. ; obj_offxywh
  218. ;-------------------------------------------------------------------------
  219.  
  220. void obj_offxywh( OBJECT *tree, int object, GRECT *rect);
  221.  
  222.         Returns any object's screen-adjusted x/y/w/h values into a GRECT 
  223.         rectangle.  This is a shortcut to calling objc_offset() then
  224.         copying the object's w/h data into the GRECT structure.
  225.  
  226. ;-------------------------------------------------------------------------
  227. ; objcl_calc            (THIS ROUTINE IS BEING PHASED OUT!)
  228. ;-------------------------------------------------------------------------
  229.  
  230. void objcl_calc(OBJECT *tree, int object, {GRECT *r1|NULL}, {VRECT *r2|NULL});
  231.  
  232. |v1.3   THIS ROUTINE IS BEING PHASED OUT, DO NOT RELY ON IT!  It will be
  233. |       rewritten someday, but will have a new name (obj_clipcalc).
  234.  
  235.         This routine does clipping calculations for an object. It calculates
  236.         both GRECT and VRECT clipping rectangle simulataneously; if you
  237.         specify a null pointer for one of the rectangle types those values
  238.         won't be returned.  This function will handle OUTLINED and SHADOWED
  239.         objects, and will return the proper clipping rectangle to be passed
  240.         to objc_draw() or vs_clip().  Typical usage might be:
  241.          To redraw an object after changing ob_state or ob_flags...
  242.             objcl_calc(mytree, refreshobj, &cliprect, 0L);
  243.             objc_draw(mytree, refreshobj, MAX_DEPTH, cliprect);
  244.          To outline an object with a VDI rounded rectangle...  
  245.             objcl_calc(mytree, refreshobj, 0L, &boxrect);
  246.             v_rbox(vdi_handle, &boxrect);
  247.  
  248. ;-------------------------------------------------------------------------
  249. ; obj_rbfind            (formerly objxrb_which)
  250. ;-------------------------------------------------------------------------
  251.  
  252. int  obj_rbfind(OBJECT *tree, int parentobj, int state);
  253.  
  254.         This function returns the index of the first child object of the
  255.         specified parent which is in the desired state, or -1 if no child
  256.         objects are in that state.  Note that the state test is done via
  257.         bit-wise AND. As an example, it is possible to find an object which is
  258.         either SELECTED *OR* CROSSED, but it is not possible to limit the
  259.         search to only for objects which are *both* SELECTED *AND* CROSSED.
  260.  
  261. ;-------------------------------------------------------------------------
  262. ; objrb_which           (old name, which will be dropped eventualy)
  263. ; obj_rbwhich           (old name, which will be dropped eventualy)
  264. ;-------------------------------------------------------------------------
  265.  
  266. int  objrb_which(OBJECT *tree, int parentobj);
  267.  
  268.         This function returns the index of the first child object of the
  269.         specified parent which has the SELECTED bit set, or -1 if no child
  270.         objects are selected.  It is most useful in determining which 
  271. |v1.3   radio button in a group has been selected.  This function is
  272. |       supported via a #define in the GEMFAST.H file, and actually 
  273. |       generates a call to obj_rbfind(), passing a state of SELECTED.
  274. |
  275. |       This function is being phased out, it is recommended that you use
  276. |       obj_rbfind(tree, parent, SELECTED) to perform this function.
  277.  
  278. ;-------------------------------------------------------------------------
  279. ; obj_rbselect
  280. ;-------------------------------------------------------------------------
  281.  
  282. int  obj_rbselect(OBJECT *tree, int object, int state);
  283.  
  284.         This function logically de-selects the current object in a group
  285.         of radio buttons and selects the specified object.  The return 
  286.         value is the index of the object that was selected before the
  287.         function was called.  Rules for the 'state' value are as described
  288.         under the obj_rbfind function.
  289.         
  290.         This function can handle the situation where there is no object in
  291.         the radio button group which is currently selected; the new object
  292.         is set to the specified state.  This function *assumes* that the
  293.         new object is a radio button type object, and that all other objects
  294.         in the new object's parent are also radio button type objects.
  295.         This does not have to be the case, but the routine can break down
  296.         under extreme conditions (eg, don't try to specify the root as the
  297.         new object.)
  298.  
  299.         Note that this function DOES NOT REDRAW either of the objects
  300.         which are changed, it only changes the ob_state values in the
  301.         object array.  This function is primarily designed to pre-set
  302.         radio buttons to a known state before calling a dialog handler.
  303.         If redraw is needed as well, use a sequence such as:
  304.         
  305.             oldobj = obj_rbselect(ptree, newobj, SELECTED);
  306.             if (oldobj > R_TREE)       
  307.                 objc_draw(ptree, oldobj, MAX_DEPTH, cliprect);
  308.             objc_draw(ptree, newobj, MAX_DEPTH, cliprect);
  309.  
  310.         Alternatively, a single objc_draw() can be used, specifying the
  311.         parent of the radio button group.  (This works fine for small 
  312.         groups of radio buttons, but the speed of redraw can be a factor
  313.         for a large group of buttons.)
  314.         
  315. |v1.4   This function is new with this version.
  316.  
  317. ;-------------------------------------------------------------------------
  318. ; obj_parent
  319. ;-------------------------------------------------------------------------
  320.  
  321. int  obj_parent(OBJECT *tree, int curentobj);
  322.  
  323.         This function returns the index of the parent object of the
  324.         specified object.  By definition, the root object in a tree has
  325.         no parent, 0 will be returned (as if the root were its own parent).
  326.         This function is useful for things like building your own radio
  327.         button handler using evnt_multi().
  328.  
  329. ;-------------------------------------------------------------------------
  330. ; obj_xtfind
  331. ;-------------------------------------------------------------------------
  332.  
  333. int  obj_xtfind(OBJECT *tree, int parent, int xtype);
  334.  
  335.         This function returns the index of the child object within 'parent'
  336.         which has the specified extended object type.  The extended object
  337.         type is encoded within the high byte of the ob_type field, and is
  338.         useful for categorizing objects by function, or for connecting
  339.         objects to array elements by using the extended type as an index.
  340.         If no object with the given type is found, NO_OBJECT is returned.
  341.         
  342. |v1.4   This function is new with this release.  It is the functional 
  343. |       equivelent of the old find_exttype() routine from the 'canned
  344. |       source' library.
  345.  
  346. ;*************************************************************************
  347. ; Resource utilties.
  348. ;*************************************************************************
  349.  
  350. ;-------------------------------------------------------------------------
  351. ; rsc_sstrings
  352. ;-------------------------------------------------------------------------
  353.  
  354. void rsc_sstrings(OBJECT *tree, 
  355.                     int obj1,char *ptr1,
  356.                     [obj2,ptr2, ... objn,ptrn,]
  357.                     -1);
  358.                  
  359.         This function sets one or more string pointers within an object
  360.         tree.  It understands the difference between STRING, BUTTON, and
  361.         TEXT object types, and sets the appropriate pointer fields (ob_spec
  362.         or te_ptext).  Any number of object/pointer pairs may be specified,
  363.         the list is terminated by a negative object number.  The purpose
  364.         of this function is to replace all the lines of code looking like...
  365.             *((TEDINFO *)(tree[object].ob_spec))->te_ptext = pointer;
  366.         with the simpler construct...
  367.             rsc_strings(tree, str1obj,pstr1, 
  368.                               txt1obj,ptxt1, 
  369.                               /* etc */ 
  370.                               -1);
  371.  
  372. |v1.3   This routine understands objects with the INDIRECT flag set, and 
  373. |       will use the ob_spec field as an indirect pointer if appropriate.
  374. |v1.4   This routine now handles ICON objects.
  375.  
  376. ;-------------------------------------------------------------------------
  377. ; rsc_gstrings
  378. ;-------------------------------------------------------------------------
  379.  
  380. void rsc_gstrings(OBJECT *tree, 
  381.                     int obj1,char **ptr1,
  382.                     [obj2,**ptr2, ... objn,**ptrn,]
  383.                     -1);
  384.                  
  385.         This function gets one or more string pointers from within an object
  386.         tree.  It understands the difference between TEXT/nonTEXT object
  387.         types, and gets the appropriate fields (ob_spec or te_ptext). 
  388.         Any number of object/pointer pairs may be specified, the list is
  389.         terminated by a negative object number.  This is a provided as a 
  390.         shortcut to doing a long series of rsrc_gaddr() calls to get the
  391.         string/text pointers from a tree.  Note that this function is not
  392.         as flexible as rsrc_gaddr()...if the object type is one of the
  393.         text objects, it will return a te_ptext pointer, otherwise the
  394.         ob_spec value is returned.  When used with strings/text, the 
  395.         ob_spec field will be a string pointer.
  396.  
  397.           example() {
  398.           char *string1;
  399.           char *text2;
  400.                     
  401.           rsrc_gaddr(R_TREE, MYTREE, &mytree);
  402.           rsc_gstrings(mytree, MYSTR1,&string1,
  403.                                MYTXT2,&text2,
  404.                                -1);
  405.           }
  406.  
  407. |v1.3   This routine understands objects with the INDIRECT flag set, and 
  408. |       will use the ob_spec field as an indirect pointer if appropriate.
  409. |       Unlike previous releases, this routine has now been tested.
  410. |v1.4   This routine now understands ICON objects.
  411.         
  412. ;-------------------------------------------------------------------------
  413. ; rsc_treefix
  414. ;-------------------------------------------------------------------------
  415.           
  416. void rsc_treefix(OBJECT *tree);
  417.         
  418.         This function performs an rsrc_obfix() call for all objects in
  419.         a tree.  It's handy when using resource trees imbedded as source
  420.         code within your program, which require manual x/y fixup.  
  421.         
  422.         NOTE:  This functions uses the LASTOB bit in ob_flags to determine
  423.         when it has hit the end of the tree.  When coding your resource
  424.         tree, please be careful to set the LASTOB bit in the last object 
  425.         in the array.  Note that this is NOT a routine to provide a full
  426.         fixup of .RSH-type code emmitted by a resource construction editor;
  427.         this routine does only x/y/w/h fixup on a single tree, and does 
  428. |v1.4   not resolve cross-structure pointers.  (The C source code files
  429. |       RSHFIXUP.C and RS2FIXUP.C will provide the full runtime support for
  430. |       embedded resource files.  These are distributed separately from
  431. |       the GEMFAST package.)
  432.  
  433. ;*************************************************************************
  434. ;* Forms utilities.
  435. ;*************************************************************************
  436.  
  437. ;-------------------------------------------------------------------------
  438. ; frm_dsdial
  439. ;-------------------------------------------------------------------------
  440.  
  441. int  frm_dsdial(char *pstrings[], char *pbuttons[], int graphicsflag);
  442.                  
  443.         This function dynamically builds a dialog box around some
  444.         boilerplate text and displays it.  It is particularly useful for
  445.         displaying help screens, or for explaining a situation to the
  446.         user and providing a list of up to 5 choices/actions to be selected
  447.         via buttons (like a mega-sized alert box).
  448.         
  449.         The dialog box will be dynamically sized to hold as many as 20 lines
  450.         of text, and will adjust itself to the widest text line.  Up to 5
  451.         buttons may be specified, and the buttons will be centered at the
  452.         bottom of the dialog box.  The rightmost button (the last one 
  453.         specified) will always be the DEFAULT button.  It is the caller's
  454.         responsibility to insure that the widest text line (or the combined
  455.         length of the buttons) doesn't cause the dialog box to be wider 
  456.         than the current screen.  (EG, no auto-word-wrap here!)
  457.         
  458.         The routine returns the index of the button used to exit (first
  459.         button == 0, etc).
  460.         
  461.         To specify the text lines and buttons, the caller passes pointers
  462.         to arrays of pointers to strings.  (This is not as complex as it
  463.         sounds, see the example below.)  A pointer to a NULL string (not
  464.         a NULL pointer!) terminates the lists of text and buttons.
  465.         
  466.         The caller also passes a TRUE/FALSE value for 'graphicsflag', to 
  467.         indicate whether FMD_GROW and FMD_SHRINK graphics should be done 
  468.         as part of the dialog processing.
  469.  
  470.         The following example shows setting up and calling this routine:
  471.         
  472.         char    *help1_screen[] = {
  473.             "            Help Screen 1",   /* title line, hand-centered */
  474.             "This is the first in a series of",
  475.             "help screens which tell you basically",
  476.             "nothing of true interest.  If you are",
  477.             "foolish enough to select the 'NEXT'",
  478.             "button, below, you will see even more",
  479.             "screens full of worthless information."
  480.             " ",                    /* 1 blank line between text & buttons */
  481.             ""};                    /* NULL string terminates the list     */
  482.             
  483.         char    help1_buttons[] = {
  484.             "NEXT",
  485.             "DONE", 
  486.             """};                   /* NULL string terminates the list     */
  487.         int     btn;
  488.         
  489.         btn = frm_dsdial(help1_screen, help1_buttons, TRUE);
  490.         if (btn == 0) {
  491.             /* show second help screen */
  492.         } 
  493.  
  494.         While this routine can be incredibly useful in handling help text,
  495.         it should be noted that it is rather large.  After linking, it will
  496.         add about 1.5k to the size of your application (making it the largest
  497.         entity in the GEMFAST system).  
  498.  
  499. |v1.4   This routine is new with this release.
  500.  
  501. ;*************************************************************************
  502. ; Graphics Utilities.
  503. ;  These utilties are NOT available in C source code form, as they use
  504. ;  the Line-A TOS interface, which must be accessed via assembler code.
  505. ;*************************************************************************
  506.  
  507. ;-------------------------------------------------------------------------
  508. ; gra_qonmouse          (formerly graqon_mouse)
  509. ; gra_qofmouse          (formerly graqof_mouse)
  510. ;-------------------------------------------------------------------------
  511.  
  512. void graqon_mouse();
  513. void graqof_mouse();
  514.  
  515.         These routines turn the mouse pointer on and off quickly (using
  516.         the Line-A HideMouse/ShowMouse routines).  They will execute much
  517.         faster than the equivelant graf_mouse() calls, and they behave
  518. |v1.3   in a similar manner.  Specifically, the graf_mouse() calls track 
  519. |       the number of Hide/Show calls and if you 'hide' the mouse 3 times, 
  520. |       you must use the 'show' call 3 times before the mouse reappears.  
  521. |       These routines will behave in the same way (as of v1.3).  
  522.  
  523. ;-------------------------------------------------------------------------
  524. ; gra_qmstate           (formerly graq_mstate)
  525. ;-------------------------------------------------------------------------
  526.  
  527. graq_mstate(int *mousex, int *mousey, int *mousebtns);
  528.  
  529.         This routine returns the mouse x/y location and button state
  530.         quickly, using the Line-A variable structure as the source of 
  531.         information.  It is much faster than the graf_mkstate() call, and
  532.         it does not return the keyboard state information.  If you have
  533.         an application full of graf_mkstate() calls that don't use the
  534.         keystate info, you can code 
  535.           #define graf_mkstate(a,b,c,d) graq_mstate((a),(b),(c))
  536.         at the top of your program and instantly convert to the faster
  537.         routine.  (Caveat:  This routine is NOT well-tested in v1.0).
  538.         
  539. |v1.3   (NOTE:  I've had problems with using this routine in conjunction
  540. |       with evnt_mouse and evnt_multi type calls.  It seems that if you
  541. |       use the AES graf_mkstate() call it will (maybe?) clear some flag
  542. |       indicating a mouse-related event is pending.  When you use this
  543. |       Line-A routine, the event is left pending, and the next evnt_????
  544. |       call doesn't work as you'd expect.  I know, I know, I'm not being
  545. |       very clear; that's only because I haven't looked into it too 
  546. |       closely.  All I can say for sure is that some well-tested code
  547. |       broke when I #defined graf_mkstate to invoke this routine, and when
  548. |       I put it back, the code started working again.  Other code, however
  549. |       works just fine with graf_mkstate #define'd to this routine.- Ian)
  550.  
  551. ;*************************************************************************
  552. ;* End of doc.
  553. ;*************************************************************************
  554.