atk.pas 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. { ATK - Accessibility Toolkit
  2. Copyright 2001 Sun Microsystems Inc.
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Library General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Library General Public License for more details.
  11. You should have received a copy of the GNU Library General Public
  12. License along with this library; if not, write to the
  13. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. Boston, MA 02111-1307, USA.
  15. }
  16. unit atk; // keep unit name lowercase for kylix
  17. {$IFDEF FPC}
  18. {$mode objfpc}
  19. {$ENDIF}
  20. {$IFDEF VER140}
  21. {$DEFINE KYLIX}
  22. {$ENDIF}
  23. interface
  24. uses glib2;
  25. const
  26. {$ifdef win32}
  27. {$define atkwin}
  28. atklib = 'libatk-1.0-0.dll';
  29. {$IFDEF FPC}
  30. {$smartlink on}
  31. {$ENDIF}
  32. {$else}
  33. {$ifdef UseCustomLibs}
  34. atklib = '';
  35. {$else}
  36. atklib = 'libatk-1.0.so';
  37. {$endif}
  38. {$endif}
  39. {$IFNDEF KYLIX}
  40. {$PACKRECORDS C}
  41. {$ELSE}
  42. {$ALIGN 4}
  43. {$WEAKPACKAGEUNIT}
  44. {$WARNINGS OFF}
  45. {$ENDIF}
  46. type
  47. {$DEFINE read_forward_definitions}
  48. // internal types
  49. PAtkImplementor = pointer;
  50. PAtkAction = pointer;
  51. PAtkComponent = pointer;
  52. PAtkDocument = pointer;
  53. PAtkEditableText = pointer;
  54. PAtkHypertext = pointer;
  55. PAtkImage = pointer;
  56. PAtkSelection = pointer;
  57. PAtkStreamableContent = pointer;
  58. PAtkTable = pointer;
  59. PAtkText = pointer;
  60. PAtkValue = pointer;
  61. {$include atkincludes.inc}
  62. {$UNDEF read_forward_definitions}
  63. {$DEFINE read_interface_types}
  64. {$include atkincludes.inc}
  65. {$UNDEF read_interface_types}
  66. {$DEFINE read_interface_rest}
  67. {$include atkincludes.inc}
  68. {$UNDEF read_interface_rest}
  69. implementation
  70. // call implementation parts of header files
  71. {$DEFINE read_implementation}
  72. {$include atkincludes.inc}
  73. {$UNDEF read_implementation}
  74. end.