home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / apps / gmemusage / draw.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.7 KB  |  60 lines

  1. /*
  2.  * draw.h
  3.  *
  4.  * Copyright 1994, Silicon Graphics, Inc.
  5.  * All Rights Reserved.
  6.  *
  7.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  8.  * the contents of this file may not be disclosed to third parties, copied or
  9.  * duplicated in any form, in whole or in part, without the prior written
  10.  * permission of Silicon Graphics, Inc.
  11.  *
  12.  * RESTRICTED RIGHTS LEGEND:
  13.  * Use, duplication or disclosure by the Government is subject to restrictions
  14.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  15.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  16.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  17.  * rights reserved under the Copyright Laws of the United States.
  18.  */
  19.  
  20. #define NOSVAL (-1)
  21.  
  22. typedef struct tagProgName {
  23.     char *name;
  24.     struct tagProgName *next;
  25. } PROGNAME;
  26.  
  27. enum tagUsageType { Physical, Resident, Size, MappedObjects };
  28.  
  29. /*
  30.  * Secondary types, for squeezing more info into each bar
  31.  */
  32. enum tagSecondType { None, Priv, Shared, Phys, Res };
  33.  
  34. typedef enum tagUsageType UsageType;
  35. typedef enum tagSecondType SecondType;
  36.  
  37. extern PROGRAM * DrawSetup(PROGRAM *new, PROGRAM *old, long physMem,
  38.                long freeMem, UsageType type,
  39.                SecondType stype, int all,
  40.                int *barTotal, int *numBars);
  41.  
  42. extern void Resize(void);
  43.  
  44. extern void Init(PROGNAME *progNames, long threshHold);
  45.  
  46. extern void
  47. Draw(PROGRAM *usageList, int barTotal, int numBars, char *progName,
  48.      UsageType type, SecondType stype);
  49.  
  50. extern void DrawShadow(PROGRAM *usage, int barTotal, char *progName);
  51.  
  52. extern void SetThreshHold(long thresh);
  53.  
  54. extern void Help(void);
  55.  
  56. extern char * Select(PROGRAM *usage, long x, long y, int *procMode,
  57.              int dragging);
  58.  
  59. extern void WaitMessage(char *message, char *detail);
  60.