Important: The information in this document is obsolete and should not be used for new development.
DeviceLoopFlags
When you use theDeviceLoop
procedure (described on page 5-28), you can change its default behavior by using theflags
parameter to specify one or more members of the set of flags defined by theDeviceLoopFlags
data type. These flags are described here; if you want to use the default behavior ofDeviceLoop
, pass in theflags
parameter 0 in your C code or an empty set ([ ]) in your Pascal code.
TYPE DeviceLoopFlags = SET OF {for flags parameter of DeviceLoop} (singleDevices, {DeviceLoop doesn't group similar graphics } { devices when calling drawing procedure} dontMatchSeeds, {DeviceLoop doesn't consider ctSeed fields } { of ColorTable records for graphics } { devices when comparing them} allDevices); {DeviceLoop ignores value of drawingRgn } { parameter--instead, it calls drawing } { procedure for every screen}
Field Description
singleDevices
- If this flag is not set,
DeviceLoop
calls your drawing procedure 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 thesingleDevices
flag, thenDeviceLoop
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 procedure.dontMatchSeeds
If you set thedontMatchSeeds
flag, thenDeviceLoop
doesn't consider color table seeds when comparing graphics devices for similarity;DeviceLoop
ignores this flag if you set thesingleDevices
flag. Used primarily by the Palette Manager, thectSeed
field of aColorTable
record is described in the chapter "Color QuickDraw" in this book.allDevices
- If you set the
allDevices
flag,DeviceLoop
ignores thedrawingRgn
parameter and calls your drawing procedure for every graphics device. The value of current graphics port'svisRgn
field is not affected when you set this flag.