/platform/unix/platform/vars/window.d

http://github.com/wilkie/djehuty · D · 32 lines · 11 code · 8 blank · 13 comment · 0 complexity · bf1e96e13ae37c6c0f6f330ba19bfb67 MD5 · raw file

  1. /*
  2. * window.d
  3. *
  4. * This module implements the platform specifics for the Window class.
  5. *
  6. * Author: Dave Wilkinson
  7. * Originated: July 25th, 2009
  8. *
  9. */
  10. module platform.vars.window;
  11. import X = binding.x.Xlib;
  12. struct WindowPlatformVars {
  13. // required parameters:
  14. bool _hasGL; // is a GLWindow
  15. bool _hasView; // is a Window
  16. // -----
  17. X.Window window;
  18. X.Window wm_parent;
  19. int wm_x;
  20. int wm_y;
  21. //GLXContext ctx;
  22. //to handle sync issues
  23. bool destroy_called = false; //true, when window is to be destroyed
  24. }