[175] | 1 | /*
|
---|
| 2 | * bltGrLegd.h --
|
---|
| 3 | *
|
---|
| 4 | * Copyright 1991-1998 Lucent Technologies, Inc.
|
---|
| 5 | *
|
---|
| 6 | * Permission to use, copy, modify, and distribute this software and
|
---|
| 7 | * its documentation for any purpose and without fee is hereby
|
---|
| 8 | * granted, provided that the above copyright notice appear in all
|
---|
| 9 | * copies and that both that the copyright notice and warranty
|
---|
| 10 | * disclaimer appear in supporting documentation, and that the names
|
---|
| 11 | * of Lucent Technologies any of their entities not be used in
|
---|
| 12 | * advertising or publicity pertaining to distribution of the software
|
---|
| 13 | * without specific, written prior permission.
|
---|
| 14 | *
|
---|
| 15 | * Lucent Technologies disclaims all warranties with regard to this
|
---|
| 16 | * software, including all implied warranties of merchantability and
|
---|
| 17 | * fitness. In no event shall Lucent Technologies be liable for any
|
---|
| 18 | * special, indirect or consequential damages or any damages
|
---|
| 19 | * whatsoever resulting from loss of use, data or profits, whether in
|
---|
| 20 | * an action of contract, negligence or other tortuous action, arising
|
---|
| 21 | * out of or in connection with the use or performance of this
|
---|
| 22 | * software.
|
---|
| 23 | */
|
---|
| 24 |
|
---|
| 25 | #ifndef _BLT_GR_LEGEND_H
|
---|
| 26 | #define _BLT_GR_LEGEND_H
|
---|
| 27 |
|
---|
| 28 | #define LEGEND_RIGHT (1<<0) /* Right margin */
|
---|
| 29 | #define LEGEND_LEFT (1<<1) /* Left margin */
|
---|
| 30 | #define LEGEND_BOTTOM (1<<2) /* Bottom margin */
|
---|
| 31 | #define LEGEND_TOP (1<<3) /* Top margin, below the graph title. */
|
---|
| 32 | #define LEGEND_PLOT (1<<4) /* Plot area */
|
---|
| 33 | #define LEGEND_XY (1<<5) /* Screen coordinates in the plotting
|
---|
| 34 | * area. */
|
---|
| 35 | #define LEGEND_WINDOW (1<<6) /* External window. */
|
---|
| 36 | #define LEGEND_IN_MARGIN \
|
---|
| 37 | (LEGEND_RIGHT | LEGEND_LEFT | LEGEND_BOTTOM | LEGEND_TOP)
|
---|
| 38 | #define LEGEND_IN_PLOT (LEGEND_PLOT | LEGEND_XY)
|
---|
| 39 |
|
---|
| 40 | extern int Blt_CreateLegend _ANSI_ARGS_((Graph *graphPtr));
|
---|
| 41 | extern void Blt_DestroyLegend _ANSI_ARGS_((Graph *graphPtr));
|
---|
| 42 | extern void Blt_DrawLegend _ANSI_ARGS_((Legend *legendPtr, Drawable drawable));
|
---|
| 43 | extern void Blt_MapLegend _ANSI_ARGS_((Legend *legendPtr, int width,
|
---|
| 44 | int height));
|
---|
| 45 | extern int Blt_LegendOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp,
|
---|
| 46 | int argc, char **argv));
|
---|
| 47 | extern int Blt_LegendSite _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 48 | extern int Blt_LegendWidth _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 49 | extern int Blt_LegendHeight _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 50 | extern int Blt_LegendIsHidden _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 51 | extern int Blt_LegendIsRaised _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 52 | extern int Blt_LegendX _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 53 | extern int Blt_LegendY _ANSI_ARGS_((Legend *legendPtr));
|
---|
| 54 | extern void Blt_LegendRemoveElement _ANSI_ARGS_((Legend *legendPtr,
|
---|
| 55 | Element *elemPtr));
|
---|
| 56 | #endif /* BLT_GR_LEGEND_H */
|
---|