randr.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {*
  2. * $XFree86: xc/include/extensions/randr.h,v 1.4 2001/11/24 07:24:58 keithp Exp $
  3. *
  4. * Copyright (C) 2000, Compaq Computer Corporation,
  5. * Copyright (C) 2002, Hewlett Packard, Inc.
  6. *
  7. * Permission to use, copy, modify, distribute, and sell this software and its
  8. * documentation for any purpose is hereby granted without fee, provided that
  9. * the above copyright notice appear in all copies and that both that
  10. * copyright notice and this permission notice appear in supporting
  11. * documentation, and that the name of Compaq or HP not be used in advertising
  12. * or publicity pertaining to distribution of the software without specific,
  13. * written prior permission. HP makes no representations about the
  14. * suitability of this software for any purpose. It is provided "as is"
  15. * without express or implied warranty.
  16. *
  17. * HP DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  18. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL HP
  19. * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  20. * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  21. * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  22. * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  23. *
  24. * Author: Jim Gettys, HP Labs, Hewlett-Packard, Inc.
  25. *}
  26. type
  27. PRotation = ^TRotation;
  28. TRotation = cushort;
  29. PSizeID = ^TSizeID;
  30. TSizeID = cushort;
  31. PSubpixelOrder = ^TSubpixelOrder;
  32. TSubpixelOrder = cushort;
  33. const
  34. RANDR_NAME = 'RANDR';
  35. RANDR_MAJOR = 1;
  36. RANDR_MINOR = 1;
  37. RRNumberErrors = 0;
  38. RRNumberEvents = 1;
  39. X_RRQueryVersion = 0;
  40. { we skip 1 to make old clients fail pretty immediately }
  41. X_RROldGetScreenInfo = 1;
  42. X_RR1_0SetScreenConfig = 2;
  43. { V1.0 apps share the same set screen config request id }
  44. X_RRSetScreenConfig = 2;
  45. X_RROldScreenChangeSelectInput = 3;
  46. { 3 used to be ScreenChangeSelectInput; deprecated }
  47. X_RRSelectInput = 4;
  48. X_RRGetScreenInfo = 5;
  49. { used in XRRSelectInput }
  50. RRScreenChangeNotifyMask = 1 shl 0;
  51. RRScreenChangeNotify = 0;
  52. { used in the rotation field; rotation and reflection in 0.1 proto. }
  53. RR_Rotate_0 = 1;
  54. RR_Rotate_90 = 2;
  55. RR_Rotate_180 = 4;
  56. RR_Rotate_270 = 8;
  57. { new in 1.0 protocol, to allow reflection of screen }
  58. RR_Reflect_X = 16;
  59. RR_Reflect_Y = 32;
  60. RRSetConfigSuccess = 0;
  61. RRSetConfigInvalidConfigTime = 1;
  62. RRSetConfigInvalidTime = 2;
  63. RRSetConfigFailed = 3;