xag.pp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. (*
  2. Copyright 1996, 1998 The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included
  9. in all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  11. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  12. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  13. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  14. OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  15. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  16. OTHER DEALINGS IN THE SOFTWARE.
  17. Except as contained in this notice, the name of The Open Group shall
  18. not be used in advertising or otherwise to promote the sale, use or
  19. other dealings in this Software without prior written authorization
  20. from The Open Group.
  21. *)
  22. unit xag;
  23. interface
  24. {$MODE objfpc}
  25. uses
  26. ctypes, x, xlib;
  27. const
  28. libXext = 'Xext';
  29. {$I ag.inc}
  30. //#include <stdarg.h>
  31. type
  32. PXAppGroup = ^TXAppGroup;
  33. TXAppGroup = TXID;
  34. function XagQueryVersion(
  35. dpy: PDisplay;
  36. major_version,
  37. minor_version: Pcint
  38. ): TBoolResult; cdecl; external libXext;
  39. function XagCreateEmbeddedApplicationGroup(
  40. dpy: PDisplay;
  41. root_visual: TVisualID;
  42. default_colormap: TColormap;
  43. black_pixel,
  44. white_pixel: culong;
  45. app_group_return: PXAppGroup
  46. ): TStatus; cdecl; external libXext;
  47. function XagCreateNonembeddedApplicationGroup(
  48. dpy: PDisplay;
  49. app_group_return: PXAppGroup
  50. ): TStatus; cdecl; external libXext;
  51. function XagDestroyApplicationGroup(
  52. dpy: PDisplay;
  53. app_group: TXAppGroup
  54. ): TStatus; cdecl; external libXext;
  55. function XagGetApplicationGroupAttributes(
  56. dpy: PDisplay;
  57. app_group: TXAppGroup;
  58. dotdotdot: array of const
  59. ): TStatus; cdecl; external libXext;
  60. function XagQueryApplicationGroup(
  61. dpy: PDisplay;
  62. resource_base: TXID;
  63. app_group_ret: PXAppGroup
  64. ): TStatus; cdecl; external libXext;
  65. function XagCreateAssociation(
  66. dpy: PDisplay;
  67. window_ret: PWindow;
  68. system_window: Pointer
  69. ): TStatus; cdecl; external libXext;
  70. function XagDestroyAssociation(
  71. dpy: PDisplay;
  72. window: TWindow
  73. ): TStatus; cdecl; external libXext;
  74. implementation
  75. end.