![]() |
Device Loop Flags |
Header: Quickdraw.h |
enum { singleDevices = 1, dontMatchSeeds = 2, allDevices = 4 };
If this flag is not set, DeviceLoop calls your drawing function only once for each set of similar graphics devices, and the first one found is passed as the target device. (It is assumed to be representative of all the similar graphics devices.) If you set the singleDevices flag, then DeviceLoop does not group similar graphics devices, (that is, those having identical pixel depths, black-and-white or color settings, and matching color table seeds), when it calls your drawing function.
If you set the dontMatchSeeds flag, then DeviceLoop does not consider the ctSeed field of ColorTable structures for graphics devices when comparing them; DeviceLoop ignores this flag if you set the singleDevices flag.
If you set the allDevices flag, DeviceLoop ignores the drawingRgn parameter and calls your drawing function for every device. The value of the current graphics ports visRgn field is not affected when you set this flag.
When you use the DeviceLoop function, you can change its default behavior by using the flags parameter to specify one or more members of the set of flags defined by the DeviceLoopFlags data type. If you want to use the default behavior of DeviceLoop, specify 0 in the flags parameter.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)