gtkimmodule.inc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. { GTK - The GIMP Toolkit
  11. Copyright (C) 2000 Red Hat Software
  12. This library is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU Lesser General Public
  14. License as published by the Free Software Foundation; either
  15. version 2 of the License, or (at your option) any later version.
  16. This library is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. Lesser General Public License for more details.
  20. You should have received a copy of the GNU Lesser General Public
  21. License along with this library; if not, write to the
  22. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  23. Boston, MA 02111-1307, USA.
  24. }
  25. {$ifndef __GTK_IM_MODULE_H__}
  26. {$define __GTK_IM_MODULE_H__}
  27. { C++ extern C conditionnal removed }
  28. { __cplusplus }
  29. {$include gtkimcontext.inc}
  30. type
  31. PGtkIMContextInfo = ^TGtkIMContextInfo;
  32. TGtkIMContextInfo = record
  33. context_id : Pgchar;
  34. context_name : Pgchar;
  35. domain : Pgchar;
  36. domain_dirname : Pgchar;
  37. default_locales : Pgchar;
  38. end;
  39. { Functions for use within GTK+
  40. }
  41. procedure _gtk_im_module_list(contexts:PPPGtkIMContextInfo; n_contexts:Pguint); cdecl; external gtklib;
  42. function _gtk_im_module_create(context_id:Pgchar):PGtkIMContext; cdecl; external gtklib;
  43. function _gtk_im_module_get_default_context_id(lang:Pgchar):Pgchar; cdecl; external gtklib;
  44. { The following entry points are exported by each input method module
  45. }
  46. {
  47. void im_module_list (const GtkIMContextInfo contexts,
  48. guint n_contexts);
  49. void im_module_init (GtkModule module);
  50. void im_module_exit (void);
  51. GtkIMContext im_module_create (const gchar context_id);
  52. }
  53. { C++ end of extern C conditionnal removed }
  54. { __cplusplus }
  55. {$endif}
  56. { __GTK_IM_MODULE_H__ }