Re: get size of drawing area



Here is a snipped of a callback I have:

sub drawable_leave_cb($$) {
    my ($widget, $event) = @_;

    my $width  = $widget->allocation->[2];
    my $height = $widget->allocation->[3];


/Carl


Delivered-To: gtk-perl-list gnome org
From: "Riswick, J.G.A. van" <J G A v Riswick tue nl>
To: "'gtk-perl-list gnome org'" <gtk-perl-list gnome org>
Subject: get size of drawing area
X-Loop: gtk-perl-list gnome org
List-Id: Using GTK+ with Perl <gtk-perl-list.gnome.org>
List-Archive: <http://mail.gnome.org/archives/gtk-perl-list/>
Date: Sat, 15 Jun 2002 02:02:08 +0200
X-DCC-vtss-Metrics: mx1.vitesse.com 1018; Body=1 Fuz1=1 Fuz2=1

HI

I'd like to redraw a drawing, after a drawingarea
has resized, and I'd like to make the drawing
scale up with the drawingarea. So I need the
size of the drawingarea. I tried to use 'size_request'
but failed to make it work. How does one get the
size of a drawing area?

jos
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list




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