[9375] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Size of a drawable: how?
daemon@ATHENA.MIT.EDU (Owen Taylor)
Sat Oct 17 11:11:37 1998
To: serge@physics.unc.edu
Cc: gtk-list@redhat.com
From: Owen Taylor <otaylor@redhat.com>
Date: 17 Oct 1998 11:22:27 -0400
In-Reply-To: "Sergei O. Naoumov"'s message of "Fri, 16 Oct 1998 13:04:41 -0400"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
"Sergei O. Naoumov" <serge@physics.unc.edu> writes:
> Hi!
> How do I get the size of a drawable after it is created? It is clear if the
> drawable is a widget. In this case it's just widget->allocation.width and
> widget->allocation.height. But... What do I do if my drawable is a pixmap?
> Is there any universal way to get the drawable's size?
void gdk_window_get_geometry (GdkWindow *window,
gint *x,
gint *y,
gint *width,
gint *height,
gint *depth);
Yep, that really works for pixmaps.
Regards,
Owen
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null