home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 576.lha / DiskSpeed_v4.0 / mks_list.h < prev    next >
C/C++ Source or Header  |  1991-09-11  |  3KB  |  98 lines

  1. /*
  2.  * MKSoft Development Amiga ToolKit V1.0
  3.  *
  4.  * Copyright (c) 1985,86,87,88,89,90,91 by MKSoft Development
  5.  *
  6.  *                          DiskSpeed v4.0
  7.  *                                by
  8.  *                           Michael Sinz
  9.  *
  10.  *             Copyright (c) 1989 by MKSoft Development
  11.  *
  12.  *            MKSoft Development
  13.  *            163 Appledore Drive
  14.  *            Downingtown, PA 19335
  15.  *
  16.  * Yes, this is yet another disk speed testing program, but with a few
  17.  * differences.  It was designed to give the most accurate results of the
  18.  * true disk performance in the system.  For this reason many of
  19.  * DiskSpeed's results may look either lower or higher than current disk
  20.  * performance tests.
  21.  *
  22.  ******************************************************************************
  23.  *                                          *
  24.  *    Reading legal mush can turn your brain into guacamole!              *
  25.  *                                          *
  26.  *        So here is some of that legal mush:                  *
  27.  *                                          *
  28.  * Permission is hereby granted to distribute this program's source          *
  29.  * executable, and documentation for non-commercial purposes, so long as the  *
  30.  * copyright notices are not removed from the sources, executable or          *
  31.  * documentation.  This program may not be distributed for a profit without   *
  32.  * the express written consent of the author Michael Sinz.              *
  33.  *                                          *
  34.  * This program is not in the public domain.                      *
  35.  *                                          *
  36.  * Fred Fish is expressly granted permission to distribute this program's     *
  37.  * source and executable as part of the "Fred Fish freely redistributable     *
  38.  * Amiga software library."                              *
  39.  *                                          *
  40.  * Permission is expressly granted for this program and it's source to be     *
  41.  * distributed as part of the Amicus Amiga software disks, and the          *
  42.  * First Amiga User Group's Hot Mix disks.                      *
  43.  *                                          *
  44.  ******************************************************************************
  45.  */
  46.  
  47. #ifndef    MKS_MKS_LIST_H
  48. #define    MKS_MKS_LIST_H
  49.  
  50. #include    <exec/types.h>
  51. #include    <exec/lists.h>
  52. #include    <exec/nodes.h>
  53. #include    <graphics/text.h>
  54. #include    <intuition/intuition.h>
  55.  
  56. /*
  57.  * The DisplayList structure returned by InitListGadget
  58.  *
  59.  * This structure is fully managed by the ListGadget
  60.  * code.  These are the only structure elements that
  61.  * are visible and they are *READ ONLY*
  62.  */
  63. struct    DisplayList
  64. {
  65.     struct    Node    *Selected;    /* These are the only PUBLIC fields... */
  66. };
  67.  
  68. /*
  69.  * This routine deallocates the DisplayList allocated below...
  70.  * It does not do any unlinking...
  71.  */
  72. void FreeListGadget(struct DisplayList *);
  73.  
  74. /*
  75.  * This routine allocates and initializes a DisplayList gadget...
  76.  * It will link the gadgets into the gadget list given...
  77.  *
  78.  * Arguments:  TextAttr,**Gadget,TextPen,Highlight,Shadow,Left,Top,Width,Height
  79.  */
  80. struct DisplayList *InitListGadget(struct TextAttr *,struct Gadget **,UBYTE,UBYTE,UBYTE,SHORT,SHORT,SHORT,SHORT);
  81.  
  82. /*
  83.  * This routine will initialize a fresh list.  It clears Selected,
  84.  * sets TopNum to 0, counts the entries, and displays the list...
  85.  */
  86. void FreshList(struct Window *,struct DisplayList *,struct MinList *);
  87.  
  88. /*
  89.  * This is the InputEvent filter...
  90.  * Call this routine with each message.  If it returns a pointer to
  91.  * a DisplayList, a message was processed, if it returns NULL, nothing
  92.  * was done with the message and you may process it.
  93.  * The message is NOT ReplyMsg()ed...
  94.  */
  95. struct DisplayList *Check_ListGadget(struct Window *,struct IntuiMessage *);
  96.  
  97. #endif    /* MKS_MKS_LIST_H */
  98.