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. --  <c_version>2.8.17</c_version> 
  26. --  <group>Obsolescent widgets</group> 
  27.  
  28. with Gdk.Bitmap; 
  29. with Gdk.Pixmap; 
  30. with Gtk.Misc; 
  31. with Gtk.Window; 
  32. with Gtkada.Types; 
  33.  
  34. package Gtk.Pixmap is 
  35.    pragma Obsolescent ("Use Gtk.Image instead"); 
  36.  
  37.    type Gtk_Pixmap_Record is new Gtk.Misc.Gtk_Misc_Record with private; 
  38.    type Gtk_Pixmap is access all Gtk_Pixmap_Record'Class; 
  39.  
  40.    function Get_Type return Gtk.Gtk_Type; 
  41.    --  Return the internal value associated with a Gtk_Pixmap. 
  42.  
  43.    procedure Gtk_New 
  44.      (Widget : out Gtk_Pixmap; 
  45.       Pixmap : Gdk.Pixmap.Gdk_Pixmap := null; 
  46.       Mask   : Gdk.Bitmap.Gdk_Bitmap := null); 
  47.    procedure Initialize 
  48.      (Widget : access Gtk_Pixmap_Record'Class; 
  49.       Pixmap : Gdk.Pixmap.Gdk_Pixmap; 
  50.       Mask   : Gdk.Bitmap.Gdk_Bitmap); 
  51.    --  Creates or initializes a pixmap 
  52.  
  53.    procedure Set 
  54.      (Pixmap : access Gtk_Pixmap_Record; 
  55.       Val    : Gdk.Pixmap.Gdk_Pixmap; 
  56.       Mask   : Gdk.Bitmap.Gdk_Bitmap); 
  57.    procedure Get 
  58.      (Pixmap : access Gtk_Pixmap_Record; 
  59.       Val    : out Gdk.Pixmap.Gdk_Pixmap; 
  60.       Mask   : out Gdk.Bitmap.Gdk_Bitmap); 
  61.    --  Set or get the components of the pixmap 
  62.  
  63.    function Create_Pixmap 
  64.      (Filename : String; 
  65.       Window   : access Gtk.Window.Gtk_Window_Record'Class) return Gtk_Pixmap; 
  66.    --  Create a pixmap given a window and a filename 
  67.  
  68.    function Create_Pixmap 
  69.      (Data     : Gtkada.Types.Chars_Ptr_Array; 
  70.       Window   : access Gtk.Window.Gtk_Window_Record'Class) return Gtk_Pixmap; 
  71.    --  Create a pixmap given a window and a buffer. 
  72.  
  73.    procedure Set_Build_Insensitive 
  74.      (Pixmap : access Gtk_Pixmap_Record; 
  75.       Build  : Boolean); 
  76.    --  Whether the pixmap should be grayed out, as is done for insensitive 
  77.    --  widgets that do not accept user interaction 
  78.  
  79.    ---------------- 
  80.    -- Properties -- 
  81.    ---------------- 
  82.  
  83.    --  <properties> 
  84.    --  The following properties are defined for this widget. See 
  85.    --  Glib.Properties for more information on properties. 
  86.    -- 
  87.    --  </properties> 
  88.  
  89. private 
  90.    type Gtk_Pixmap_Record is new Gtk.Misc.Gtk_Misc_Record with null record; 
  91.  
  92.    pragma Import (C, Get_Type, "gtk_pixmap_get_type"); 
  93. end Gtk.Pixmap;