summaryrefslogtreecommitdiff
path: root/TachometerP.h
diff options
context:
space:
mode:
Diffstat (limited to 'TachometerP.h')
-rw-r--r--TachometerP.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/TachometerP.h b/TachometerP.h
new file mode 100644
index 00000000..50a4a62a
--- /dev/null
+++ b/TachometerP.h
@@ -0,0 +1,61 @@
+#ifndef _TachometerP_h
+#define _TachometerP_h
+
+/***********************************************************************
+ *
+ * Tachometer Widget Private Data
+ *
+ ***********************************************************************/
+
+#include <Tachometer.h>
+#include <X11/Xaw/SimpleP.h>
+
+/* New fields for the Tachometer widget class record */
+
+typedef struct {int foo;} TachometerClassPart;
+
+/* Full class record declaration */
+typedef struct _TachometerClassRec {
+ CoreClassPart core_class;
+ SimpleClassPart simple_class;
+ TachometerClassPart label_class;
+} TachometerClassRec;
+
+extern TachometerClassRec tachometerClassRec;
+
+/* New fields for the Tachometer widget record */
+typedef struct {
+ /* resources */
+ Pixel needle;
+ Pixel scale;
+ Pixel circle;
+ int value;
+ int speed;
+
+ /* private state */
+ GC needle_GC;
+ GC scale_GC;
+ GC circle_GC;
+ GC background_GC;
+ /* We need to store the width and height separately, because when */
+ /* we get a resize request, we need to know if the window has */
+ /* gotten bigger. */
+ Dimension width;
+ Dimension height;
+ Dimension internal_border;
+} TachometerPart;
+
+
+/****************************************************************
+ *
+ * Full instance record declaration
+ *
+ ****************************************************************/
+
+typedef struct _TachometerRec {
+ CorePart core;
+ SimplePart simple;
+ TachometerPart tachometer;
+} TachometerRec;
+
+#endif /* _TachometerP_h */