[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <gtk-widget> -- allocation width
From: |
Andy Wingo |
Subject: |
Re: <gtk-widget> -- allocation width |
Date: |
Sun, 09 Jan 2005 14:16:25 -0500 |
Hi Greg,
On Thu, 2005-01-06 at 16:10 -0500, greg wrote:
> I am looking for a way to access the allocation width (or height) of a
> widget from scheme;
Try gtk-widget-get-allocation (or the generic, get-allocation).
Unfortunately there are no accessors atm; you just need to know that the
returned object is a vector like #[x y width height].
This is implemented as a custom scheme mapping for the GdkRectangle
type; see gdk-spec.scm for details.
Regards,
--
Andy Wingo
http://wingolog.org/