1 /* Gauge Widget for SXEmacs.
2 Copyright (C) 1999 Edward A. Falk
4 This file is part of SXEmacs.
6 SXEmacs is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 SXEmacs is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 * GaugeP.h - Gauge widget
22 * Author: Edward A. Falk
23 * falk@falconer.vip.best.com
31 /***********************************************************************
33 * Gauge Widget Private Data
35 * Gauge has little in common with the label widget, but can make use
36 * of some label resources, so is subclassed from label.
38 ***********************************************************************/
41 #include ATHENA_LabelP_h_
43 /* New fields for the Gauge widget class record */
49 /* Full class record declaration */
50 typedef struct _GaugeClassRec {
51 CoreClassPart core_class;
52 SimpleClassPart simple_class;
54 ThreeDClassPart threeD_class;
56 LabelClassPart label_class;
57 GaugeClassPart gauge_class;
60 extern GaugeClassRec gaugeClassRec;
62 /* New fields for the Gauge widget record */
68 XtOrientation orientation;
69 Boolean autoScaleUp; /* scales automatically */
70 Boolean autoScaleDown; /* scales automatically */
71 int update; /* update interval */
72 XtCallbackList getValue; /* proc to call to fetch a point */
75 Dimension gmargin; /* edges <-> gauge */
76 Dimension tmargin; /* top (left) edge <-> tic marks */
77 Dimension lmargin; /* tic marks <-> labels */
78 Dimension margin0; /* left/bottom margin */
79 Dimension margin1; /* right/top margin */
80 XtIntervalId intervalId;
82 String selstr; /* selection string, if any */
86 /****************************************************************
88 * Full instance record declaration
90 ****************************************************************/
92 typedef struct _GaugeRec {
102 #endif /* _XawGaugeP_h */