On 2/3/07, Bob Ippolito <[EMAIL PROTECTED]> wrote:
> Some good ideas for how to deal with points, sizes, rectangles, etc.
> are in Apple's AppKit (and CoreGraphics) APIs. They have an NSRect
> consisting of a NSSize and an NSPoint, which are different structures
> (though they happen to both be two floats).

Yes, I was thinking of something along those lines yesterday. I called it "Box".

I'm attaching a "concept" patch - that just adds the Box class and a
few utility functions. Am I on the right track here?

We could then add convenience stuff for aligning and/or centering
boxes within other boxes, getting the viewport box etc.

Arnar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: box_concept.patch
Description: Binary data

Reply via email to