all repos — openbox @ 58ff3f35c2b712ec92b093ffd8b96331615f546a

openbox fork - make it a bit more like ryudo

otk_c/screeninfo.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// -*- mode: C; indent-tabs-mode: nil; c-basic-offset: 2; -*-
#ifndef   __screeninfo_h
#define   __screeninfo_h

#include <X11/Xlib.h>
#include <Python.h>

extern PyTypeObject OtkScreenInfo_Type;

struct OtkRect;

typedef struct OtkScreenInfo {
  PyObject_HEAD
  int screen;
  Window root_window;

  int depth;
  Visual *visual;
  Colormap colormap;

  PyStringObject *display_string;
  struct OtkRect *rect; // OtkRect
#ifdef XINERAMA
  PyListObject *xinerama_areas; // holds OtkRect's
  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