Description
The
Gtk_Image widget displays a graphical image. The image is typically
created using Gdk.Image.Gdk_New.
The pixels in a Gtk_Image may be manipulated by the application after
creation, as Gtk_Image store the pixel data on the client side. If you wish
to store the pixel data on the server side (thus not allowing manipulation
of the data after creation) you should use Gtk_Pixmap.
Types
-
type Gtk_Image is access all Gtk_Image_Record'Class;
-
-
type Gtk_Image_Type is
(Image_Empty,
Image_Pixmap,
Image_Image,
Image_Pixbuf,
Image_Stock,
Image_Icon_Set,
Image_Animation);
-
type Property_Image_Type is new Image_Type_Properties.Property;
Subprograms
-
procedure Gtk_New (Image : out Gtk_Image);
procedure Initialize (Image : access Gtk_Image_Record'Class);
-
procedure Initialize
(Image :
access Gtk_Image_Record'Class;
Val : Gdk.Image.Gdk_Image;
Mask :
Gdk.Bitmap.Gdk_Bitmap);
-
-
procedure Gtk_New
(Image : out Gtk_Image;
Filename : String);
procedure Initialize
(Image : access Gtk_Image_Record'Class;
Filename : String);
-
-
-
-
-
procedure Initialize_From_Icon_Name
(Image :
access Gtk_Image_Record'Class;
Icon_Name : String;
Size :
Gtk.Enums.Gtk_Icon_Size);
-
-
-
procedure Set
(Image :
access Gtk_Image_Record;
Val : Gdk.Image.Gdk_Image;
Mask :
Gdk.Bitmap.Gdk_Bitmap);
procedure Get
(Image :
access Gtk_Image_Record;
Val :
out Gdk.Image.Gdk_Image;
Mask :
out Gdk.Bitmap.Gdk_Bitmap);
-
procedure Set (Image : access Gtk_Image_Record; File : String);
-
-
-
-
-
function Get_Storage_Type
(Image : access Gtk_Image_Record) return Gtk_Image_Type;
-
procedure Clear (Image : access Gtk_Image_Record);
-
procedure Set_From_Icon_Name
(Image :
access Gtk_Image_Record;
Icon_Name : String;
Size :
Gtk.Enums.Gtk_Icon_Size);
procedure Get_Icon_Name
(Image :
access Gtk_Image_Record;
Name :
out GNAT.Strings.String_Access;
Size :
out Gtk.Enums.Gtk_Icon_Size);
-
procedure Set_Pixel_Size
(Image : access Gtk_Image_Record; Pixel_Size : Gint);
function Get_Pixel_Size (Image : access Gtk_Image_Record) return Gint;