aboutsummaryrefslogtreecommitdiff
path: root/GraphP.h
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-20 00:16:30 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-20 00:16:30 +0000
commit22751b71809fca1bf028adcfb4157b0ffd84543a (patch)
tree1da4372e9395974f1e89002ccf6665f861f7c14f /GraphP.h
initial import of demomonitor example
Diffstat (limited to 'GraphP.h')
-rw-r--r--GraphP.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/GraphP.h b/GraphP.h
new file mode 100644
index 0000000..f6af739
--- /dev/null
+++ b/GraphP.h
@@ -0,0 +1,33 @@
+#ifndef _GraphP_h
+#define _GraphP_h
+
+// #include <X11/CoreP.h>
+#include "Graph.h"
+
+typedef struct {
+ int num_entries;
+ String *labels;
+ int *values;
+ int max_value;
+ int scale;
+} GraphPart;
+
+typedef struct _GraphRec {
+ CorePart core;
+ CompositePart composite;
+ GraphPart graph;
+} GraphRec;
+
+typedef struct {
+ XtPointer extension;
+} GraphClassPart;
+
+typedef struct _GraphClassRec {
+ CoreClassPart core_class;
+ CompositeClassPart composite_class;
+ GraphClassPart graph_class;
+} GraphClassRec;
+
+extern GraphClassRec graphClassRec;
+
+#endif