1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --   Copyright (C) 1998-2000 E. Briot, J. Brobecker and A. Charlet   -- 
  5. --                Copyright (C) 2000-2006 AdaCore                    -- 
  6. --                                                                   -- 
  7. -- This library is free software; you can redistribute it and/or     -- 
  8. -- modify it under the terms of the GNU General Public               -- 
  9. -- License as published by the Free Software Foundation; either      -- 
  10. -- version 2 of the License, or (at your option) any later version.  -- 
  11. --                                                                   -- 
  12. -- This library is distributed in the hope that it will be useful,   -- 
  13. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  14. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  15. -- General Public License for more details.                          -- 
  16. --                                                                   -- 
  17. -- You should have received a copy of the GNU General Public         -- 
  18. -- License along with this library; if not, write to the             -- 
  19. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  20. -- Boston, MA 02111-1307, USA.                                       -- 
  21. --                                                                   -- 
  22. -- -- -- -- -- -- -- -- -- -- -- --
  23. ----------------------------------------------------------------------- 
  24.  
  25. --  <description> 
  26. --  The Gtk_Color_Selection_Dialog provides a standard dialog which allows the 
  27. --  user to select a color much like the Gtk_File_Selection provides a standard 
  28. --  dialog for file selection. 
  29. --  </description> 
  30. --  <c_version>2.8.17</c_version> 
  31. --  <group>Drawing</group> 
  32.  
  33. with Gtk.Dialog; 
  34. with Gtk.Button; 
  35. with Gtk.Color_Selection; 
  36.  
  37. package Gtk.Color_Selection_Dialog is 
  38.  
  39.    type Gtk_Color_Selection_Dialog_Record is new 
  40.      Gtk.Dialog.Gtk_Dialog_Record with private; 
  41.    type Gtk_Color_Selection_Dialog 
  42.      is access all Gtk_Color_Selection_Dialog_Record'Class; 
  43.  
  44.    procedure Gtk_New 
  45.      (Color_Selection_Dialog : out Gtk_Color_Selection_Dialog; 
  46.       Title                  : UTF8_String); 
  47.    --  Create a new Color_Selection_Dialog with a specified title. 
  48.  
  49.    procedure Initialize 
  50.      (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record'Class; 
  51.       Title                  : UTF8_String); 
  52.    --  Internal initialization function. 
  53.    --  See the section "Creating your own widgets" in the documentation. 
  54.  
  55.    function Get_Type return Gtk.Gtk_Type; 
  56.    --  Return the internal value associated with a Gtk_Menu. 
  57.  
  58.    ----------------------------------------------- 
  59.    -- Functions to get the fields of the dialog -- 
  60.    ----------------------------------------------- 
  61.  
  62.    function Get_Colorsel 
  63.      (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) 
  64.       return Gtk.Color_Selection.Gtk_Color_Selection; 
  65.    --  Get the Gtk_Color_Selection widget contained within the dialog. 
  66.    --  Use this widget and its Gtk.Color_Selection.Get_Color function to gain 
  67.    --  access to the selected color. Connect a handler for this widget's 
  68.    --  color_changed signal to be notified when the color changes. 
  69.  
  70.    function Get_OK_Button 
  71.      (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) 
  72.       return Gtk.Button.Gtk_Button; 
  73.    --  Get the OK button widget contained within the dialog. 
  74.  
  75.    function Get_Cancel_Button 
  76.      (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) 
  77.       return Gtk.Button.Gtk_Button; 
  78.    --  Get the cancel button widget contained within the dialog. 
  79.  
  80.    function Get_Help_Button 
  81.      (Color_Selection_Dialog : access Gtk_Color_Selection_Dialog_Record) 
  82.       return Gtk.Button.Gtk_Button; 
  83.    --  Get the help button widget contained within the dialog. 
  84.  
  85.    ---------------- 
  86.    -- Properties -- 
  87.    ---------------- 
  88.  
  89.    --  <properties> 
  90.    --  The following properties are defined for this widget. See 
  91.    --  Glib.Properties for more information on properties. 
  92.    -- 
  93.    --  </properties> 
  94.  
  95.    ------------- 
  96.    -- Signals -- 
  97.    ------------- 
  98.  
  99.    --  <signals> 
  100.    --  The following new signals are defined for this widget: 
  101.    -- 
  102.    --  </signals> 
  103.  
  104. private 
  105.    type Gtk_Color_Selection_Dialog_Record is new 
  106.      Gtk.Dialog.Gtk_Dialog_Record with null record; 
  107.  
  108.    pragma Import (C, Get_Type, "gtk_color_selection_dialog_get_type"); 
  109. end Gtk.Color_Selection_Dialog;