gdk.pp 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. {$smartlink on}
  24. {$endif}
  25. uses
  26. glib;
  27. {$ifdef win32}
  28. const
  29. gdkdll='libgdk-0';
  30. {$define gtkwin}
  31. {$packrecords C}
  32. {$else}
  33. {$ifdef os2}
  34. const
  35. gdkdll='gdk12';
  36. {$linklib gdk12}
  37. {$define gtkos2}
  38. {$packrecords C}
  39. {$else}
  40. const
  41. {$ifdef FreeBSD}
  42. gdkdll='gdk-12';
  43. {$linklib gdk-12}
  44. {$else}
  45. {$ifdef darwin}
  46. {$define gtkdarwin}
  47. gdkdll='gdk-1.2.0';
  48. {$linklib gdk-1.2.0}
  49. {$else}
  50. gdkdll='gdk';
  51. {$linklib gdk}
  52. {$endif}
  53. {$endif}
  54. {$linklib c}
  55. {$linklib X11}
  56. {$packrecords C}
  57. {$endif}
  58. {$endif}
  59. Type
  60. PLongint = ^Longint;
  61. PByte = ^Byte;
  62. PWord = ^Word;
  63. PINteger = ^Integer;
  64. PCardinal = ^Cardinal;
  65. PReal = ^Real;
  66. PDouble = ^Double;
  67. {$define gdk_include_files}
  68. {$define read_interface}
  69. {$undef read_implementation}
  70. {$i gdktypes.pp}
  71. {$i gdkkeysyms.pp}
  72. {$i gdkprivate.pp}
  73. {$i gdkrgb.pp}
  74. {$i gdkx.pp}
  75. {$i gdkmain.pp}
  76. implementation
  77. {$undef read_interface}
  78. {$define read_implementation}
  79. {$i gdktypes.pp}
  80. {$i gdkkeysyms.pp}
  81. {$i gdkprivate.pp}
  82. {$i gdkrgb.pp}
  83. {$i gdkx.pp}
  84. {$i gdkmain.pp}
  85. end.