home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11tl.lha / lbl / xview / genial / include / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-14  |  1.6 KB  |  50 lines

  1. /*
  2.  * log.h -- include file for all functions which involve logging
  3.  *
  4.  */
  5.  
  6. #include <X11/Xlib.h>
  7. #include "trace.h"
  8. #include "histo.h"
  9. #include "zoom.h"
  10.  
  11. struct strbs {            /* backing store for a string */
  12.     /*
  13.      * only stores enough information to be able to redraw the text and to be
  14.      * able to refresh the image.  Doesn't store any image backgrounds
  15.      */
  16.     int       x, y;        /* same as x and y passed to XDrawString(). */
  17.     char     *string;        /* the actual text */
  18.     XCharStruct metr;        /* the metrics of the string as returned from
  19.                  * XTextExtents */
  20. };
  21.  
  22.  
  23. struct logent {
  24.     struct logent *next, *prev;
  25.     int       opcode;        /* Op-Code representing the type of
  26.                  * analytical function */
  27.     int       id;        /* id which uniquely identifies this entry
  28.                  * into the log */
  29.     struct region *reg;        /* region on which this function operates */
  30.     struct region *pvreg;    /* preview region pointer */
  31.     int       fnum;        /* frame number for this log entry */
  32.  
  33.     unsigned char *auxdata;    /* auxiliary data, specific to the function */
  34.     unsigned long auxdsize;    /* size of auxdata, also function dependent */
  35.     struct strbs *sbs;        /* string associated with the log entry. This
  36.                  * will be the log id, usually */
  37.  
  38.     struct trcontext *trace;    /* only one of these will be used at a time */
  39.     struct hcontext *hist;
  40.     struct zcontext *zoom;
  41. };
  42.  
  43. /* a pointer to the current log entry */
  44. extern struct logent *loghead, *logtail, *curfunc, *lastfunc, *newfunc();
  45.  
  46. extern XFontStruct *xfs;
  47.  
  48. /* a global variable signalling that the log is being loaded. */
  49. extern int load_log;
  50.