Next: , Previous: Package_Gtk.Color_Selection, Up: Top



Package Gtk.Color_Selection_Dialog

The Gtk_Color_Selection_Dialog provides a standard dialog which allows the user to select a color much like the Gtk_File_Selection provides a standard dialog for file selection.

Widget Hierarchy
     GObject                       (see Package_Glib.Object)
     Gtk_Object                    (see Package_Gtk.Object)
        \___ Gtk_Widget            (see Package_Gtk.Widget)
           \___ Gtk_Container      (see Package_Gtk.Container)
              \___ Gtk_Bin         (see Package_Gtk.Bin)
                 \___ Gtk_Window   (see Package_Gtk.Window)
                    \___ Gtk_Dialog (see Package_Gtk.Dialog)
                       \___ Gtk_Color_Selection_Dialog (see Package_Gtk.Color_Selection_Dialog)
     

Subprograms
procedure Gtk_New (Color_Selection_Dialog : out Gtk_Color_Selection_Dialog; Title : UTF8_String);
Create a new Color_Selection_Dialog with a specified title.

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with a Gtk_Menu.

Functions to get the fields of the dialog


function Get_Colorsel (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) return Gtk.Color_Selection.Gtk_Color_Selection;
Get the Gtk_Color_Selection widget contained within the dialog.
Use this widget and its Gtk.Color_Selection.Get_Color function to gain access to the selected color. Connect a handler for this widget's color_changed signal to be notified when the color changes.

function Get_OK_Button (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) return Gtk.Button.Gtk_Button;
Get the OK button widget contained within the dialog.

function Get_Cancel_Button (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) return Gtk.Button.Gtk_Button;
Get the cancel button widget contained within the dialog.

function Get_Help_Button (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) return Gtk.Button.Gtk_Button;
Get the help button widget contained within the dialog.