source: trunk/kitgen/8.x/blt/generic/bltGrLegd.h@ 181

Last change on this file since 181 was 175, checked in by demin, 12 years ago

initial commit

File size: 2.5 KB
Line 
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
40extern int Blt_CreateLegend _ANSI_ARGS_((Graph *graphPtr));
41extern void Blt_DestroyLegend _ANSI_ARGS_((Graph *graphPtr));
42extern void Blt_DrawLegend _ANSI_ARGS_((Legend *legendPtr, Drawable drawable));
43extern void Blt_MapLegend _ANSI_ARGS_((Legend *legendPtr, int width,
44 int height));
45extern int Blt_LegendOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp,
46 int argc, char **argv));
47extern int Blt_LegendSite _ANSI_ARGS_((Legend *legendPtr));
48extern int Blt_LegendWidth _ANSI_ARGS_((Legend *legendPtr));
49extern int Blt_LegendHeight _ANSI_ARGS_((Legend *legendPtr));
50extern int Blt_LegendIsHidden _ANSI_ARGS_((Legend *legendPtr));
51extern int Blt_LegendIsRaised _ANSI_ARGS_((Legend *legendPtr));
52extern int Blt_LegendX _ANSI_ARGS_((Legend *legendPtr));
53extern int Blt_LegendY _ANSI_ARGS_((Legend *legendPtr));
54extern void Blt_LegendRemoveElement _ANSI_ARGS_((Legend *legendPtr,
55 Element *elemPtr));
56#endif /* BLT_GR_LEGEND_H */
Note: See TracBrowser for help on using the repository browser.