1
{ Pointers to basic pascal types, inserted by h2pas conversion program.}
12
{ HSV color selector for GTK+
14
Copyright (C) 1999 The Free Software Foundation
16
Authors: Simon Budig <Simon.Budig@unix-ag.org> (original code)
17
Federico Mena-Quintero <federico@gimp.org> (cleanup for GTK+)
18
Jonathan Blandford <jrb@redhat.com> (cleanup for GTK+)
20
This library is free software; you can redistribute it and/or
21
modify it under the terms of the GNU Lesser General Public
22
License as published by the Free Software Foundation; either
23
version 2 of the License, or (at your option) any later version.
25
This library is distributed in the hope that it will be useful,
26
but WITHOUT ANY WARRANTY; without even the implied warranty of
27
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28
Lesser General Public License for more details.
30
You should have received a copy of the GNU Lesser General Public
31
License along with this library; if not, write to the
32
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
33
Boston, MA 02111-1307, USA.
35
{$ifndef __GTK_HSV_H__}
36
{$define __GTK_HSV_H__}
38
Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
39
file for a list of people on the GTK+ Team. See the ChangeLog
40
files for a list of changes. These files are distributed with
41
GTK+ at ftp://ftp.gtk.org/pub/gtk/.
43
{$include gtkcontainer.inc}
44
{ C++ extern C conditionnal removed }
45
function GTK_TYPE_HSV : GType;
46
function GTK_HSV(obj: pointer) : longint;
47
function GTK_HSV_CLASS(klass: pointer) : longint;
48
function GTK_IS_HSV(obj: pointer) : boolean;
49
function GTK_IS_HSV_CLASS(klass: pointer) : boolean;
50
function GTK_HSV_GET_CLASS(obj: pointer) : longint;
56
parent_instance : TGtkWidget;
60
{ Notification signals }
62
PGtkHSVClass = ^TGtkHSVClass;
64
parent_class : TGtkWidgetClass;
65
changed : procedure (hsv:PGtkHSV); cdecl;
66
move : procedure (hsv:PGtkHSV; _type:TGtkDirectionType); cdecl;
70
function gtk_hsv_get_type:TGtkType; cdecl; external gtklib;
71
function gtk_hsv_new:PGtkWidget; cdecl; external gtklib;
72
procedure gtk_hsv_set_color(hsv:PGtkHSV; h:Tdouble; s:Tdouble; v:Tdouble); cdecl; external gtklib;
73
procedure gtk_hsv_get_color(hsv:PGtkHSV; h:Pgdouble; s:Pgdouble; v:Pgdouble); cdecl; external gtklib;
74
procedure gtk_hsv_set_metrics(hsv:PGtkHSV; size:gint; ring_width:gint); cdecl; external gtklib;
75
procedure gtk_hsv_get_metrics(hsv:PGtkHSV; size:Pgint; ring_width:Pgint); cdecl; external gtklib;
76
function gtk_hsv_is_adjusting(hsv:PGtkHSV):gboolean; cdecl; external gtklib;
77
procedure gtk_hsv_to_rgb(h:gdouble; s:gdouble; v:gdouble; r:Pgdouble; g:Pgdouble;
78
b:Pgdouble); cdecl; external gtklib;
79
procedure gtk_rgb_to_hsv(r:gdouble; g:gdouble; b:gdouble; h:Pgdouble; s:Pgdouble;
80
v:Pgdouble); cdecl; external gtklib;
81
{ C++ end of extern C conditionnal removed }
84
function GTK_TYPE_HSV : GType;
86
GTK_TYPE_HSV:=gtk_hsv_get_type;
89
function GTK_HSV(obj: pointer) : PGtkHSV;
91
GTK_HSV:=PGtkHSV(GTK_CHECK_CAST(obj,GTK_TYPE_HSV));
94
function GTK_HSV_CLASS(klass: pointer) : PGtkHSVClass;
96
GTK_HSV_CLASS:=PGtkHSVClass(GTK_CHECK_CLASS_CAST(klass,GTK_TYPE_HSV));
99
function GTK_IS_HSV(obj: pointer) : boolean;
101
GTK_IS_HSV:=GTK_CHECK_TYPE(obj,GTK_TYPE_HSV);
104
function GTK_IS_HSV_CLASS(klass: pointer) : boolean;
106
GTK_IS_HSV_CLASS:=GTK_CHECK_CLASS_TYPE(klass,GTK_TYPE_HSV);
109
function GTK_HSV_GET_CLASS(obj: pointer) : PGtkHSVClass;
111
GTK_HSV_GET_CLASS:=PGtkHSVClass(GTK_CHECK_GET_CLASS(obj,GTK_TYPE_HSV));