Gtk.Hsv

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Hsv
Parameters
Interf
Return Value

Cb_GObject_Gtk_Direction_Type_Void

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);
Parameters
Self
Object

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
  (Self : access Glib.Object.GObject_Record'Class);
Parameters
Self

Cb_Gtk_Hsv_Gtk_Direction_Type_Void

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);
Parameters
Self
Object

Cb_Gtk_Hsv_Void

type Cb_Gtk_Hsv_Void is not null access procedure (Self : access Gtk_Hsv_Record'Class);
Parameters
Self

Get_Color

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

Parameters
Self
H

Return value for the hue

S

Return value for the saturation

V

Return value for the value

Get_Metrics

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

Parameters
Self
Size

Return value for the diameter of the hue ring

Ring_Width

Return value for the width of the hue ring

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Hsv

type Gtk_Hsv is access all Gtk_Hsv_Record'Class;

Gtk_Hsv_New

function Gtk_Hsv_New return Gtk_Hsv

Creates a new HSV color selector. Since: gtk+ 2.14

Return Value

Gtk_Hsv_Record

type Gtk_Hsv_Record is new Gtk_Widget_Record with null record;

Gtk_New

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.

Parameters
Self

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Hsv_Record, Gtk_Hsv);

Initialize

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.

Parameters
Self

Is_Adjusting

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

Parameters
Self
Return Value

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.

On_Changed

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)
Parameters
Self
Call
Slot
After

On_Changed

procedure On_Changed
   (Self  : not null access Gtk_Hsv_Record;
    Call  : Cb_Gtk_Hsv_Void;
    After : Boolean := False)
Parameters
Self
Call
After

On_Move

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)
Parameters
Self
Call
Slot
After

On_Move

procedure On_Move
   (Self  : not null access Gtk_Hsv_Record;
    Call  : Cb_Gtk_Hsv_Gtk_Direction_Type_Void;
    After : Boolean := False)
Parameters
Self
Call
After

Set_Color

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

Parameters
Self
H

Hue

S

Saturation

V

Value

Set_Metrics

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

Parameters
Self
Size

Diameter for the hue ring

Ring_Width

Width of the hue ring

Signal_Changed

Signal_Changed : constant Glib.Signal_Name := "changed";

Signal_Move

Signal_Move : constant Glib.Signal_Name := "move";

To_Rgb

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

Parameters
H

Hue

S

Saturation

V

Value

R

Return value for the red component

G

Return value for the green component

B

Return value for the blue component