Re: how to know width and height of a pixmap



Something like this?


   gint width  = drawingArea->allocation.width;
   gint height = drawingArea->allocation.height;


drawingArea = window in your terminology I think.

Chris

On Wed, Mar 27, 2002 at 07:44:20PM +0100, Elisa Manara wrote:
> Hi all,
> 
> I create a pixmap from a XPM file:
> 
> gdk_pixmap = gdk_pixmap_create_from_xpm( window->window, &mask, 
> 	&style->bg[GTK_STATE_NORMAL], "my_pixmap_file");
> 
> pixmap = gtk_pixmap_new( gdk_pixmap, mask );
> 
> How can I get width and height of a pixmap created as shown?
> 
> Thanks, Elisa.
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list

-- 
=======================================================
| Dr. Christian Seberino  || (619) 553-7940  (office) |
| SPAWARSYSCEN 2363       || (619) 553-2836  (fax)    |
| 53560 HULL ST           ||                          |
| SAN DIEGO CA 92152-5001 || seberino spawar navy mil |
=======================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]