[gtkada] Pixmap question
Emmanuel Briot
briot at act-europe.fr
Thu Jun 19 10:40:23 CEST 2003
> I need to display a number of pixmaps in a horizontal row.
> They are read from files with Gtk.Pixmap.Create_Pixmap and
> then converted to a Gdk.Pixmap and Gdk.Bitmap with Get.
> The width of the pixmaps varies, so in order to display them
> with a fixed distance I need to read the width somehow.
> But there are no functions Get_Width and Get_Height in either
> Gtk.Pixmap, Gdk.Pixmap or Gdk.Bitmap. How can I do this?
A Gdk_Pixmap is a drawable, so use Gdk.Drawable.Get_Size.
Probably you should simply use Gtk_Pixmap, which will done its own size
computation, if you need to put this inside a box to display them in a
row
More information about the gtkada
mailing list