guile-gtk-general
[Top][All Lists]
Advanced

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

<gtk-widget> -- allocation width


From: greg
Subject: <gtk-widget> -- allocation width
Date: Thu, 06 Jan 2005 16:10:34 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1


Hello,

I am looking for a way to access the allocation width (or height) of a widget from scheme;
i.e. I want to say:

        /* get actual widget size */
        width = (GtkWidget*)my_widget->allocation.width;

but in scheme, i.e.

       (define my-widget (make <gtk-drawing-area>))

       ;; do some widget placement

       (get-width-of  my-widget)

I am able to do this by writing a C function that gets the width and wraps it up as a scheme object, but I am wondering if there is a way to do this that doesn't involve
any C code.

Thanks,

Greg








reply via email to

[Prev in Thread] Current Thread [Next in Thread]