Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:26:36

0001 /***********************************************************
0002 
0003 Copyright 1987, 1988, 1998  The Open Group
0004 
0005 Permission to use, copy, modify, distribute, and sell this software and its
0006 documentation for any purpose is hereby granted without fee, provided that
0007 the above copyright notice appear in all copies and that both that
0008 copyright notice and this permission notice appear in supporting
0009 documentation.
0010 
0011 The above copyright notice and this permission notice shall be included in
0012 all copies or substantial portions of the Software.
0013 
0014 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
0017 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
0018 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
0019 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0020 
0021 Except as contained in this notice, the name of The Open Group shall not be
0022 used in advertising or otherwise to promote the sale, use or other dealings
0023 in this Software without prior written authorization from The Open Group.
0024 
0025 
0026 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
0027 
0028                         All Rights Reserved
0029 
0030 Permission to use, copy, modify, and distribute this software and its
0031 documentation for any purpose and without fee is hereby granted,
0032 provided that the above copyright notice appear in all copies and that
0033 both that copyright notice and this permission notice appear in
0034 supporting documentation, and that the name of Digital not be
0035 used in advertising or publicity pertaining to distribution of the
0036 software without specific, written prior permission.
0037 
0038 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
0039 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
0040 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
0041 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
0042 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
0043 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
0044 SOFTWARE.
0045 
0046 ******************************************************************/
0047 
0048 #ifndef _XawStripChartP_h
0049 #define _XawStripChartP_h
0050 
0051 #include <X11/Xaw/StripChart.h>
0052 #include <X11/Xaw/SimpleP.h>
0053 
0054 #define NO_GCS 0
0055 #define FOREGROUND  (1 << 0)
0056 #define HIGHLIGHT   (1 << 1)
0057 #define ALL_GCS (FOREGROUND | HIGHLIGHT)
0058 
0059 /* new fields for the stripChart widget */
0060 typedef struct {
0061     /* resources */
0062     Pixel fgpixel;      /* color index for graph */
0063     Pixel hipixel;      /* color index for lines */
0064     GC fgGC;            /* graphics context for fgpixel */
0065     GC hiGC;            /* graphics context for hipixel */
0066 
0067     /* private */
0068     int update;         /* update frequence */
0069     int scale;          /* scale factor */
0070     int min_scale;      /* smallest scale factor */
0071     int interval;       /* data point interval */
0072     XPoint *points;     /* Poly point for repairing graph lines */
0073     double max_value;       /* Max Value in window */
0074     double valuedata[2048]; /* record of data points */
0075     XtIntervalId interval_id;
0076     XtCallbackList get_value;   /* proc to call to fetch load pt */
0077     int jump_val;       /* Amount to jump on each scroll */
0078 #ifndef OLDXAW
0079     XtPointer pad[4];   /* for future use and keep binary compatibility */
0080 #endif
0081 } StripChartPart;
0082 
0083 /* instance record declaration */
0084 typedef struct _StripChartRec {
0085     CorePart core;
0086     SimplePart simple;
0087     StripChartPart strip_chart;
0088 } StripChartRec;
0089 
0090 /* new fields for the StripChart widget class record */
0091 typedef struct {
0092     XtPointer extension;
0093 } StripChartClassPart;
0094 
0095 /* class record declaration */
0096 typedef struct _StripChartClassRec {
0097     CoreClassPart core_class;
0098     SimpleClassPart simple_class;
0099     StripChartClassPart strip_chart_class;
0100 } StripChartClassRec;
0101 
0102 extern StripChartClassRec stripChartClassRec;
0103 
0104 #endif /* _XawStripChartP_h */