
Joel de Guzman <joel <at> boost-consulting.com> writes:
Example: I need to XOR a YRegion with a MacRegion.
Although actual library implmentation permits mixed implmentation computations, I really doubt you'll ever need to do that. Do you think that you may be using Xlib's XRegion and Mac's MacRegion (and Windows' RGN) in the same program ? Usually you'll just choose one implmentation and stick with it throughout your project... This still remanis a consistency concern, however.
The thing is, a classic mac region is an opaque data type (actually, it's not implemented as a collection of boxes). The mere fact that it is opaque makes it impossible to even copy a mac region to a YRegion.
Right ! Let me add that Window's RGN is also an opaque type. Well maybe a geom::region is useful but I don't think that MacRegion XRegion and RGN are suitable implmentation of what we define as a ``region''. -- Anis Benyelloul