1 /* Gauge Widget for XEmacs.
2 Copyright (C) 1999 Edward A. Falk
4 This file is part of XEmacs.
6 XEmacs is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with XEmacs; see the file COPYING. If not, write to
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
22 * GaugeP.h - Gauge widget
24 * Author: Edward A. Falk
25 * falk@falconer.vip.best.com
33 /***********************************************************************
35 * Gauge Widget Private Data
37 * Gauge has little in common with the label widget, but can make use
38 * of some label resources, so is subclassed from label.
40 ***********************************************************************/
43 #include ATHENA_LabelP_h_
45 /* New fields for the Gauge widget class record */
47 typedef struct {XtPointer extension;} GaugeClassPart;
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 */
87 /****************************************************************
89 * Full instance record declaration
91 ****************************************************************/
93 typedef struct _GaugeRec {
103 #endif /* _XawGaugeP_h */