/binding/x/xinerama.d

http://github.com/wilkie/djehuty · D · 54 lines · 25 code · 10 blank · 19 comment · 0 complexity · 5b6f5a73416460c05a190ba3b0f0b6f4 MD5 · raw file

  1. /*
  2. * xinerama.d
  3. *
  4. * This file holds bindings to xinerama. This file was created from xinerama.h
  5. * which is provided with xinerama proper.
  6. *
  7. * Author: Dave Wilkinson
  8. * Originated: May 20th, 2009
  9. *
  10. */
  11. module binding.x.xinerama;
  12. import binding.x.Xlib;
  13. struct XineramaScreenInfo {
  14. int screen_number;
  15. short x_org;
  16. short y_org;
  17. short width;
  18. short height;
  19. }
  20. //_XFUNCPROTOBEGIN
  21. Bool XineramaQueryExtension (
  22. Display *dpy,
  23. int *event_base,
  24. int *error_base
  25. )
  26. Status XineramaQueryVersion(
  27. Display *dpy,
  28. int *major,
  29. int *minor
  30. )
  31. Bool XineramaIsActive(Display *dpy);
  32. /*
  33. Returns the number of heads and a pointer to an array of
  34. structures describing the position and size of the individual
  35. heads. Returns NULL and number = 0 if Xinerama is not active.
  36. Returned array should be freed with XFree().
  37. */
  38. XineramaScreenInfo *
  39. XineramaQueryScreens(
  40. Display *dpy,
  41. int *number
  42. );
  43. //_XFUNCPROTOEND