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.Enums; 
  32. with Gtk.Extra.Plot_Data; 
  33.  
  34. package Gtk.Extra.Plot_Canvas.Text is 
  35.  
  36.    type Gtk_Plot_Canvas_Text_Record is new Gtk_Plot_Canvas_Child_Record 
  37.      with private; 
  38.    type Gtk_Plot_Canvas_Text is access all Gtk_Plot_Canvas_Text_Record'Class; 
  39.  
  40.    procedure Gtk_New 
  41.      (Child    : out Gtk_Plot_Canvas_Text; 
  42.       Text     : String; 
  43.       Font     : String := ""; 
  44.       Height   : Gint := 0; 
  45.       Angle    : Gtk.Extra.Plot_Data.Plot_Angle := Gtk.Extra.Plot_Data.Angle_0; 
  46.       Fg       : Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; 
  47.       Bg            : Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; 
  48.       Transparent   : Boolean := True; 
  49.       Justification : Gtk.Enums.Gtk_Justification := Gtk.Enums.Justify_Center); 
  50.    --  Create a new text child. 
  51.    --  If default values are used, the corresponding attribute isn't set 
  52.  
  53.    procedure Set_Attributes 
  54.      (Child         : access Gtk_Plot_Canvas_Text_Record; 
  55.       Font          : String := ""; 
  56.       Height        : Gint; 
  57.       Angle         : Gtk.Extra.Plot_Data.Plot_Angle; 
  58.       Fg            : Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; 
  59.       Bg            : Gdk.Color.Gdk_Color := Gdk.Color.Null_Color; 
  60.       Transparent   : Boolean; 
  61.       Justification : Gtk.Enums.Gtk_Justification; 
  62.       Text          : String); 
  63.    --  Change the attribute of Text. The attributes with their default 
  64.    --  values are not changed. 
  65.  
  66. private 
  67.    type Gtk_Plot_Canvas_Text_Record is new Gtk_Plot_Canvas_Child_Record 
  68.      with null record; 
  69. end Gtk.Extra.Plot_Canvas.Text;