749N/A/*
749N/A* $XConsortium: StripCharP.h,v 1.3 89/11/11 14:53:47 kit Exp $
749N/A*/
749N/A
749N/A
749N/A/***********************************************************
749N/ACopyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
749N/Aand the Massachusetts Institute of Technology, Cambridge, Massachusetts.
749N/A
749N/A All Rights Reserved
749N/A
749N/APermission to use, copy, modify, and distribute this software and its
749N/Adocumentation for any purpose and without fee is hereby granted,
749N/Aprovided that the above copyright notice appear in all copies and that
749N/Aboth that copyright notice and this permission notice appear in
749N/Asupporting documentation, and that the names of Digital or MIT not be
749N/Aused in advertising or publicity pertaining to distribution of the
749N/Asoftware without specific, written prior permission.
749N/A
749N/ADIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
749N/AALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
749N/ADIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
749N/AANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
749N/AWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
749N/AARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
749N/ASOFTWARE.
749N/A
749N/A******************************************************************/
749N/A
749N/A#ifndef _XawStripChartP_h
749N/A#define _XawStripChartP_h
749N/A
749N/A#include <./Xaw3_1StripChart.h>
749N/A#include <./Xaw3_1SimpleP.h>
749N/A
749N/A#define NO_GCS 0
749N/A#define FOREGROUND 1 << 0
749N/A#define HIGHLIGHT 1 << 1
749N/A#define ALL_GCS (FOREGROUND | HIGHLIGHT)
749N/A
749N/A/* New fields for the stripChart widget instance record */
749N/A
749N/Atypedef struct {
749N/A Pixel fgpixel; /* color index for graph */
749N/A Pixel hipixel; /* color index for lines */
749N/A GC fgGC; /* graphics context for fgpixel */
749N/A GC hiGC; /* graphics context for hipixel */
749N/A
749N/A /* start of graph stuff */
749N/A
749N/A int update; /* update frequence */
749N/A int scale; /* scale factor */
749N/A int min_scale; /* smallest scale factor */
749N/A int interval; /* data point interval */
749N/A XPoint * points ; /* Poly point for repairing graph lines. */
749N/A Boolean reverse_video; /* display in reverse video */
749N/A double max_value; /* Max Value in window */
749N/A double valuedata[2048];/* record of data points */
749N/A XtIntervalId interval_id;
749N/A XtCallbackList get_value; /* proc to call to fetch load pt */
749N/A int jump_val; /* Amount to jump on each scroll. */
749N/A} StripChartPart;
749N/A
749N/A/* Full instance record declaration */
749N/Atypedef struct _StripChartRec {
749N/A CorePart core;
749N/A SimplePart simple;
749N/A StripChartPart strip_chart;
749N/A} StripChartRec;
749N/A
749N/A/* New fields for the StripChart widget class record */
749N/Atypedef struct {int dummy;} StripChartClassPart;
749N/A
749N/A/* Full class record declaration. */
749N/Atypedef struct _StripChartClassRec {
749N/A CoreClassPart core_class;
749N/A SimpleClassPart simple_class;
749N/A StripChartClassPart strip_chart_class;
749N/A} StripChartClassRec;
749N/A
749N/A/* Class pointer. */
749N/Aextern StripChartClassRec stripChartClassRec;
749N/A
749N/A#endif /* _XawStripChartP_h */