summaryrefslogtreecommitdiff
path: root/otk_c/screeninfo.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
committerDana Jansens <danakj@orodu.net>2002-12-20 23:19:07 +0000
commite5c5b4bf700f9bf00dd88bd4b6a471ac1ccefaff (patch)
tree122c249b6bd50a6695f829e1b559cc8e648f4802 /otk_c/screeninfo.h
parent7f111a94d0a0d8a45d318b8a19d0da1097c76d24 (diff)
add screeninfo
Diffstat (limited to 'otk_c/screeninfo.h')
-rw-r--r--otk_c/screeninfo.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/otk_c/screeninfo.h b/otk_c/screeninfo.h
new file mode 100644
index 00000000..5114a37c
--- /dev/null
+++ b/otk_c/screeninfo.h
@@ -0,0 +1,31 @@
+// -*- mode: C; indent-tabs-mode: nil; -*-
+#ifndef __screeninfo_h
+#define __screeninfo_h
+
+#include <X11/Xlib.h>
+#include <Python.h>
+
+typedef struct OtkScreenInfo {
+ int screen;
+ Window root_window;
+
+ int depth;
+ Visual *visual;
+ Colormap colormap;
+
+ PyObject *display_string; // PyStringObject
+ PyObject *rect; // OtkRect
+#ifdef XINERAMA
+ PyObject *xinerama_areas; // PyListObject[OtkRect]
+ Bool xinerama_active;
+#endif
+} OtkScreenInfo;
+
+//! Creates an OtkScreenInfo for a screen
+/*!
+ @param num The number of the screen on the display for which to fill the
+ struct with information. Must be a value >= 0.
+*/
+PyObject *OtkScreenInfo_New(int num);
+
+#endif // __screeninfo_h