gvaluearray.inc 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. { GObject - GLib Type, Object, Parameter and Signal Library
  2. Copyright (C) 2001 Red Hat, Inc.
  3. This library is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU Lesser General Public
  5. License as published by the Free Software Foundation; either
  6. version 2 of the License, or (at your option) any later version.
  7. This library is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. Lesser General Public License for more details.
  11. You should have received a copy of the GNU Lesser General
  12. Public License along with this library; if not, write to the
  13. Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  14. Boston, MA 02111-1307, USA.
  15. gvaluearray.h: GLib array type holding GValues
  16. }
  17. { --- typedefs & structs --- }
  18. type
  19. {< private > }
  20. PGValueArray = ^TGValueArray;
  21. TGValueArray = record
  22. n_values : guint;
  23. values : PGValue;
  24. n_prealloced : guint;
  25. end;
  26. { --- prototypes --- }
  27. function g_value_array_get_nth(value_array:PGValueArray; index:guint):PGValue; cdecl; external gobjectlib;
  28. function g_value_array_new(n_prealloced:guint):PGValueArray; cdecl; external gobjectlib;
  29. procedure g_value_array_free(value_array:PGValueArray); cdecl; external gobjectlib;
  30. function g_value_array_copy(value_array:PGValueArray):PGValueArray; cdecl; external gobjectlib;
  31. function g_value_array_prepend(value_array:PGValueArray; value:PGValue):PGValueArray; cdecl; external gobjectlib;
  32. function g_value_array_append(value_array:PGValueArray; value:PGValue):PGValueArray; cdecl; external gobjectlib;
  33. function g_value_array_insert(value_array:PGValueArray; index:guint; value:PGValue):PGValueArray; cdecl; external gobjectlib;
  34. function g_value_array_remove(value_array:PGValueArray; index:guint):PGValueArray; cdecl; external gobjectlib;
  35. function g_value_array_sort(value_array:PGValueArray; compare_func:TGCompareFunc):PGValueArray; cdecl; external gobjectlib;
  36. function g_value_array_sort_with_data(value_array:PGValueArray; compare_func:TGCompareDataFunc; user_data:gpointer):PGValueArray; cdecl; external gobjectlib;