This package contains the pixmap class.
throws Read_Pixmap_Error .
This class encapsulates the gdk pixmap. This simplifies handling and drawing stuff on gdk pixmaps and also allows us to keep the mask of the pixmap up to date which is required for the transparency.
private Gdk.Pixmap.Gdk_Pixmap Pixmap |
The real pixmap.
private Gdk.Bitmap.Gdk_Bitmap Mask |
The mask telling which points to draw. May be null.
private Gdk.GC.Gdk_GC GC |
The graphic context; required if you want to draw a transperant pixmap.
private Graphics.Area_Sizes.Area_Size Size |
The size of the pixmap.
private Gdk.GC.Gdk_GC Mask_GC |
The graphic context for the mask; required if you want to update another mask.
private Boolean GC_Dirty |
If set to true, the mask was changed and we have to reassign it to the graphic context.
private Glib.Gint Depth |
The color depth of the pixmap.
private Boolean Inverted_Map |
The inverted map. This mask can be used to allow someone to draw everywhere on the transparent part of this pixmap.
private Natural GC_Dirty_Counter |
This couner is increased every time the Update_GC methode is called.
private Gdk.GC.Gdk_GC Opaque_Mask_Draw_GC |
A GC used to draw on the mask.
private Gdk.GC.Gdk_GC Transparent_Mask_Draw_GC |
A GC used to draw on the mask.
Creates a new Pixmap from an existing Gdk_Pixmap
Creates a new Pixmap from a file.
Creates a new Pixmap
Updates the transparancy mask in the graphic contexts. You must call this methode after modifying the mask Bitmap.
Returns a (deep) copy of it self.
Draws a Line on the pixmap.
Copies an existing pixmap on another pixmap. Transparency information is updated if required.
Draws some text on the pixmap.
Draws a rectangle on the pixmap.
Clears the pixmap.This is done by drawing a filled rectangle with the foreground color from the given gc. The transparency mask is reset (whole pixmap transaprent) if not null.
Moves the content of the pixmap.
Resizes the pixmap. This is done by removing the internal Pixmap and Mask and recreating them (GtkAda has no possibility to resize bitmaps and pixmaps...).