gtkhsv.inc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. { HSV color selector for GTK+
  11. Copyright (C) 1999 The Free Software Foundation
  12. Authors: Simon Budig <[email protected]> (original code)
  13. Federico Mena-Quintero <[email protected]> (cleanup for GTK+)
  14. Jonathan Blandford <[email protected]> (cleanup for GTK+)
  15. This library is free software; you can redistribute it and/or
  16. modify it under the terms of the GNU Lesser General Public
  17. License as published by the Free Software Foundation; either
  18. version 2 of the License, or (at your option) any later version.
  19. This library is distributed in the hope that it will be useful,
  20. but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22. Lesser General Public License for more details.
  23. You should have received a copy of the GNU Lesser General Public
  24. License along with this library; if not, write to the
  25. Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  26. Boston, MA 02111-1307, USA.
  27. }
  28. {$ifndef __GTK_HSV_H__}
  29. {$define __GTK_HSV_H__}
  30. {
  31. Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
  32. file for a list of people on the GTK+ Team. See the ChangeLog
  33. files for a list of changes. These files are distributed with
  34. GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  35. }
  36. {$include gtkcontainer.inc}
  37. { C++ extern C conditionnal removed }
  38. function GTK_TYPE_HSV : GType;
  39. function GTK_HSV(obj: pointer) : longint;
  40. function GTK_HSV_CLASS(klass: pointer) : longint;
  41. function GTK_IS_HSV(obj: pointer) : boolean;
  42. function GTK_IS_HSV_CLASS(klass: pointer) : boolean;
  43. function GTK_HSV_GET_CLASS(obj: pointer) : longint;
  44. type
  45. { Private data }
  46. PGtkHSV = ^TGtkHSV;
  47. TGtkHSV = record
  48. parent_instance : TGtkWidget;
  49. priv : gpointer;
  50. end;
  51. { Notification signals }
  52. { Keybindings }
  53. PGtkHSVClass = ^TGtkHSVClass;
  54. TGtkHSVClass = record
  55. parent_class : TGtkWidgetClass;
  56. changed : procedure (hsv:PGtkHSV); cdecl;
  57. move : procedure (hsv:PGtkHSV; _type:TGtkDirectionType); cdecl;
  58. end;
  59. function gtk_hsv_get_type:TGtkType; cdecl; external gtklib;
  60. function gtk_hsv_new:PGtkWidget; cdecl; external gtklib;
  61. procedure gtk_hsv_set_color(hsv:PGtkHSV; h:Tdouble; s:Tdouble; v:Tdouble); cdecl; external gtklib;
  62. procedure gtk_hsv_get_color(hsv:PGtkHSV; h:Pgdouble; s:Pgdouble; v:Pgdouble); cdecl; external gtklib;
  63. procedure gtk_hsv_set_metrics(hsv:PGtkHSV; size:gint; ring_width:gint); cdecl; external gtklib;
  64. procedure gtk_hsv_get_metrics(hsv:PGtkHSV; size:Pgint; ring_width:Pgint); cdecl; external gtklib;
  65. function gtk_hsv_is_adjusting(hsv:PGtkHSV):gboolean; cdecl; external gtklib;
  66. procedure gtk_hsv_to_rgb(h:gdouble; s:gdouble; v:gdouble; r:Pgdouble; g:Pgdouble;
  67. b:Pgdouble); cdecl; external gtklib;
  68. procedure gtk_rgb_to_hsv(r:gdouble; g:gdouble; b:gdouble; h:Pgdouble; s:Pgdouble;
  69. v:Pgdouble); cdecl; external gtklib;
  70. { C++ end of extern C conditionnal removed }
  71. {$endif}
  72. { __GTK_HSV_H__ }
  73. function GTK_TYPE_HSV : GType;
  74. begin
  75. GTK_TYPE_HSV:=gtk_hsv_get_type;
  76. end;
  77. function GTK_HSV(obj: pointer) : PGtkHSV;
  78. begin
  79. GTK_HSV:=PGtkHSV(GTK_CHECK_CAST(obj,GTK_TYPE_HSV));
  80. end;
  81. function GTK_HSV_CLASS(klass: pointer) : PGtkHSVClass;
  82. begin
  83. GTK_HSV_CLASS:=PGtkHSVClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_HSV));
  84. end;
  85. function GTK_IS_HSV(obj: pointer) : boolean;
  86. begin
  87. GTK_IS_HSV:=GTK_CHECK_TYPE(obj,GTK_TYPE_HSV);
  88. end;
  89. function GTK_IS_HSV_CLASS(klass: pointer) : boolean;
  90. begin
  91. GTK_IS_HSV_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_HSV);
  92. end;
  93. function GTK_HSV_GET_CLASS(obj: pointer) : PGtkHSVClass;
  94. begin
  95. GTK_HSV_GET_CLASS:=PGtkHSVClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_HSV));
  96. end;