gdk.pp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. {$define gtkos2}
  38. {$packrecords C}
  39. {$else}
  40. const
  41. {$ifdef FreeBSD}
  42. gdkdll='gdk12';
  43. {$else}
  44. gdkdll='gdk';
  45. {$endif}
  46. {$linklib c}
  47. {$linklib X11}
  48. {$packrecords C}
  49. {$endif}
  50. {$endif}
  51. Type
  52. PLongint = ^Longint;
  53. PByte = ^Byte;
  54. PWord = ^Word;
  55. PINteger = ^Integer;
  56. PCardinal = ^Cardinal;
  57. PReal = ^Real;
  58. PDouble = ^Double;
  59. {$define gdk_include_files}
  60. {$define read_interface}
  61. {$undef read_implementation}
  62. {$i gdktypes.pp}
  63. {$i gdkkeysyms.pp}
  64. {$i gdkprivate.pp}
  65. {$i gdkrgb.pp}
  66. {$i gdkx.pp}
  67. {$i gdkmain.pp}
  68. implementation
  69. {$undef read_interface}
  70. {$define 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. end.
  78. {
  79. $Log$
  80. Revision 1.6 2003-08-06 07:28:21 michael
  81. + Patch from Marc Weustinck to fix Win32 version
  82. Revision 1.5 2002/08/18 19:36:58 marco
  83. * small fixes for NetBSD that doesn't adhere to the gtk12/glib12 etc naming for older GTK versions.
  84. Revision 1.4 2003/03/02 02:08:50 hajny
  85. + OS/2 support for GTK and X11 added by Yuri
  86. Revision 1.3 2002/09/07 15:42:58 peter
  87. * old logs removed and tabs fixed
  88. Revision 1.2 2002/08/31 04:16:48 marco
  89. * BSD Libname fixes (eases Lazarus compilation).
  90. Revision 1.1 2002/01/29 17:55:07 peter
  91. * splitted to base and extra
  92. }