Re: GdkPixbufFormat struct
| From: | Scott Mattocks | Date: | Thu, 02 Mar 2006 13:49:31 +0000 |
| Subject: | Re: GdkPixbufFormat struct | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-2475@lists.php.net to get a copy of this message | ||
Christian Weiske wrote:
Hello all, Andrei, xxoes is about to implementIf you return an array, you will have to define a bunch of constants for the array keys in order to make everyone's life easier. You can't expect everyone to just remember that the third element is the domain, but you can expect them to remember they can get the domain with $pixbufFormat[Gdk::PIXBUF_FORMAT_DOMAIN]. If the GdkPixbuf::format_* methods are already implemented it might just be easier to keep the current functionality. It would mean less development and testing. -- Scott Mattocks http://www.crisscott.comGdkPixbuf::pixbuf_get_file_info($filename,&$width,&$height);it returns a GdkPixbufFormat. He thought it would be the most easy thing to return an associative array with all the values, and additional to the struct keys, return width and height in the same array. Is that ok? Would it be better to make an own class for GdkPixbufFormat?