aboutsummaryrefslogtreecommitdiff
path: root/GraphDisplayP.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 /GraphDisplayP.h
initial import of demomonitor example
Diffstat (limited to 'GraphDisplayP.h')
-rw-r--r--GraphDisplayP.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/GraphDisplayP.h b/GraphDisplayP.h
new file mode 100644
index 0000000..f4b85ec
--- /dev/null
+++ b/GraphDisplayP.h
@@ -0,0 +1,35 @@
+#ifndef _GraphDisplayP_h
+#define _GraphDisplayP_h
+
+// #include <X11/CoreP.h>
+#include "GraphDisplay.h"
+
+typedef struct {
+ Pixel foreground;
+ XFontStruct *font;
+ GC gc;
+} GraphDisplayPart;
+
+typedef struct _GraphDisplayRec {
+ ObjectPart object;
+ GraphDisplayPart graphDisplay;
+} GraphDisplayRec;
+
+typedef void (*ComputeSizeProc)();
+
+typedef struct {
+ ComputeSizeProc compute_size;
+ XtExposeProc expose;
+ XtPointer extension;
+} GraphDisplayClassPart;
+
+typedef struct _GraphDisplayClassRec {
+ ObjectClassPart object_class;
+ GraphDisplayClassPart graphDisplay_class;
+} GraphDisplayClassRec, *GraphDisplayObjectClass;
+
+extern GraphDisplayClassRec graphDisplayClassRec;
+
+#define InheritComputeSize ((ComputeSizeProc) _XtInherit)
+
+#endif