Fw: [PHP-GTK] allocation and requisition question

From: Date: Fri, 13 Jul 2001 20:50:59 +0000
Subject: Fw: [PHP-GTK] allocation and requisition question
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2160@lists.php.net to get a copy of this message
- but the class approach would be overloaded for get_allocation, wouldn't it? ----- Original Message ----- From: "Steph" <Steph.Fox@btinternet.com> To: "Andrei Zmievski" <andrei@ispi.net>; "PHP-GTK" <php-gtk@lists.php.net> Sent: Friday, July 13, 2001 9:45 PM Subject: Re: [PHP-GTK] allocation and requisition question The class approach would be in line with GTK+, & I personally feel it would be easier to use (for example) $width = $allocation->width; than have to fight with arrays & remember the array position of each field representative.. whatever. ----- Original Message ----- From: "Andrei Zmievski" <andrei@ispi.net> To: "PHP-GTK" <php-gtk@lists.php.net> Sent: Friday, July 13, 2001 9:21 PM Subject: [PHP-GTK] allocation and requisition question I need to implement support for widget allocation and requisition. Allocation contains x, y, width, and height, and requisition just width and height. There are a couple of ways to go about it. One would be to emulate PyGTK and simply handle them as arrays: that is, allocation would be an array of (x, y, width, height) and requisition would be (width, height). Another way is to create GtkAllocation and GtkRequisition classes and have member fields for x, y, width, and height. Which approach do you think would work better and why? -Andrei Commitment, n.: Commitment can be illustrated by a breakfast of ham and eggs. The chicken was involved, the pig was committed. -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.gtk (#2160) next »