gcompletion.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. // {$include <glib/glist.h>}
  2. type
  3. PGCompletionFunc = ^TGCompletionFunc;
  4. TGCompletionFunc = gchar;
  5. { GCompletion }
  6. TGCompletionStrncmpFunc = function (s1:Pgchar; s2:Pgchar; n:gsize):gint;cdecl;
  7. PGCompletion = ^TGCompletion;
  8. TGCompletion = record
  9. items : PGList;
  10. func : TGCompletionFunc;
  11. prefix : Pgchar;
  12. cache : PGList;
  13. strncmp_func : TGCompletionStrncmpFunc;
  14. end;
  15. function g_completion_new(func:TGCompletionFunc):PGCompletion;cdecl;external gliblib name 'g_completion_new';
  16. procedure g_completion_add_items(cmp:PGCompletion; items:PGList);cdecl;external gliblib name 'g_completion_add_items';
  17. procedure g_completion_remove_items(cmp:PGCompletion; items:PGList);cdecl;external gliblib name 'g_completion_remove_items';
  18. procedure g_completion_clear_items(cmp:PGCompletion);cdecl;external gliblib name 'g_completion_clear_items';
  19. function g_completion_complete(cmp:PGCompletion; prefix:Pgchar; new_prefix:PPgchar):PGList;cdecl;external gliblib name 'g_completion_complete';
  20. procedure g_completion_set_compare(cmp:PGCompletion; strncmp_func:TGCompletionStrncmpFunc);cdecl;external gliblib name 'g_completion_set_compare';
  21. procedure g_completion_free(cmp:PGCompletion);cdecl;external gliblib name 'g_completion_free';