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_Data; 
  32.  
  33. package Gtk.Extra.Plot_Canvas.Line is 
  34.  
  35.    type Gtk_Plot_Canvas_Line_Record is new Gtk_Plot_Canvas_Child_Record 
  36.      with null record; 
  37.    type Gtk_Plot_Canvas_Line is access all Gtk_Plot_Canvas_Line_Record'Class; 
  38.  
  39.    type Plot_Canvas_Arrow is new Gint; 
  40.    Arrow_None   : constant Plot_Canvas_Arrow := 0; 
  41.    Arrow_Origin : constant Plot_Canvas_Arrow := 1; 
  42.    Arrow_End    : constant Plot_Canvas_Arrow := 2; 
  43.  
  44.    procedure Gtk_New 
  45.      (Child      : out Gtk_Plot_Canvas_Line; 
  46.       Style      : Gtk.Extra.Plot_Data.Plot_Line_Style; 
  47.       Width      : Gfloat; 
  48.       Color      : Gdk.Color.Gdk_Color; 
  49.       Arrow_Mask : Plot_Canvas_Arrow); 
  50.    --  Create a new line child 
  51.  
  52.    function Get_Type return Glib.GType; 
  53.    --  Return the internal type used for this child 
  54.  
  55.    procedure Set_Arrow 
  56.      (Line   : access Gtk_Plot_Canvas_Line_Record; 
  57.       Style  : Gtk.Extra.Plot_Data.Plot_Symbol_Style; 
  58.       Width  : Gfloat; 
  59.       Length : Gfloat; 
  60.       Mask   : Plot_Canvas_Arrow); 
  61.    --  Change the arrow style for this line 
  62.  
  63.    procedure Set_Attributes 
  64.      (Line  : access Gtk_Plot_Canvas_Line_Record; 
  65.       Style : Gtk.Extra.Plot_Data.Plot_Line_Style; 
  66.       Width : Gfloat; 
  67.       Color : Gdk.Color.Gdk_Color); 
  68.    --  Change the attributes of the line 
  69.  
  70. private 
  71.    pragma Import (C, Get_Type, "gtk_plot_canvas_line_get_type"); 
  72. end Gtk.Extra.Plot_Canvas.Line;