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_Gamma_Curve widget is a child of Gtk_Curve specifically for editing 
  27. --  gamma curves, which are used in graphics applications such as the Gimp. 
  28. -- 
  29. --  The Gamma_Curve widget shows a curve which the user can edit with the mouse 
  30. --  just like a Gtk_Curve widget. On the right of the curve it also displays 5 
  31. --  buttons, 3 of which change between the 3 curve modes (spline, linear and 
  32. --  free), and the other 2 set the curve to a particular gamma value, or reset 
  33. --  it to a straight line. 
  34. --  </description> 
  35. --  <c_version>2.8.17</c_version> 
  36. --  <group>Drawing</group> 
  37. --  <testgtk>create_gamma_curve.adb</testgtk> 
  38. --  <screenshot>gtk-gamma</screenshot> 
  39.  
  40. with Gtk.Box; 
  41. with Gtk.Curve; 
  42.  
  43. package Gtk.Gamma_Curve is 
  44.  
  45.    type Gtk_Gamma_Curve_Record is new Gtk.Box.Gtk_Box_Record with private; 
  46.    type Gtk_Gamma_Curve is access all Gtk_Gamma_Curve_Record'Class; 
  47.  
  48.    procedure Gtk_New (Gamma_Curve : out Gtk_Gamma_Curve); 
  49.    --  Create a new Gtk_Gamma_Curve. 
  50.  
  51.    procedure Initialize (Gamma_Curve : access Gtk_Gamma_Curve_Record'Class); 
  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_Gamma_Curve. 
  57.  
  58.    function Get_Curve 
  59.      (Gamma_Curve : access Gtk_Gamma_Curve_Record) return Gtk.Curve.Gtk_Curve; 
  60.    --  Return the Curve widget associated with a Gamma_Curve. 
  61.  
  62.    function Get_Gamma 
  63.      (Gamma_Curve : access Gtk_Gamma_Curve_Record) return Gfloat; 
  64.    --  Return the Gamma value associated with a Gamma_Curve. 
  65.  
  66.    ---------------- 
  67.    -- Properties -- 
  68.    ---------------- 
  69.  
  70.    --  <properties> 
  71.    --  The following properties are defined for this widget. See 
  72.    --  Glib.Properties for more information on properties. 
  73.    -- 
  74.    --  </properties> 
  75.  
  76.    ------------- 
  77.    -- Signals -- 
  78.    ------------- 
  79.  
  80.    --  <signals> 
  81.    --  The following new signals are defined for this widget: 
  82.    --  </signals> 
  83.  
  84. private 
  85.  
  86.    type Gtk_Gamma_Curve_Record is new Gtk.Box.Gtk_Box_Record with null record; 
  87.  
  88.    pragma Import (C, Get_Type, "gtk_gamma_curve_get_type"); 
  89.  
  90. end Gtk.Gamma_Curve;