misprite.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /*
  2. * misprite.h
  3. *
  4. * software-sprite/sprite drawing interface spec
  5. *
  6. * mi versions of these routines exist.
  7. */
  8. /*
  9. Copyright 1989, 1998 The Open Group
  10. Permission to use, copy, modify, distribute, and sell this software and its
  11. documentation for any purpose is hereby granted without fee, provided that
  12. the above copyright notice appear in all copies and that both that
  13. copyright notice and this permission notice appear in supporting
  14. documentation.
  15. The above copyright notice and this permission notice shall be included in
  16. all copies or substantial portions of the Software.
  17. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  20. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. Except as contained in this notice, the name of The Open Group shall not be
  24. used in advertising or otherwise to promote the sale, use or other dealings
  25. in this Software without prior written authorization from The Open Group.
  26. */
  27. typedef struct {
  28. Bool (*RealizeCursor)(
  29. ScreenPtr /*pScreen*/,
  30. CursorPtr /*pCursor*/
  31. );
  32. Bool (*UnrealizeCursor)(
  33. ScreenPtr /*pScreen*/,
  34. CursorPtr /*pCursor*/
  35. );
  36. Bool (*PutUpCursor)(
  37. ScreenPtr /*pScreen*/,
  38. CursorPtr /*pCursor*/,
  39. int /*x*/,
  40. int /*y*/,
  41. unsigned long /*source*/,
  42. unsigned long /*mask*/
  43. );
  44. Bool (*SaveUnderCursor)(
  45. ScreenPtr /*pScreen*/,
  46. int /*x*/,
  47. int /*y*/,
  48. int /*w*/,
  49. int /*h*/
  50. );
  51. Bool (*RestoreUnderCursor)(
  52. ScreenPtr /*pScreen*/,
  53. int /*x*/,
  54. int /*y*/,
  55. int /*w*/,
  56. int /*h*/
  57. );
  58. Bool (*MoveCursor)(
  59. ScreenPtr /*pScreen*/,
  60. CursorPtr /*pCursor*/,
  61. int /*x*/,
  62. int /*y*/,
  63. int /*w*/,
  64. int /*h*/,
  65. int /*dx*/,
  66. int /*dy*/,
  67. unsigned long /*source*/,
  68. unsigned long /*mask*/
  69. );
  70. Bool (*ChangeSave)(
  71. ScreenPtr /*pScreen*/,
  72. int /*x*/,
  73. int /*y*/,
  74. int /*w*/,
  75. int /*h*/,
  76. int /*dx*/,
  77. int /*dy*/
  78. );
  79. } miSpriteCursorFuncRec;
  80. extern Bool miSpriteInitialize(
  81. ScreenPtr /*pScreen*/,
  82. const miSpriteCursorFuncRec * /*cursorFuncs*/,
  83. miPointerScreenFuncPtr /*screenFuncs*/
  84. );