dbe.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. (******************************************************************************
  2. *
  3. * Copyright (c) 1994, 1995 Hewlett-Packard Company
  4. *
  5. * Permission is hereby granted, free of charge, to any person obtaining
  6. * a copy of this software and associated documentation files (the
  7. * "Software"), to deal in the Software without restriction, including
  8. * without limitation the rights to use, copy, modify, merge, publish,
  9. * distribute, sublicense, and/or sell copies of the Software, and to
  10. * permit persons to whom the Software is furnished to do so, subject to
  11. * the following conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be included
  14. * in all copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  17. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  18. * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
  20. * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  21. * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
  22. * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. *
  24. * Except as contained in this notice, the name of the Hewlett-Packard
  25. * Company shall not be used in advertising or otherwise to promote the
  26. * sale, use or other dealings in this Software without prior written
  27. * authorization from the Hewlett-Packard Company.
  28. *
  29. * Header file for Xlib-related DBE
  30. *
  31. *****************************************************************************)
  32. const
  33. { Values for swap_action field of XdbeSwapInfo structure }
  34. XdbeUndefined = 0;
  35. XdbeBackground = 1;
  36. XdbeUntouched = 2;
  37. XdbeCopied = 3;
  38. { Errors }
  39. XdbeBadBuffer = 0;
  40. DBE_PROTOCOL_NAME = 'DOUBLE-BUFFER';
  41. { Current version numbers }
  42. DBE_MAJOR_VERSION = 1;
  43. DBE_MINOR_VERSION = 0;
  44. { Used when adding extension; also used in Xdbe macros }
  45. DbeNumberEvents = 0;
  46. DbeBadBuffer = 0;
  47. DbeNumberErrors = DbeBadBuffer + 1;