xtestext1.pp 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. (*
  2. * xtestext1.h
  3. *
  4. * X11 Input Synthesis Extension include file
  5. *)
  6. (*
  7. Copyright 1986, 1987, 1988, 1998 The Open Group
  8. Permission to use, copy, modify, distribute, and sell this software and its
  9. documentation for any purpose is hereby granted without fee, provided that
  10. the above copyright notice appear in all copies and that both that
  11. copyright notice and this permission notice appear in supporting
  12. documentation.
  13. The above copyright notice and this permission notice shall be included in
  14. all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21. Except as contained in this notice, the name of The Open Group shall not be
  22. used in advertising or otherwise to promote the sale, use or other dealings
  23. in this Software without prior written authorization from The Open Group.
  24. Copyright 1986, 1987, 1988 by Hewlett-Packard Corporation
  25. Permission to use, copy, modify, and distribute this
  26. software and its documentation for any purpose and without
  27. fee is hereby granted, provided that the above copyright
  28. notice appear in all copies and that both that copyright
  29. notice and this permission notice appear in supporting
  30. documentation, and that the name of Hewlett-Packard not be used in
  31. advertising or publicity pertaining to distribution of the
  32. software without specific, written prior permission.
  33. Hewlett-Packard makes no representations about the
  34. suitability of this software for any purpose. It is provided
  35. "as is" without express or implied warranty.
  36. This software is not subject to any license of the American
  37. Telephone and Telegraph Company or of the Regents of the
  38. University of California.
  39. *)
  40. {$IFNDEF FPC_DOTTEDUNITS}
  41. unit xtestext1;
  42. {$ENDIF FPC_DOTTEDUNITS}
  43. {$PACKRECORDS c}
  44. interface
  45. {$IFDEF FPC_DOTTEDUNITS}
  46. uses
  47. System.CTypes, Api.X11.X, Api.X11.Xlib, Api.X11.Xmd;
  48. {$ELSE FPC_DOTTEDUNITS}
  49. uses
  50. ctypes, x, xlib, xmd;
  51. {$ENDIF FPC_DOTTEDUNITS}
  52. const
  53. libXext = 'Xext';
  54. (*
  55. * the typedefs for CARD8, CARD16, and CARD32 are defined in Xmd.h
  56. *)
  57. {$I xtestext1const.inc}
  58. (*
  59. * This is the definition for the input action host format event structure.
  60. * This is the form that a client using this extension will see when
  61. * it receives an input action event.
  62. *)
  63. type
  64. PXTestInputActionEvent = ^TXTestInputActionEvent;
  65. TXTestInputActionEvent = record
  66. _type: cint; { always XTestInputActionType }
  67. display: PDisplay;
  68. window: TWindow;
  69. actions: array [0..XTestACTIONS_SIZE-1] of CARD8;
  70. end;
  71. (*
  72. * This is the definition for the xTestFakeAck host format event structure.
  73. * This is the form that a client using this extension will see when
  74. * it receives an XTestFakeAck event.
  75. *)
  76. PXTestFakeAckEvent = ^TXTestFakeAckEvent;
  77. TXTestFakeAckEvent = record
  78. _type: cint; { always XTestFakeAckType }
  79. display: PDisplay;
  80. window: TWindow;
  81. end;
  82. function XTestFakeInput({register} dpy: PDisplay; action_list_addr: PAnsiChar; action_list_size, ack_flag: cint): cint; cdecl; external libXext;
  83. function XTestGetInput({register} dpy: PDisplay; action_handling: cint): cint; cdecl; external libXext;
  84. function XTestQueryInputSize({register} dpy: PDisplay; size_return: Pculong): cint; cdecl; external libXext;
  85. function XTestPressKey(display: PDisplay; device_id: cint; delay: culong; keycode, key_action: cuint): cint; cdecl; external libXext;
  86. function XTestPressButton(display: PDisplay; device_id: cint; delay: culong; button_number, button_action: cuint): cint; cdecl; external libXext;
  87. function XTestMovePointer(display: PDisplay; device_id: cint; delay: Pculong; x, y: Pcint; count: cuint): cint; cdecl; external libXext;
  88. function XTestFlush(display: PDisplay): cint; cdecl; external libXext;
  89. function XTestStopInput({register} dpy: PDisplay): cint; cdecl; external libXext;
  90. function XTestReset({register} dpy: PDisplay): cint; cdecl; external libXext;
  91. implementation
  92. end.