atk.pas 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. {$ifndef NO_SMART_LINK}
  31. {$smartlink on}
  32. {$endif}
  33. {$ENDIF}
  34. {$else}
  35. {$ifdef UseCustomLibs}
  36. atklib = '';
  37. {$else}
  38. atklib = 'libatk-1.0.so';
  39. {$endif}
  40. {$endif}
  41. {$IFNDEF KYLIX}
  42. {$PACKRECORDS C}
  43. {$ELSE}
  44. {$ALIGN 4}
  45. {$WEAKPACKAGEUNIT}
  46. {$WARNINGS OFF}
  47. {$ENDIF}
  48. type
  49. {$DEFINE read_forward_definitions}
  50. // internal types
  51. PAtkImplementor = pointer;
  52. PAtkAction = pointer;
  53. PAtkComponent = pointer;
  54. PAtkDocument = pointer;
  55. PAtkEditableText = pointer;
  56. PAtkHypertext = pointer;
  57. PAtkImage = pointer;
  58. PAtkSelection = pointer;
  59. PAtkStreamableContent = pointer;
  60. PAtkTable = pointer;
  61. PAtkText = pointer;
  62. PAtkValue = pointer;
  63. {$include atkincludes.inc}
  64. {$UNDEF read_forward_definitions}
  65. {$DEFINE read_interface_types}
  66. {$include atkincludes.inc}
  67. {$UNDEF read_interface_types}
  68. {$DEFINE read_interface_rest}
  69. {$include atkincludes.inc}
  70. {$UNDEF read_interface_rest}
  71. implementation
  72. // call implementation parts of header files
  73. {$DEFINE read_implementation}
  74. {$include atkincludes.inc}
  75. {$UNDEF read_implementation}
  76. end.