allocation and requisition question

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

« previous php.gtk (#2152) next »