Important: The information in this document is obsolete and should not be used for new development.
Text Shape Omit Byte Masks and Shifts
ThegxOmitTextMask
enumeration defines which bits in an omit byte correspond to the data compression opcode for parameters of theGXNewText
function. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Text Shape Data" beginning on page 7-32.
enum gxOmitTextMask { gxOmitTextCharactersMask = 0xC0, gxOmitTextPositionXMask = 0x30, gxOmitTextPositionYMask = 0x0C, gxOmitTextDataMask = 0x02 };Constant descriptions
Once one of the
- gxOmitTextCharactersMask
- The mask used to select the data compression bits for the
charCount
parameter.- gxOmitTextPositionXMask
- The mask used to select the data compression bits for the
position.X
parameter.- gxOmitTextPositionYMask
- The mask used to select the data compression bits for the
position
.Y parameter.- gxOmitTextDataMask
- The mask used to select the data compression bits for the
text
parameter.gxOmitText
Mask enumeration masks has been used to select a data compression opcode for the parameters of theGXNewText
function, the corresponding bit shift from the gxOmitTextShift 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 gxOmitTextShift { gxOmitTextCharactersShift = 6, gxOmitTextPositionXShift = 4, gxOmitTextPositionYShift = 2, gxOmitTextDataShift = 1 };Constant descriptions
- gxOmitTextCharactersShift
- The bit shift required to isolate the compression bits for the
charCount
field descriptor.- gxOmitTextPositionXShift
- The bit shift required to isolate the compression bits for the
position.X
field descriptor.- gxOmitTextPositionYShift
- The bit shift required to isolate the compression bits for the
position
.Y field descriptor.- gxOmitTextDataShift
- The bit shift required to isolate the compression bits for the
text
field descriptor.