gdk.pp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. GDK - The GIMP Drawing Kit
  3. Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
  4. This library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Library General Public
  6. License as published by the Free Software Foundation; either
  7. version 2 of the License, or (at your option) any later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Library General Public License for more details.
  12. You should have received a copy of the GNU Library General Public
  13. License along with this library; if not, write to the
  14. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  15. Boston, MA 02111-1307, USA.
  16. **********************************************************************}
  17. unit gdk;
  18. interface
  19. {$mode objfpc} { needed for array of const }
  20. { Always use smartlinking for win32, this solves some undefined functions
  21. in the development gtk versions which change often (PFV) }
  22. {$ifdef win32}
  23. {$ifndef NO_SMART_LINK}
  24. {$smartlink on}
  25. {$endif}
  26. {$endif}
  27. uses
  28. glib;
  29. {$ifdef win32}
  30. const
  31. gdkdll='libgdk-0';
  32. {$define gtkwin}
  33. {$packrecords C}
  34. {$else}
  35. {$ifdef os2}
  36. const
  37. gdkdll='gdk12';
  38. {$linklib gdk12}
  39. {$define gtkos2}
  40. {$packrecords C}
  41. {$else}
  42. const
  43. {$ifdef FreeBSD}
  44. gdkdll='gdk-12';
  45. {$linklib gdk-12}
  46. {$else}
  47. {$ifdef darwin}
  48. {$define gtkdarwin}
  49. gdkdll='gdk-1.2.0';
  50. {$linklib gdk-1.2.0}
  51. {$else}
  52. gdkdll='gdk';
  53. {$linklib gdk}
  54. {$endif}
  55. {$endif}
  56. {$linklib c}
  57. {$linklib X11}
  58. {$packrecords C}
  59. {$endif}
  60. {$endif}
  61. Type
  62. PLongint = ^Longint;
  63. PByte = ^Byte;
  64. PWord = ^Word;
  65. PINteger = ^Integer;
  66. PCardinal = ^Cardinal;
  67. PReal = ^Real;
  68. PDouble = ^Double;
  69. {$define gdk_include_files}
  70. {$define read_interface}
  71. {$undef read_implementation}
  72. {$i gdktypes.pp}
  73. {$i gdkkeysyms.pp}
  74. {$i gdkprivate.pp}
  75. {$i gdkrgb.pp}
  76. {$i gdkx.pp}
  77. {$i gdkmain.pp}
  78. implementation
  79. {$undef read_interface}
  80. {$define read_implementation}
  81. {$i gdktypes.pp}
  82. {$i gdkkeysyms.pp}
  83. {$i gdkprivate.pp}
  84. {$i gdkrgb.pp}
  85. {$i gdkx.pp}
  86. {$i gdkmain.pp}
  87. end.