Re: allocation and requisition question
| From: | Eric | Date: | Fri, 13 Jul 2001 20:42:37 +0000 |
| Subject: | Re: allocation and requisition question | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-2154@lists.php.net to get a copy of this message | ||
The array approach seems easier. I can see how one would construct the
arguments like that, whereas I would definately need some docs for the class
approach.
Would there be any performance differences?
Would a programmer be able to automate one way easier than the other?
Eric
fenderboy@implode.com
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "PHP-GTK" <php-gtk@lists.php.net>
Sent: Friday, July 13, 2001 3: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
>
>
>