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