package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Color_Selection_Record, Gtk_Color_Selection);
package Implements_Gtk_Orientable is new Glib.Types.Implements (Gtk.Orientable.Gtk_Orientable, Gtk_Color_Selection_Record, Gtk_Color_Selection);
type Gtk_Color_Selection_Record is new Gtk_Box_Record with null record;
type Gtk_Color_Selection is access all Gtk_Color_Selection_Record'Class;
type Gtk_Color_Selection_Change_Palette_With_Screen_Func is access procedure (Screen : System.Address;-- Convert to Gdk_Screen with Get_User_Data Colors : Gdk.Color.Gdk_Color_Unconstrained_Array; N_Colors : Gint);
type Cb_Gtk_Color_Selection_Void is not null access procedure (Self : access Gtk_Color_Selection_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
Current_Alpha_Property : constant Glib.Properties.Property_Uint;
Current_Color_Property : constant Gdk.Color.Property_Gdk_Color;
Current_Rgba_Property : constant Gdk.RGBA.Property_RGBA;
Has_Opacity_Control_Property : constant Glib.Properties.Property_Boolean;
Has_Palette_Property : constant Glib.Properties.Property_Boolean;
Signal_Color_Changed : constant Glib.Signal_Name := "color-changed";
procedure Gtk_New
( | Colorsel | : out Gtk_Color_Selection); |
procedure Initialize
( | Colorsel | : not null access Gtk_Color_Selection_Record'Class); |
function Gtk_Color_Selection_New return Gtk_Color_Selection;
function Get_Type return Glib.GType;
function Get_Current_Alpha
( | Colorsel | : not null access Gtk_Color_Selection_Record) return Guint16; |
procedure Set_Current_Alpha
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Alpha | : Guint16); |
procedure Get_Current_Color
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Color | : out Gdk.Color.Gdk_Color); |
procedure Set_Current_Color
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Color | : Gdk.Color.Gdk_Color); |
procedure Get_Current_Rgba
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Rgba | : out Gdk.RGBA.Gdk_RGBA); |
procedure Set_Current_Rgba
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Rgba | : Gdk.RGBA.Gdk_RGBA); |
function Get_Has_Opacity_Control
( | Colorsel | : not null access Gtk_Color_Selection_Record) return Boolean; |
procedure Set_Has_Opacity_Control
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Has_Opacity | : Boolean); |
function Get_Has_Palette
( | Colorsel | : not null access Gtk_Color_Selection_Record) return Boolean; |
procedure Set_Has_Palette
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Has_Palette | : Boolean); |
function Get_Previous_Alpha
( | Colorsel | : not null access Gtk_Color_Selection_Record) return Guint16; |
procedure Set_Previous_Alpha
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Alpha | : Guint16); |
procedure Get_Previous_Color
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Color | : out Gdk.Color.Gdk_Color); |
procedure Set_Previous_Color
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Color | : Gdk.Color.Gdk_Color); |
procedure Get_Previous_Rgba
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Rgba | : out Gdk.RGBA.Gdk_RGBA); |
procedure Set_Previous_Rgba
( | Colorsel | : not null access Gtk_Color_Selection_Record; |
Rgba | : Gdk.RGBA.Gdk_RGBA); |
function Is_Adjusting
( | Colorsel | : not null access Gtk_Color_Selection_Record) return Boolean; |
function Palette_From_String
( | Str | : String) return Gdk.Color.Gdk_Color_Array; |
function Palette_To_String
( | Colors | : Gdk.Color.Gdk_Color_Array) return String; |
function Get_Orientation
( | Self | : not null access Gtk_Color_Selection_Record) return Gtk.Enums.Gtk_Orientation; |
procedure Set_Orientation
( | Self | : not null access Gtk_Color_Selection_Record; |
Orientation | : Gtk.Enums.Gtk_Orientation); |
procedure Set_Change_Palette_With_Screen_Hook
( | Func | : Gtk_Color_Selection_Change_Palette_With_Screen_Func); |
procedure On_Color_Changed
( | Self | : not null access Gtk_Color_Selection_Record; |
Call | : Cb_Gtk_Color_Selection_Void; | |
After | : Boolean := False); |
procedure On_Color_Changed
( | Self | : not null access Gtk_Color_Selection_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
function "+"
( | Widget | : access Gtk_Color_Selection_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Color_Selection renames Implements_Gtk_Buildable.To_Object; |
function "+"
( | Widget | : access Gtk_Color_Selection_Record'Class) return Gtk.Orientable.Gtk_Orientable renames Implements_Gtk_Orientable.To_Interface; |
function "-"
( | Interf | : Gtk.Orientable.Gtk_Orientable) return Gtk_Color_Selection renames Implements_Gtk_Orientable.To_Object; |
A Gtk_Color_Selection widget is a complex dialog that allows the user to select a color based either on its (Red, Green, Blue) or its (Hue, Saturation, Value). An additional field is provided to select the opacity of the color (this is usually called the alpha channel).
See Gtk.Color_Selection_Dialog for a version of this widget that comes with its own dialog.
See Gtk.Extra.Color_Combo for a different way to select colors.