gtkkeyhash.inc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. { Pointers to basic pascal types, inserted by h2pas conversion program.}
  2. Type
  3. PLongint = ^Longint;
  4. PSmallInt = ^SmallInt;
  5. PByte = ^Byte;
  6. PWord = ^Word;
  7. PDWord = ^DWord;
  8. PDouble = ^Double;
  9. {$PACKRECORDS C}
  10. { gtkkeyhash.h: Keymap aware matching of key bindings
  11. GTK - The GIMP Toolkit
  12. Copyright (C) 2002, Red Hat Inc.
  13. This library is free software; you can redistribute it and/or
  14. modify it under the terms of the GNU Lesser General Public
  15. License as published by the Free Software Foundation; either
  16. version 2 of the License, or (at your option) any later version.
  17. This library is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. Lesser General Public License for more details.
  21. You should have received a copy of the GNU Lesser General Public
  22. License along with this library; if not, write to the
  23. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  24. Boston, MA 02110-1301, USA.
  25. }
  26. {$ifndef __GTK_KEY_HASH_H__}
  27. {$define __GTK_KEY_HASH_H__}
  28. {$include <gdk/gdk.inc}
  29. type
  30. function _gtk_key_hash_new(keymap:PGdkKeymap; item_destroy_notify:TGDestroyNotify):PGtkKeyHash; cdecl; external gtklib;
  31. procedure _gtk_key_hash_add_entry(key_hash:PGtkKeyHash; keyval:guint; modifiers:TGdkModifierType; value:gpointer); cdecl; external gtklib;
  32. procedure _gtk_key_hash_remove_entry(key_hash:PGtkKeyHash; value:gpointer); cdecl; external gtklib;
  33. function _gtk_key_hash_lookup(key_hash:PGtkKeyHash; hardware_keycode:guint16; state:TGdkModifierType; group:gint):PGSList; cdecl; external gtklib;
  34. function _gtk_key_hash_lookup_keyval(key_hash:PGtkKeyHash; keyval:guint; modifiers:TGdkModifierType):PGSList; cdecl; external gtklib;
  35. procedure _gtk_key_hash_free(key_hash:PGtkKeyHash); cdecl; external gtklib;
  36. {$endif}
  37. { __GTK_KEY_HASH_H__ }