Gtk.Hsv.Gtk_Hsv is the "color wheel" part of a complete color selector widget. It allows to select a color by determining its HSV components in an intuitive way. Moving the selection around the outer ring changes the hue, and moving the selection point inside the inner triangle changes value and saturation.
Gtk.Hsv.Gtk_Hsv has been deprecated together with Gtk.Color_Selection.Gtk_Color_Selection, where it was used.
function "+"
(Widget : access Gtk_Hsv_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Hsv
type Cb_GObject_Gtk_Direction_Type_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class;
Object : Gtk.Enums.Gtk_Direction_Type);
type Cb_GObject_Void is not null access procedure
(Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_Hsv_Gtk_Direction_Type_Void is not null access procedure
(Self : access Gtk_Hsv_Record'Class;
Object : Gtk.Enums.Gtk_Direction_Type);
type Cb_Gtk_Hsv_Void is not null access procedure (Self : access Gtk_Hsv_Record'Class);
procedure Get_Color
(Self : not null access Gtk_Hsv_Record;
H : out Gdouble;
S : out Gdouble;
V : out Gdouble)
Queries the current color in an HSV color selector. Returned values will be in the [0.0, 1.0] range. Since: gtk+ 2.14
Return value for the hue
Return value for the saturation
Return value for the value
procedure Get_Metrics
(Self : not null access Gtk_Hsv_Record;
Size : out Glib.Gint;
Ring_Width : out Glib.Gint)
Queries the size and ring width of an HSV color selector. Since: gtk+ 2.14
Return value for the diameter of the hue ring
Return value for the width of the hue ring
function Get_Type return Glib.GType
type Gtk_Hsv is access all Gtk_Hsv_Record'Class;
function Gtk_Hsv_New return Gtk_Hsv
Creates a new HSV color selector. Since: gtk+ 2.14
type Gtk_Hsv_Record is new Gtk_Widget_Record with null record;
procedure Gtk_New (Self : out Gtk_Hsv)
Creates a new HSV color selector. Since: gtk+ 2.14 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Hsv_Record, Gtk_Hsv);
procedure Initialize (Self : not null access Gtk_Hsv_Record'Class)
Creates a new HSV color selector. Since: gtk+ 2.14 Initialize does nothing if the object was already created with another call to Initialize* or G_New.
function Is_Adjusting
(Self : not null access Gtk_Hsv_Record) return Boolean
An HSV color selector can be said to be adjusting if multiple rapid changes are being made to its value, for example, when the user is adjusting the value with the mouse. This function queries whether the HSV color selector is being adjusted or not. Since: gtk+ 2.14
True if clients can ignore changes to the color value, since they may be transitory, or False if they should consider the color value status to be final.
procedure On_Changed
(Self : not null access Gtk_Hsv_Record;
Call : Cb_GObject_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
procedure On_Changed
(Self : not null access Gtk_Hsv_Record;
Call : Cb_Gtk_Hsv_Void;
After : Boolean := False)
procedure On_Move
(Self : not null access Gtk_Hsv_Record;
Call : Cb_GObject_Gtk_Direction_Type_Void;
Slot : not null access Glib.Object.GObject_Record'Class;
After : Boolean := False)
procedure On_Move
(Self : not null access Gtk_Hsv_Record;
Call : Cb_Gtk_Hsv_Gtk_Direction_Type_Void;
After : Boolean := False)
procedure Set_Color
(Self : not null access Gtk_Hsv_Record;
H : Gdouble;
S : Gdouble;
V : Gdouble)
Sets the current color in an HSV color selector. Color component values must be in the [0.0, 1.0] range. Since: gtk+ 2.14
Hue
Saturation
Value
procedure Set_Metrics
(Self : not null access Gtk_Hsv_Record;
Size : Glib.Gint;
Ring_Width : Glib.Gint)
Sets the size and ring width of an HSV color selector. Since: gtk+ 2.14
Diameter for the hue ring
Width of the hue ring
Signal_Changed : constant Glib.Signal_Name := "changed";
Signal_Move : constant Glib.Signal_Name := "move";
procedure To_Rgb
(H : Gdouble;
S : Gdouble;
V : Gdouble;
R : out Gdouble;
G : out Gdouble;
B : out Gdouble)
Converts a color from HSV space to RGB. Input values must be in the [0.0, 1.0] range; output values will be in the same range. Since: gtk+ 2.14
Hue
Saturation
Value
Return value for the red component
Return value for the green component
Return value for the blue component