Re: allocation and requisition question
| From: | Steph | Date: | Fri, 13 Jul 2001 20:45:11 +0000 |
| Subject: | Re: allocation and requisition question | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2156@lists.php.net to get a copy of this message | ||
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