File: bltGrLegd.h

package info (click to toggle)
blt 2.5.3%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 24,864 kB
  • sloc: ansic: 133,724; tcl: 17,680; sh: 2,722; makefile: 799; cpp: 370
file content (56 lines) | stat: -rw-r--r-- 2,581 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * bltGrLegd.h --
 *
 * Copyright 1991-1998 Lucent Technologies, Inc.
 *
 * Permission to use, copy, modify, and distribute this software and
 * its documentation for any purpose and without fee is hereby
 * granted, provided that the above copyright notice appear in all
 * copies and that both that the copyright notice and warranty
 * disclaimer appear in supporting documentation, and that the names
 * of Lucent Technologies any of their entities not be used in
 * advertising or publicity pertaining to distribution of the software
 * without specific, written prior permission.
 *
 * Lucent Technologies disclaims all warranties with regard to this
 * software, including all implied warranties of merchantability and
 * fitness.  In no event shall Lucent Technologies be liable for any
 * special, indirect or consequential damages or any damages
 * whatsoever resulting from loss of use, data or profits, whether in
 * an action of contract, negligence or other tortuous action, arising
 * out of or in connection with the use or performance of this
 * software.
 */

#ifndef _BLT_GR_LEGEND_H
#define _BLT_GR_LEGEND_H

#define LEGEND_RIGHT	(1<<0)	/* Right margin */
#define LEGEND_LEFT	(1<<1)	/* Left margin */
#define LEGEND_BOTTOM	(1<<2)	/* Bottom margin */
#define LEGEND_TOP	(1<<3)	/* Top margin, below the graph title. */
#define LEGEND_PLOT	(1<<4)	/* Plot area */
#define LEGEND_XY	(1<<5)	/* Screen coordinates in the plotting 
				 * area. */
#define LEGEND_WINDOW	(1<<6)	/* External window. */
#define LEGEND_IN_MARGIN \
	(LEGEND_RIGHT | LEGEND_LEFT | LEGEND_BOTTOM | LEGEND_TOP)
#define LEGEND_IN_PLOT  (LEGEND_PLOT | LEGEND_XY)

extern int Blt_CreateLegend _ANSI_ARGS_((Graph *graphPtr));
extern void Blt_DestroyLegend _ANSI_ARGS_((Graph *graphPtr));
extern void Blt_DrawLegend _ANSI_ARGS_((Legend *legendPtr, Drawable drawable));
extern void Blt_MapLegend _ANSI_ARGS_((Legend *legendPtr, int width,
	int height));
extern int Blt_LegendOp _ANSI_ARGS_((Graph *graphPtr, Tcl_Interp *interp,
	int argc, char **argv));
extern int Blt_LegendSite _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendWidth _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendHeight _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendIsHidden _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendIsRaised _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendX _ANSI_ARGS_((Legend *legendPtr));
extern int Blt_LegendY _ANSI_ARGS_((Legend *legendPtr));
extern void Blt_LegendRemoveElement _ANSI_ARGS_((Legend *legendPtr, 
	Element *elemPtr));
#endif /* BLT_GR_LEGEND_H */