RE: get size of drawing area



 
HI

Thanks, it works! I looked a lot in the documentation of both
gtk-perl and gtk (and gdk) but I couldn't figure out where to
get it. May I ask how/where you found it?

jos

-----Original Message-----
From: Carl Edwards
To: gtk-perl-list gnome org; J G A v Riswick tue nl
Sent: 6/15/2002 2:29 AM
Subject: 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




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