rebuild geeqie
[oi-userland.git] / components / x11 / libXaw4 / src / Xaw3_1StripCharP.h
blob8cb41b45787dc6800cc9f3dc34a5d45787588c44
1 /*
2 * $XConsortium: StripCharP.h,v 1.3 89/11/11 14:53:47 kit Exp $
3 */
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
10 All Rights Reserved
12 Permission to use, copy, modify, and distribute this software and its
13 documentation for any purpose and without fee is hereby granted,
14 provided that the above copyright notice appear in all copies and that
15 both that copyright notice and this permission notice appear in
16 supporting documentation, and that the names of Digital or MIT not be
17 used in advertising or publicity pertaining to distribution of the
18 software without specific, written prior permission.
20 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
21 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
22 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
23 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
24 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
25 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
26 SOFTWARE.
28 ******************************************************************/
30 #ifndef _XawStripChartP_h
31 #define _XawStripChartP_h
33 #include <./Xaw3_1StripChart.h>
34 #include <./Xaw3_1SimpleP.h>
36 #define NO_GCS 0
37 #define FOREGROUND 1 << 0
38 #define HIGHLIGHT 1 << 1
39 #define ALL_GCS (FOREGROUND | HIGHLIGHT)
41 /* New fields for the stripChart widget instance record */
43 typedef struct {
44 Pixel fgpixel; /* color index for graph */
45 Pixel hipixel; /* color index for lines */
46 GC fgGC; /* graphics context for fgpixel */
47 GC hiGC; /* graphics context for hipixel */
49 /* start of graph stuff */
51 int update; /* update frequence */
52 int scale; /* scale factor */
53 int min_scale; /* smallest scale factor */
54 int interval; /* data point interval */
55 XPoint * points ; /* Poly point for repairing graph lines. */
56 Boolean reverse_video; /* display in reverse video */
57 double max_value; /* Max Value in window */
58 double valuedata[2048];/* record of data points */
59 XtIntervalId interval_id;
60 XtCallbackList get_value; /* proc to call to fetch load pt */
61 int jump_val; /* Amount to jump on each scroll. */
62 } StripChartPart;
64 /* Full instance record declaration */
65 typedef struct _StripChartRec {
66 CorePart core;
67 SimplePart simple;
68 StripChartPart strip_chart;
69 } StripChartRec;
71 /* New fields for the StripChart widget class record */
72 typedef struct {int dummy;} StripChartClassPart;
74 /* Full class record declaration. */
75 typedef struct _StripChartClassRec {
76 CoreClassPart core_class;
77 SimpleClassPart simple_class;
78 StripChartClassPart strip_chart_class;
79 } StripChartClassRec;
81 /* Class pointer. */
82 extern StripChartClassRec stripChartClassRec;
84 #endif /* _XawStripChartP_h */