Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 7 - QuickDraw GX Stream Format / QuickDraw GX Stream Format Reference
Style Object Omit Byte Constants and Data Types


Face Layer Omit Byte Masks and Shifts

The gxOmitFaceLayerMask1 enumeration defines which bits in an omit byte correspond to the data compression opcode for the field descriptors in the gxFaceLayer structure. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Text Face Data" on page 7-39.

enum gxOmitFaceLayerMask1 {
   gxOmitFaceLayerFillMask       = 0xC0,
   gxOmitFaceLayerFlagsMask      = 0x30,
   gxOmitFaceLayerStyleMask      = 0x0C,
   gxOmitFaceLayerTransformMask  = 0x03
};
Constant descriptions

gxOmitFaceLayerFillMask
The mask used to select the data compression bits for the outlineFill field descriptor.
gxOmitFaceLayerFlagsMask
The mask used to select the data compression bits for the flags field descriptor.
gxOmitFaceLayerStyleMask
The mask used to select the data compression bits for the outlineStyle field descriptor.
gxOmitFaceLayerTransformMask
The mask used to select the data compression bits for the outlineTransform field descriptor.
Once one of the gxOmitFaceLayerMask1 enumeration masks has been used to select a data compression opcode for a field descriptor in the gxFaceLayer structure, the corresponding bit shift from the gxOmitFaceLayerShift1 enumeration can be applied to the selected bits. The selected bits must be moved to the right by the indicated number of bits to isolate the data compression opcode so that it can be compared to other values.

enum gxOmitFaceLayerShift1 {
   gxOmitFaceLayerFillShift      = 6,
   gxOmitFaceLayerFlagsShift     = 4,
   gxOmitFaceLayerStyleShift     = 2,
   gxOmitFaceLayerTransformShift = 0
};
Constant descriptions

gxOmitFaceLayerFillShift
The bit shift required to isolate the compression bits for the outlineFill field descriptor.
gxOmitFaceLayerFlagsShift
The bit shift required to isolate the compression bits for the flags field descriptor.
gxOmitFaceLayerStyleShift
The bit shift required to isolate the compression bits for the outlineStyle field descriptor.
gxOmitFaceLayerTransformShift
The bit shift required to isolate the compression bits for the outlineTransform field descriptor.
The gxOmitFaceLayerMask2 enumeration defines which bits in a second omit byte correspond to the data compression bits for additional field descriptors in the gxFaceLayer structure. The sequence of data is also defined. The use of this mask and shift are described in the section "Text Face Data" on page 7-39.

enum gxOmitFaceLayerMask2 {
   gxOmitFaceLayerBoldXMask   = 0xC0,
   gxOmitFaceLayerBoldYMask   = 0x30
};
Constant descriptions

gxOmitFaceLayerBoldXMask
The mask used to select the data compression bits for the boldOutset .X field descriptor.
gxOmitFaceLayerBoldYMask
The mask used to select the data compression bits for the boldOutset .Y field descriptor.
Once one of the gxOmitFaceLayerMask2 enumeration masks has been used to select a data compression opcode for a field descriptor in the gxFaceLayer structure, the corresponding bit shift from the gxOmitFaceLayerShift2 enumeration can be applied to the selected bits. The selected bits must be moved to the right by the indicated number of bits to isolate the data compression opcode so that it can be compared to other values.

enum gxOmitFaceLayerShift2 {
   gxOmitFaceLayerBoldXShift  = 6,
   gxOmitFaceLayerBoldYShift  = 4
};
Constant descriptions

gxOmitFaceLayerBoldXShift
The bit shift required to isolate the compression bits for the boldOutset .X field descriptor.
gxOmitFaceLayerBoldYShift
The bit shift required to isolate the compression bits for the boldOutset .Y field descriptor.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996