gdk.pp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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='gdk-1.3';
  31. {$define gtkwin}
  32. {$packrecords C}
  33. {$else}
  34. const
  35. gdkdll='gdk';
  36. {$linklib c}
  37. {$linklib X11}
  38. {$packrecords C}
  39. {$endif}
  40. Type
  41. PLongint = ^Longint;
  42. PByte = ^Byte;
  43. PWord = ^Word;
  44. PINteger = ^Integer;
  45. PCardinal = ^Cardinal;
  46. PReal = ^Real;
  47. PDouble = ^Double;
  48. {$define gdk_include_files}
  49. {$define read_interface}
  50. {$undef read_implementation}
  51. {$i gdktypes.pp}
  52. {$i gdkkeysyms.pp}
  53. {$i gdkprivate.pp}
  54. {$i gdkrgb.pp}
  55. {$i gdkx.pp}
  56. {$i gdkmain.pp}
  57. implementation
  58. {$undef read_interface}
  59. {$define read_implementation}
  60. {$i gdktypes.pp}
  61. {$i gdkkeysyms.pp}
  62. {$i gdkprivate.pp}
  63. {$i gdkrgb.pp}
  64. {$i gdkx.pp}
  65. {$i gdkmain.pp}
  66. end.
  67. {
  68. $Log$
  69. Revision 1.5 2000-09-09 18:41:38 peter
  70. * fixes for gtk win32
  71. Revision 1.4 2000/09/06 21:14:28 peter
  72. * packrecords 4 for win32, packrecords c for linux
  73. Revision 1.3 2000/08/06 10:46:23 peter
  74. * force smartlink (merged)
  75. Revision 1.2 2000/07/13 11:33:19 michael
  76. + removed logs
  77. }