1. ----------------------------------------------------------------------- 
  2. --               GtkAda - Ada95 binding for Gtk+/Gnome               -- 
  3. --                                                                   -- 
  4. --                Copyright (C) 2000-2006 AdaCore                    -- 
  5. --                                                                   -- 
  6. -- This library is free software; you can redistribute it and/or     -- 
  7. -- modify it under the terms of the GNU General Public               -- 
  8. -- License as published by the Free Software Foundation; either      -- 
  9. -- version 2 of the License, or (at your option) any later version.  -- 
  10. --                                                                   -- 
  11. -- This library is distributed in the hope that it will be useful,   -- 
  12. -- but WITHOUT ANY WARRANTY; without even the implied warranty of    -- 
  13. -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU -- 
  14. -- General Public License for more details.                          -- 
  15. --                                                                   -- 
  16. -- You should have received a copy of the GNU General Public         -- 
  17. -- License along with this library; if not, write to the             -- 
  18. -- Free Software Foundation, Inc., 59 Temple Place - Suite 330,      -- 
  19. -- Boston, MA 02111-1307, USA.                                       -- 
  20. --                                                                   -- 
  21. -- -- -- -- -- -- -- -- -- -- -- --
  22. ----------------------------------------------------------------------- 
  23.  
  24. --  <description> 
  25. --  A special kind of child that can be put in a Gtk_Plot_Canvas. 
  26. --  </description> 
  27. --  <c_version>gtkextra 2.1.1</c_version> 
  28. --  <group>Plotting Data</group> 
  29.  
  30. with Gdk.Color; 
  31. with Gtk.Extra.Plot; 
  32.  
  33. package Gtk.Extra.Plot_Canvas.Rectangle is 
  34.  
  35.    type Gtk_Plot_Canvas_Rectangle_Record is new Gtk_Plot_Canvas_Child_Record 
  36.      with null record; 
  37.    type Gtk_Plot_Canvas_Rectangle is access 
  38.      all Gtk_Plot_Canvas_Rectangle_Record'Class; 
  39.  
  40.    procedure Gtk_New 
  41.      (Child       : out Gtk_Plot_Canvas_Rectangle; 
  42.       Style       : Gtk.Extra.Plot_Data.Plot_Line_Style; 
  43.       Line_Width  : Gfloat; 
  44.       Fg          : Gdk.Color.Gdk_Color; 
  45.       Bg          : Gdk.Color.Gdk_Color; 
  46.       Border      : Gtk.Extra.Plot.Plot_Border_Style; 
  47.       Fill        : Boolean); 
  48.    --  Creates a new rectangle child 
  49.  
  50.    function Get_Type return Glib.GType; 
  51.    --  Return the internal type used for this child 
  52.  
  53.    procedure Set_Attributes 
  54.      (Rectangle : access Gtk_Plot_Canvas_Rectangle_Record; 
  55.       Style     : Gtk.Extra.Plot_Data.Plot_Line_Style; 
  56.       Width     : Gfloat; 
  57.       Fg        : Gdk.Color.Gdk_Color; 
  58.       Bg        : Gdk.Color.Gdk_Color; 
  59.       Border    : Gtk.Extra.Plot.Plot_Border_Style; 
  60.       Fill      : Boolean); 
  61.    --  Change the attributes of the rectangle 
  62.  
  63. private 
  64.    pragma Import (C, Get_Type, "gtk_plot_canvas_rectangle_get_type"); 
  65. end Gtk.Extra.Plot_Canvas.Rectangle;