gdk.pp 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {
  2. $Id$
  3. GDK - The GIMP Drawing Kit
  4. Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public
  7. License as published by the Free Software Foundation; either
  8. version 2 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public
  14. License along with this library; if not, write to the
  15. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  16. Boston, MA 02111-1307, USA.
  17. **********************************************************************}
  18. unit gdk;
  19. interface
  20. {$mode objfpc} { needed for array of const }
  21. { Always use smartlinking for win32, this solves some undefined functions
  22. in the development gtk versions which change often (PFV) }
  23. {$ifdef win32}
  24. {$smartlink on}
  25. {$endif}
  26. uses
  27. glib;
  28. {$ifdef win32}
  29. const
  30. gdkdll='libgdk-0';
  31. {$define gtkwin}
  32. {$packrecords C}
  33. {$else}
  34. {$ifdef os2}
  35. const
  36. gdkdll='gdk12';
  37. {$linklib gdk12}
  38. {$define gtkos2}
  39. {$packrecords C}
  40. {$else}
  41. const
  42. {$ifdef FreeBSD}
  43. gdkdll='gdk12';
  44. {$linklib gdk12}
  45. {$else}
  46. {$ifdef darwin}
  47. {$define gtkdarwin}
  48. gdkdll='gdk-1.2.0';
  49. {$linklib gdk-1.2.0}
  50. {$else}
  51. gdkdll='gdk';
  52. {$linklib gdk}
  53. {$endif}
  54. {$endif}
  55. {$linklib c}
  56. {$linklib X11}
  57. {$packrecords C}
  58. {$endif}
  59. {$endif}
  60. Type
  61. PLongint = ^Longint;
  62. PByte = ^Byte;
  63. PWord = ^Word;
  64. PINteger = ^Integer;
  65. PCardinal = ^Cardinal;
  66. PReal = ^Real;
  67. PDouble = ^Double;
  68. {$define gdk_include_files}
  69. {$define read_interface}
  70. {$undef read_implementation}
  71. {$i gdktypes.pp}
  72. {$i gdkkeysyms.pp}
  73. {$i gdkprivate.pp}
  74. {$i gdkrgb.pp}
  75. {$i gdkx.pp}
  76. {$i gdkmain.pp}
  77. implementation
  78. {$undef read_interface}
  79. {$define read_implementation}
  80. {$i gdktypes.pp}
  81. {$i gdkkeysyms.pp}
  82. {$i gdkprivate.pp}
  83. {$i gdkrgb.pp}
  84. {$i gdkx.pp}
  85. {$i gdkmain.pp}
  86. end.
  87. {
  88. $Log$
  89. Revision 1.7 2004-05-02 19:14:47 jonas
  90. * fixed darwin incompatibilities
  91. Revision 1.6 2003/08/06 07:28:21 michael
  92. + Patch from Marc Weustinck to fix Win32 version
  93. Revision 1.5 2002/08/18 19:36:58 marco
  94. * small fixes for NetBSD that doesn't adhere to the gtk12/glib12 etc naming for older GTK versions.
  95. Revision 1.4 2003/03/02 02:08:50 hajny
  96. + OS/2 support for GTK and X11 added by Yuri
  97. Revision 1.3 2002/09/07 15:42:58 peter
  98. * old logs removed and tabs fixed
  99. Revision 1.2 2002/08/31 04:16:48 marco
  100. * BSD Libname fixes (eases Lazarus compilation).
  101. Revision 1.1 2002/01/29 17:55:07 peter
  102. * splitted to base and extra
  103. }