Re: GdkGC constructor

From: Date: Tue, 28 Feb 2006 08:58:34 +0000
Subject: Re: GdkGC constructor
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2447@lists.php.net to get a copy of this message
Andrei, The php-gtk1 manual says you can only use new_gc of gdkwindow to get a dc. > $gc = new GdkGC($window); > $gc->set_foreground(...); That seems the cleanest way to me. > $gc = new GdkGC($window, $foreground, $background, $font, $function, > ...); You wouldn't get done with parameters if you would add all of them to the constructor > $gc = new GdkGC($window, array('background' => $background, > 'line_width' => $width)); Python, right? I am for choice #1 -- Regards/MfG, Christian Weiske

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.gtk.dev (#2447) next »